Merge pull request #62 from nakulpathak3/multiline-comment-grammar
Add multi-line comment support to parser
This commit is contained in:
commit
504d498846
|
@ -44,4 +44,5 @@ STRV = @{ "''" | (!"'" ~ ANY)* }
|
|||
COMMA = @{ "," }
|
||||
|
||||
WHITESPACE = _{ (" " | NEWLINE) }
|
||||
COMMENT = _{ "//" ~ (!NEWLINE ~ ANY)* }
|
||||
BLOCK_COMMENT = _{ "/*" ~ (BLOCK_COMMENT | !"*/" ~ ANY)* ~ "*/" }
|
||||
COMMENT = _{ BLOCK_COMMENT | ("//" ~ (!NEWLINE ~ ANY)*) }
|
||||
|
|
Loading…
Reference in New Issue