diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-12-21 00:36:12 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-12-21 02:32:06 -0500 |
commit | 494079ee46d67ae7ef6504734f7400b543c6d848 (patch) | |
tree | 9f4ad236fe10ef99b422913edc98d85cf83f99aa /dimension/lexer.l | |
parent | 0eb3d602df451f882e107ebed47b3bce9a1e68dc (diff) | |
download | dimension-494079ee46d67ae7ef6504734f7400b543c6d848.tar.xz |
Support #declare, #local, and #undef.
Diffstat (limited to 'dimension/lexer.l')
-rw-r--r-- | dimension/lexer.l | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dimension/lexer.l b/dimension/lexer.l index 54d2040..691467b 100644 --- a/dimension/lexer.l +++ b/dimension/lexer.l @@ -194,8 +194,10 @@ unsigned long wchar; "z" RETURN_TOKEN(DMNSN_T_Z); (?# Directives) -"#include" RETURN_TOKEN(DMNSN_T_INCLUDE); "#declare" RETURN_TOKEN(DMNSN_T_DECLARE); +"#include" RETURN_TOKEN(DMNSN_T_INCLUDE); +"#local" RETURN_TOKEN(DMNSN_T_LOCAL); +"#undef" RETURN_TOKEN(DMNSN_T_UNDEF); (?# Identifiers) [[:alpha:]][[:alnum:]_]* RETURN_VALUE_TOKEN(DMNSN_T_IDENTIFIER); |