mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-19 07:51:08 +00:00
[qfcc] Handle * strings in /* */ comments correctly
The *s were consuming the final star in */, so fancy comments were breaking.
This commit is contained in:
parent
61948b2469
commit
eab561f279
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ pp_vnumber '({s}*{m}?{pp_number}){2,4}{s}*'{ULFD}?
|
|||
<COMMENT>\r*\n { next_line (yylloc, yyscanner); yymore();}
|
||||
<COMMENT>[^*/\n]* { yymore(); }/* munch on anything but possible end of comment */
|
||||
<COMMENT>\/+[^*\n]* { yymore(); }/* handle /s not followed by * */
|
||||
<COMMENT>\*+[^/\n]* { yymore(); }/* handle *s not followed by * */
|
||||
<COMMENT>\*+/[^/] { yymore(); }/* handle *s not followed by / */
|
||||
<COMMENT><<EOF>> { error (0, "EOF in comment"); return 0; }
|
||||
<*>"/*" { yy_push_state (COMMENT, yyscanner); yymore(); }
|
||||
<*>"//" {/* cf <*>\r\n */
|
||||
|
|
Loading…
Reference in a new issue