diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-02-02 22:45:20 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-02-02 22:49:26 -0500 |
commit | 3f660a9b219b03bd5188cd4f0da9a58f507a933a (patch) | |
tree | 57162550b6c390cb0bf1ab143cee5bebda3a6ed8 /dimension/lexer.l | |
parent | 80555a542f522d70fd0cb98227db005805f0c184 (diff) | |
download | dimension-3f660a9b219b03bd5188cd4f0da9a58f507a933a.tar.xz |
Support #ifdef and #ifndef.
Diffstat (limited to 'dimension/lexer.l')
-rw-r--r-- | dimension/lexer.l | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dimension/lexer.l b/dimension/lexer.l index eb5184c..14096d1 100644 --- a/dimension/lexer.l +++ b/dimension/lexer.l @@ -211,6 +211,8 @@ unsigned long wchar; "#else" RETURN_TOKEN(DMNSN_T_ELSE); "#end" RETURN_TOKEN(DMNSN_T_END); "#if" RETURN_TOKEN(DMNSN_T_IF); +"#ifdef" RETURN_TOKEN(DMNSN_T_IFDEF); +"#ifndef" RETURN_TOKEN(DMNSN_T_IFNDEF); "#include" RETURN_TOKEN(DMNSN_T_INCLUDE); "#local" RETURN_TOKEN(DMNSN_T_LOCAL); "#undef" RETURN_TOKEN(DMNSN_T_UNDEF); |