Skip to content

Commit abf8f98

Browse files
j6tgitster
authored andcommitted
userdiff: support unsigned and long long suffixes of integer constants
Do not split constants such as 123U, 456ll, 789UL at the first U or second L. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 407e07f commit abf8f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

userdiff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ PATTERNS("cpp",
132132
"^((struct|class|enum)[^;]*)$",
133133
/* -- */
134134
"[a-zA-Z_][a-zA-Z0-9_]*"
135-
"|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?"
135+
"|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lLuU]*"
136136
"|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->\\*?|\\.\\*"),
137137
PATTERNS("csharp",
138138
/* Keywords */

0 commit comments

Comments
 (0)