Much more readable.

This commit is contained in:
Neil 2022-02-15 21:28:35 -08:00
parent 5c90cd9088
commit 73d09965f2
1 changed files with 2 additions and 4 deletions

View File

@ -219,10 +219,8 @@ scan:
<edict_natural> ws* @s0 natural @s1 ws* ";"?
{ x->s0 = s0, x->s1 = s1; expect_pop();
return x->symbol = ARG_NATURAL, 1; }
<edict_freeform> ws* @s0
([^] \ (sentinel | illegal | newline | ws | [;[\]]))
([^] \ (sentinel | illegal | newline | [;[\]]))*
@s1 ws* ";"?
<edict_freeform>
ws* @s0 (glyph \ [;[\]]) ((glyph \ [;[\]]) | ws)* @s1 ws* ";"?
{ x->s0 = s0, x->s1 = s1; expect_pop();
return x->symbol = ARG_FREEFORM, 1; }
<edict, edict_end> "]" => expect_line