mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-08 17:00:47 +00:00
catch nested /* in comments
This commit is contained in:
parent
ff0144f870
commit
8079c9951c
1 changed files with 1 additions and 0 deletions
|
@ -104,6 +104,7 @@ m ([\-+]?)
|
||||||
%%
|
%%
|
||||||
|
|
||||||
"/*" { BEGIN (comment); }
|
"/*" { BEGIN (comment); }
|
||||||
|
<comment>"/*" { warning (0, "nested /* in comment"); }
|
||||||
<comment>"*/" { BEGIN (INITIAL); }
|
<comment>"*/" { BEGIN (INITIAL); }
|
||||||
<comment>\r*\n { pr.source_line++; }
|
<comment>\r*\n { pr.source_line++; }
|
||||||
<comment>. /* nothing to do */
|
<comment>. /* nothing to do */
|
||||||
|
|
Loading…
Reference in a new issue