feat: Allow line-comments in DataStream parser
Supports c#/c++ style line comments (i.e., that begin with '//') TODO: block comments
This commit is contained in:
1 parent
633163518a
commit
d0d3c9de4e
2 files changed
+14
No files matched your search
@@ -26,6 +26,9 @@ Comma ,
|
||||
QuoteOpen \[
|
||||
QuoteClose \]
|
||||
|
||||
/* Comments */
|
||||
LineComment \/\/[^\n\r]*(\n|\r|\r\n)
|
||||
|
||||
%%
|
||||
|
||||
{Equals} {
|
||||
@@ -92,4 +95,8 @@ QuoteClose \]
|
||||
return (int)DataStreamExpressionToken.IDENTIFIER;
|
||||
}
|
||||
|
||||
{LineComment} {
|
||||
return (int)DataStreamExpressionToken.LINE_COMMENT;
|
||||
}
|
||||
|
||||
%%
|
||||
Reference in new issue
Block a user