File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5921,7 +5921,7 @@ parser_lex(yp_parser_t *parser) {
5921
5921
5922
5922
// If this is not followed by a comment, then we can break out
5923
5923
// of this loop.
5924
- if (* following != '#') break;
5924
+ if (peek_at(parser, following) != '#') break;
5925
5925
5926
5926
// If there is a comment, then we need to find the end of the
5927
5927
// comment and continue searching from there.
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ def snippet(name, source)
16
16
snippet "incomplete symbol" , ":"
17
17
snippet "incomplete escaped string" , '"\\'
18
18
snippet "trailing comment" , "1\n #\n "
19
+ snippet "comment followed by whitespace at end of file" , "1\n #\n "
19
20
snippet "trailing asterisk" , "a *"
20
21
snippet "incomplete decimal number" , "0d"
21
22
snippet "incomplete binary number" , "0b"
You can’t perform that action at this time.
0 commit comments