mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Support both (* *) and // style comments.
This commit is contained in:
parent
a17e73c863
commit
806d9110a2
1 changed files with 4 additions and 0 deletions
|
@ -93,9 +93,13 @@ FRAMEID {ID}(\.{ID})*
|
|||
"{" { BEGIN (COMMENT); }
|
||||
<COMMENT>"{" { warning (0, "nested { in comment"); }
|
||||
<COMMENT>"}" { BEGIN (INITIAL); }
|
||||
"(*" { BEGIN (COMMENT); }
|
||||
<COMMENT>"(*" { warning (0, "nested (* in comment"); }
|
||||
<COMMENT>"*)" { BEGIN (INITIAL); }
|
||||
<COMMENT>\r*\n { pr.source_line++; }
|
||||
<COMMENT>. /* nothing to do, with people like you */
|
||||
<COMMENT><<EOF>> { error (0, "EOF in comment"); return 0; }
|
||||
"//".* /* nothing to do, with people like you */
|
||||
|
||||
^#{s}+{D}+{s}+\"(\.|[^"\n])*\".*$ { line_info (yytext + 1); }
|
||||
^#line{s}+{D}+{s}+\"(\.|[^"\n])*\".*$ { line_info (yytext + 1); }
|
||||
|
|
Loading…
Reference in a new issue