Skip to content

Commit

Permalink
Allow comments at last line without newline
Browse files Browse the repository at this point in the history
  • Loading branch information
netalondon committed Mar 5, 2024
1 parent 92b0bbf commit fa1a422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion simulator/src/languages/grammars/base.ohm
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Base {
commentEnd = "*/"
comment = commentStart (~commentEnd any)* commentEnd
lineCommentStart = "//"
lineComment = lineCommentStart (~"\n" any)* "\n"
lineComment = lineCommentStart (~"\n" any)*

List<elem, sep> = NonemptyListOf<elem, sep> sep?
EmptyList<elem, sep> = EmptyList<elem, sep> sep?
Expand Down
2 changes: 1 addition & 1 deletion simulator/src/languages/grammars/base.ohm.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Base {
commentEnd = "*/"
comment = commentStart (~commentEnd any)* commentEnd
lineCommentStart = "//"
lineComment = lineCommentStart (~"\\n" any)* "\\n"
lineComment = lineCommentStart (~"\\n" any)*
List<elem, sep> = NonemptyListOf<elem, sep> sep?
EmptyList<elem, sep> = EmptyList<elem, sep> sep?
Expand Down

0 comments on commit fa1a422

Please sign in to comment.