Skip to content

Commit

Permalink
fix comments and upgrade antlr
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed Jan 4, 2017
1 parent 51faca5 commit 5570e89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile 'com.intellij:annotations:5.1'
compile 'com.github.daemontus:kotlin-option-result:1.0.0'
antlr "org.antlr:antlr4:4.5.1-1"
antlr "org.antlr:antlr4:4.6"
}

sourceSets {
Expand Down
6 changes: 3 additions & 3 deletions src/main/antlr/com/github/sybila/ctl/antlr/CTL.g4
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ FLOAT_VAL : [-]?[0-9]*[.]?[0-9]+;

NEWLINE : '\r'?'\n';

WS : [ \t\u]+ -> channel(HIDDEN) ;
WS : [ \t]+ -> channel(HIDDEN) ;

Block_comment : '/*' (Block_comment|.)*? '*/' -> channel(HIDDEN) ; // nesting allow
C_Line_comment : '//' .*? ('\n' | EOF) -> channel(HIDDEN) ;
Python_Line_comment : '#' .*? ('\n' | EOF) -> channel(HIDDEN) ;
C_Line_comment : '//' ~('\n')* -> channel(HIDDEN) ;
Python_Line_comment : '#' ~('\n')* -> channel(HIDDEN) ;
2 changes: 1 addition & 1 deletion src/main/antlr/com/github/sybila/huctl/antlr/HUCTL.g4
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ FLOAT_VAL : [-]?[0-9]*[.]?[0-9]+;

NEWLINE : '\r'?'\n';

WS : [ \t\u]+ -> channel(HIDDEN) ;
WS : [ \t]+ -> channel(HIDDEN) ;

Block_comment : '/*' (Block_comment|.)*? '*/' -> channel(HIDDEN) ; // nesting allow
C_Line_comment : '//' .*? ('\n' | EOF) -> channel(HIDDEN) ;
Expand Down

0 comments on commit 5570e89

Please sign in to comment.