瀏覽代碼

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

Joeri Exelmans 11 月之前
父節點
當前提交
7c01b126c2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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