Much more readable.

This commit is contained in:
Neil 2022-02-15 21:28:35 -08:00
parent 5c90cd9088
commit 73d09965f2

View File

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