diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-01 20:05:18 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-01 20:05:18 -0500 |
commit | b042a8599c47b2fd41c7eb0d22ec417ca629a986 (patch) | |
tree | 870ffbbfe86ada39733d8f31971379caa0e1ab4a /syntax.c | |
parent | bb9c6b6ff3ca196977f9ddd73120897c679e2515 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |