mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 09:02:08 +00:00
handle dos line endings a little better
This commit is contained in:
parent
184ff4a216
commit
12d2338d1b
1 changed files with 3 additions and 3 deletions
|
@ -111,7 +111,7 @@ m ([\-+]?)
|
||||||
return QUATERNION_VAL;
|
return QUATERNION_VAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
'(\\[^xX0-7\n]|[^'\n]|\\[xX][0-9A-Fa-f]+|\\[0-7]+)*' {
|
'(\\[^xX0-7\r\n]|[^'\r\n]|\\[xX][0-9A-Fa-f]+|\\[0-7]+)*' {
|
||||||
char *str = make_string (yytext);
|
char *str = make_string (yytext);
|
||||||
|
|
||||||
if (str[1])
|
if (str[1])
|
||||||
|
@ -190,9 +190,9 @@ m ([\-+]?)
|
||||||
|
|
||||||
<grab_frame>{ID} add_frame_macro (yytext);
|
<grab_frame>{ID} add_frame_macro (yytext);
|
||||||
|
|
||||||
<grab_other>[^\n]* /* skip */
|
<grab_other>[^\r\n]* /* skip */
|
||||||
|
|
||||||
<*>\n {
|
<*>\r*\n {
|
||||||
pr_source_line++;
|
pr_source_line++;
|
||||||
BEGIN (INITIAL);
|
BEGIN (INITIAL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue