diff options
author | pommicket <pommicket@gmail.com> | 2022-07-29 16:05:56 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-07-29 16:05:56 -0400 |
commit | 12cc45bfcaa4c866f4509b6324a424048f3ddd29 (patch) | |
tree | 0df68f4d3d51f5468b3b1681b803e3a0c7f7d95d /syntax.c | |
parent | d9edd1f62fa620d3a8a42c80aec330065b794e14 (diff) |
fix reloading with text-size
Diffstat (limited to 'syntax.c')
-rw-r--r-- | syntax.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1090,7 +1090,7 @@ static void syntax_highlight_javascript(SyntaxState *state, char32_t const *line // this is not foolproof for detecting regex literals // but should handle all "reasonable" uses of regex. bool is_regex = i == 0 // slash is first char in line - || (line[i-1] <= WCHAR_MAX && iswspace(line[i-1])) // slash preceded by space + || (line[i-1] <= WCHAR_MAX && iswspace((wint_t)line[i-1])) // slash preceded by space || (line[i-1] <= 128 && strchr(";({[=,:", (char)line[i-1])); // slash preceded by any of these characters if (is_regex) { in_string = true; |