summaryrefslogtreecommitdiffstats
path: root/dimension/grammar.rules
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-04 19:25:54 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-06 15:01:06 -0400
commit629cad2c7578aea62761ba2e1810356138b57480 (patch)
tree56e89b6efc240c4c90b38997e0ceea844df005b3 /dimension/grammar.rules
parent5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802 (diff)
downloaddimension-629cad2c7578aea62761ba2e1810356138b57480.tar.xz
Don't make empty child arrays when parsing.
Diffstat (limited to 'dimension/grammar.rules')
-rw-r--r--dimension/grammar.rules6
1 files changed, 3 insertions, 3 deletions
diff --git a/dimension/grammar.rules b/dimension/grammar.rules
index cf002cb..5f08e20 100644
--- a/dimension/grammar.rules
+++ b/dimension/grammar.rules
@@ -82,13 +82,13 @@ GLOBAL_SETTINGS_ITEM: "ambient_light" COLOR {
;
GLOBAL_CHARSET: "ascii" {
- $$ = dmnsn_new_astnode(DMNSN_AST_ASCII, @$);
+ $$ = dmnsn_new_astleaf(DMNSN_AST_ASCII, @$);
}
| "utf8" {
- $$ = dmnsn_new_astnode(DMNSN_AST_UTF8, @$);
+ $$ = dmnsn_new_astleaf(DMNSN_AST_UTF8, @$);
}
| "sys" {
- $$ = dmnsn_new_astnode(DMNSN_AST_SYS, @$);
+ $$ = dmnsn_new_astleaf(DMNSN_AST_SYS, @$);
}
/* Atmospheric effects */