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:
parent
b0bc6dca4d
commit
bdc1a68ee2
@ -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:
|
||||
'/*'
|
||||
|
Loading…
x
Reference in New Issue
Block a user