Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoxuan Li <liboxuan@connect.hku.hk>2019-05-29 19:15:39 +0300
committerJunio C Hamano <gitster@pobox.com>2019-05-29 19:50:31 +0300
commit2731a7840a462a97b8afb5beadaf36c1db992ac7 (patch)
treebfcc8db85918cdc4050bb71ff446f36e405d47b5 /userdiff.c
parent91bf382fcf51af04f25ba22e1b70ac13cce4bd0b (diff)
userdiff: fix grammar and style issues
Signed-off-by: Boxuan Li <liboxuan@connect.hku.hk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'userdiff.c')
-rw-r--r--userdiff.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/userdiff.c b/userdiff.c
index bcae006abe..04270fb4d7 100644
--- a/userdiff.c
+++ b/userdiff.c
@@ -58,9 +58,11 @@ PATTERNS("java",
"|[-+*/<>%&^|=!]="
"|--|\\+\\+|<<=?|>>>?=?|&&|\\|\\|"),
PATTERNS("matlab",
- /* Octave pattern is mostly the same as matlab, except that '%%%' and
+ /*
+ * Octave pattern is mostly the same as matlab, except that '%%%' and
* '##' can also be used to begin code sections, in addition to '%%'
- * that is understood by both. */
+ * that is understood by both.
+ */
"^[[:space:]]*((classdef|function)[[:space:]].*)$|^(%%%?|##)[[:space:]].*$",
"[a-zA-Z_][a-zA-Z0-9_]*|[-+0-9.e]+|[=~<>]=|\\.[*/\\^']|\\|\\||&&"),
PATTERNS("objc",