Skip to content

Commit 82512e0

Browse files
avargitster
authored andcommitted
userdiff style: normalize pascal regex declaration
Declare the pascal pattern consistently with how we declare the others, not having "\n" on one line by itself, but as part of the pattern, and when there are alterations have the "|" at the start, not end of the line. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6d1c9c5 commit 82512e0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

userdiff.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,8 @@ PATTERNS("objc",
175175
"|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?"
176176
"|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->"),
177177
PATTERNS("pascal",
178-
"^(((class[ \t]+)?(procedure|function)|constructor|destructor|interface|"
179-
"implementation|initialization|finalization)[ \t]*.*)$"
180-
"\n"
178+
"^(((class[ \t]+)?(procedure|function)|constructor|destructor|interface"
179+
"|implementation|initialization|finalization)[ \t]*.*)$\n"
181180
"^(.*=[ \t]*(class|record).*)$",
182181
/* -- */
183182
"[a-zA-Z_][a-zA-Z0-9_]*"

0 commit comments

Comments
 (0)