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