summaryrefslogtreecommitdiff
path: root/syntax.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-01 20:05:18 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-01 20:05:18 -0500
commitb042a8599c47b2fd41c7eb0d22ec417ca629a986 (patch)
tree870ffbbfe86ada39733d8f31971379caa0e1ab4a /syntax.c
parentbb9c6b6ff3ca196977f9ddd73120897c679e2515 (diff)
small change to horizontal scrolling for massive performance improvement on large files
also fixed syntax highlighting for hex literals, for real this time
Diffstat (limited to 'syntax.c')
-rw-r--r--syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax.c b/syntax.c
index 162fe48..56d822c 100644
--- a/syntax.c
+++ b/syntax.c
@@ -186,7 +186,7 @@ static void syntax_highlight_c(SyntaxState *state_ptr, char32_t *line, u32 line_
}
if (line[i] != '\\') backslashes = 0;
if (in_number && !(is32_digit(line[i]) || line[i] == '.'
- || (line[i] < CHAR_MAX && strchr("xXoObBlLuU", (char)line[i]))
+ || (line[i] < CHAR_MAX && strchr("xXoObBlLuUabcdefABCDEF", (char)line[i]))
|| (i && line[i-1] == 'e' && (line[i] == '+' || line[i] == '-')))) {
in_number = false;
}