summaryrefslogtreecommitdiffstats
path: root/dimension/grammar.rules
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/grammar.rules')
-rw-r--r--dimension/grammar.rules5
1 files changed, 4 insertions, 1 deletions
diff --git a/dimension/grammar.rules b/dimension/grammar.rules
index 1ce3e1f..0e9d6f1 100644
--- a/dimension/grammar.rules
+++ b/dimension/grammar.rules
@@ -55,7 +55,10 @@ GLOBAL_SETTINGS_ITEMS: /* empty */ {
}
;
-GLOBAL_SETTINGS_ITEM: "assumed_gamma" FLOAT {
+GLOBAL_SETTINGS_ITEM: "ambient_light" COLOR {
+ $$ = dmnsn_new_astnode1(DMNSN_AST_AMBIENT, @$, $2);
+ }
+ | "assumed_gamma" FLOAT {
dmnsn_diagnostic(@1,
"WARNING: assumed_gamma not supported");
$$ = dmnsn_new_astnode1(DMNSN_AST_ASSUMED_GAMMA, @$, $2);