Browse Source

parser: a comment does not need to include a newline character

Joeri Exelmans 8 months ago
parent
commit
7c01b126c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      concrete_syntax/textual_od/parser.py

+ 1 - 1
concrete_syntax/textual_od/parser.py

@@ -15,7 +15,7 @@ grammar = r"""
 ?start: object*
 
 IDENTIFIER: /[A-Za-z_][A-Za-z_0-9]*/
-COMMENT: /#[^\n]*\n/
+COMMENT: /#[^\n]*/
 
 literal: INT
        | STR