Skip to content

Commit

Permalink
Fixed LINE_COMMENT lexer rule
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Aug 20, 2024
1 parent 81f4b39 commit e83c155
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion data/Example1.circom
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ template nbits(a) {
outA <== i;
}

component main {public [in1]}= A();
component main {public [in1]}= A();

// Some comment
2 changes: 1 addition & 1 deletion grammar/LexerCircom.g4
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ COMMENT
;
LINE_COMMENT
: '//' ~[\r\n]* '\r'? '\n' -> channel(HIDDEN)
: '//' ~[\r\n]* -> channel(HIDDEN)
;
WS : [ \r\t\u000C\n]+ -> channel(HIDDEN)
Expand Down

0 comments on commit e83c155

Please sign in to comment.