1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

Support missing end-of-line after line comment at end of file, i.e. // my comment<EOF>

This commit is contained in:
Kevin Glynn 2011-08-09 12:34:38 +02:00
parent b0bc6dca4d
commit bdc1a68ee2

View File

@ -1286,10 +1286,10 @@ TS:
(' ' | '\t' | '\u00A0' )
{ Skip(); } ;
DOC_LINE_COMMENT
: ('///' ~('\n'|'\r')* ('\r' | '\n')+)
: ('///' ~('\n'|'\r')* ('\r' | '\n')*)
{$channel=Hidden;} ;
LINE_COMMENT
: ('//' ~('\n'|'\r')* ('\r' | '\n')+)
: ('//' ~('\n'|'\r')* ('\r' | '\n')*)
{$channel=Hidden;} ;
COMMENT:
'/*'