diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-04-15 23:31:24 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-04-15 23:31:24 -0400 |
commit | 7577a2b69f9a77962912753b6768b38db4e3c454 (patch) | |
tree | 4217cd2758ac8600d9f12c12e07a30b614c4a2d5 /dimension/common.rules | |
parent | cdaacf47797665a1558006a0fd0d801f65c30c92 (diff) | |
download | dimension-7577a2b69f9a77962912753b6768b38db4e3c454.tar.xz |
Initial support for image_maps.
Diffstat (limited to 'dimension/common.rules')
-rw-r--r-- | dimension/common.rules | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dimension/common.rules b/dimension/common.rules index 863b288..732a277 100644 --- a/dimension/common.rules +++ b/dimension/common.rules @@ -324,6 +324,24 @@ PIGMENT_TYPE: /* empty */ { $$ = dmnsn_new_astnode(DMNSN_AST_NONE, @$); } | COLOR + | "image_map" "{" + BITMAP_TYPE STRING + "}" + { + $$ = dmnsn_new_astnode2(DMNSN_AST_IMAGE_MAP, @$, $3, $4); + } + | "image_map" "{" + STRING + "}" + { + dmnsn_astnode type = dmnsn_new_astnode(DMNSN_AST_PNG, @$); + $$ = dmnsn_new_astnode2(DMNSN_AST_IMAGE_MAP, @$, type, $3); + } +; + +BITMAP_TYPE: "png" { + $$ = dmnsn_new_astnode(DMNSN_AST_PNG, @$); + } ; PIGMENT_MODIFIERS: /* empty */ { |