fix: non-terminating lexer rule

This commit is contained in:
FalsePattern 2025-01-12 14:41:22 +01:00
parent 9d05a4c3d7
commit aace0d316f
Signed by: falsepattern
GPG key ID: E930CDEC50C50E23
2 changed files with 5 additions and 3 deletions

View file

@ -19,7 +19,9 @@ Changelog structure reference:
### Fixed
- Zig source file path highlighter made the terminal lag with some files
- Zig
- Source file path highlighter made the terminal lag with some files
- Non-terminating rule in lexer could make the editor hang
## [20.1.1]

View file

@ -246,10 +246,10 @@ BUILTINIDENTIFIER="@"[A-Za-z_][A-Za-z0-9_]*
<UNT_SQUOT> <<EOF>> { yybegin(YYINITIAL); return BAD_SQUOT; }
<UNT_SQUOT> {CRLF} { yybegin(YYINITIAL); return BAD_SQUOT; }
<UNT_SQUOT> [^\n]* { }
<UNT_SQUOT> [^\n]+ { }
<UNT_DQUOT> <<EOF>> { yybegin(YYINITIAL); return BAD_DQUOT; }
<UNT_DQUOT> {CRLF} { yybegin(YYINITIAL); return BAD_DQUOT; }
<UNT_DQUOT> [^\n]* { }
<UNT_DQUOT> [^\n]+ { }
<YYINITIAL> {WHITE_SPACE} { return WHITE_SPACE; }