[PATCH 02/10] userdiff: support unsigned and long long suffixes of integer constants
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Mar 21, 2014, 21:07 UTC
- Message-ID
- <449a75237d45739084efddbcaf545db4b0a0a40a.1395433874.git.j6t@kdbg.org>
- In-Reply-To
- <cover.1395433874.git.j6t@kdbg.org>
Do not split constants such as 123U, 456ll, 789UL at the first U or second L.
Signed-off-by: Johannes Sixt <j6t@kdbg.org> --- userdiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/userdiff.c b/userdiff.c index 434535b..8830417 100644 --- a/userdiff.c +++ b/userdiff.c @@ -132,7 +132,7 @@ "^((struct|class|enum)[^;]*)$", /* -- */ "[a-zA-Z_][a-zA-Z0-9_]*" - "|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?" + "|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lLuU]*" "|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->\\*?|\\.\\*"), PATTERNS("csharp", /* Keywords */
-- 1.8.5.2.244.g9fb3fb1