Home | History | Annotate | Download | only in tests
      1 lexer grammar t025lexerRulePropertyRef;
      2 options {
      3   language = Python;
      4 }
      5 
      6 @lexer::init {
      7 self.properties = []
      8 }
      9 
     10 IDENTIFIER: 
     11         ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
     12         {
     13 self.properties.append(
     14     ($text, $type, $line, $pos, $index, $channel, $start, $stop)
     15 )
     16         }
     17     ;
     18 WS: (' ' | '\n')+;
     19