mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +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;
|
||||
}
|
||||
|
||||
'(\\[^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);
|
||||
|
||||
if (str[1])
|
||||
|
@ -190,9 +190,9 @@ m ([\-+]?)
|
|||
|
||||
<grab_frame>{ID} add_frame_macro (yytext);
|
||||
|
||||
<grab_other>[^\n]* /* skip */
|
||||
<grab_other>[^\r\n]* /* skip */
|
||||
|
||||
<*>\n {
|
||||
<*>\r*\n {
|
||||
pr_source_line++;
|
||||
BEGIN (INITIAL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue