Skip to content

Commit c7178e3

Browse files
authored
Merge pull request #12 from merico-dev/fix-scan-class-decl
Fix external scanner on scanning class declarations
2 parents 26aca7e + ef73448 commit c7178e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scanner.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ bool scan_class(void *payload, TSLexer *lexer) {
414414
if (
415415
lexer->lookahead != 'c'
416416
|| !scan_for_word(lexer, "lass", 4)
417+
|| !iswspace(lexer->lookahead)
417418
) return false;
418419

419420
lexer->mark_end(lexer);

0 commit comments

Comments
 (0)