Skip to content

Commit fbd0fb9

Browse files
committed
fix(lexer): handle non-code characters within language identifier #101
The lexer now correctly handles non-code characters within a language identifier, ensuring that the parsing process is not disrupted. This change ensures that the lexer can distinguish between the start of a code block and non-code content, thereby improving the accuracy of the lexing process.
1 parent 1183caa commit fbd0fb9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

exts/devin-lang/src/grammar/DevInLexer.flex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ NEWLINE= \n | \r | \r\n
9999
{CODE_CONTENT} { if(isCodeStart) { return codeContent(); } else { yybegin(YYINITIAL); yypushback(yylength()); } }
100100
{NEWLINE} { return NEWLINE; }
101101
<<EOF>> { isCodeStart = false; yybegin(YYINITIAL); yypushback(yylength()); }
102-
[^] { isCodeStart = false; yybegin(YYINITIAL); yypushback(yylength()); }
103102
}
104103

105104
<LANG_ID> {

0 commit comments

Comments
 (0)