Skip to content

Commit

Permalink
Fix incorrect handling of /*/
Browse files Browse the repository at this point in the history
  • Loading branch information
ghewgill committed Feb 1, 2025
1 parent 8fcfed6 commit 14b0a09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions neon/lexer.neon
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ FUNCTION tokenize_fragment(source_path: String, INOUT line: Number, column_start
END IF
ELSIF c = "/" THEN
IF i+1 < source.length() AND source[i+1] = "*" THEN
i := i + 2
LOOP
IF i+1 >= source.length() THEN
error(1006, t, "Missing closing comment '*/'")
Expand Down

0 comments on commit 14b0a09

Please sign in to comment.