Skip to content

Commit 2731a78

Browse files
li-boxuangitster
authored andcommitted
userdiff: fix grammar and style issues
Signed-off-by: Boxuan Li <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 91bf382 commit 2731a78

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Documentation/gitattributes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ patterns are available:
819819

820820
- `java` suitable for source code in the Java language.
821821

822-
- `matlab` suitable for source code in the MATLAB and Octave language.
822+
- `matlab` suitable for source code in the MATLAB and Octave languages.
823823

824824
- `objc` suitable for source code in the Objective-C language.
825825

userdiff.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ PATTERNS("java",
5858
"|[-+*/<>%&^|=!]="
5959
"|--|\\+\\+|<<=?|>>>?=?|&&|\\|\\|"),
6060
PATTERNS("matlab",
61-
/* Octave pattern is mostly the same as matlab, except that '%%%' and
61+
/*
62+
* Octave pattern is mostly the same as matlab, except that '%%%' and
6263
* '##' can also be used to begin code sections, in addition to '%%'
63-
* that is understood by both. */
64+
* that is understood by both.
65+
*/
6466
"^[[:space:]]*((classdef|function)[[:space:]].*)$|^(%%%?|##)[[:space:]].*$",
6567
"[a-zA-Z_][a-zA-Z0-9_]*|[-+0-9.e]+|[=~<>]=|\\.[*/\\^']|\\|\\||&&"),
6668
PATTERNS("objc",

0 commit comments

Comments
 (0)