mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
Recognize a dot as operator when not in 'no-ops' mode in the lexer
This commit is contained in:
parent
437988c5b4
commit
fd1a850629
1 changed files with 3 additions and 4 deletions
7
lexer.c
7
lexer.c
|
@ -497,8 +497,6 @@ int lex_do(lex_file *lex)
|
|||
case '[':
|
||||
case ']':
|
||||
|
||||
case '.':
|
||||
|
||||
case '#':
|
||||
|
||||
return (lex->tok->ttype = ch);
|
||||
|
@ -525,13 +523,14 @@ int lex_do(lex_file *lex)
|
|||
case '^':
|
||||
case '~':
|
||||
case ',':
|
||||
return ch;
|
||||
case '.':
|
||||
return (lex->tok->ttype = ch);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (ch == ',') {
|
||||
if (ch == ',' || ch == '.') {
|
||||
if (!lex_tokench(lex, ch) ||
|
||||
!lex_endtoken(lex))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue