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>
Johannes Sixt committed
Mar 21, 2014 at 22:07 UTC
abf8f9860248d8c213600974742f18dadaa8fbb5
1 file changed
+1
-1
userdiff.c
+1
-1
@@ -132,7 +132,7 @@ PATTERNS("cpp",
132
"^((struct|class|enum)[^;]*)$",
133
/* -- */
134
"[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]*"
136
"|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->\\*?|\\.\\*"),
137
PATTERNS("csharp",
138
/* Keywords */