mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 13:11:00 +00:00
[qfcc] Handle q-string in preprocessor expressions
This fixes line directives not parsing as they were getting c-string but the preprocessor parser wasn't expecting them (and I suspect it shouldn't).
This commit is contained in:
parent
0990401a87
commit
6fa1d9caa2
1 changed files with 1 additions and 0 deletions
|
@ -257,6 +257,7 @@ pp_vnumber '({s}*{m}?{pp_number}){2,4}{s}*'{ULFD}?
|
|||
<MACRO># { return '#'; }
|
||||
<PREPROC>{h_string} { return PRE_HSTRING; }
|
||||
<PREPROC>{q_string} { return PRE_QSTRING; }
|
||||
<PREEXPR>{q_string} { return PRE_QSTRING; }
|
||||
<PREEXPR>defined { return PRE_DEFINED; }
|
||||
<PREEXPR>{ID} { return PRE_ID; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue