diff --git a/LexOccam.x b/LexOccam.x index 0a2b2c9..8e621a5 100644 --- a/LexOccam.x +++ b/LexOccam.x @@ -34,7 +34,10 @@ $hexDigit = [0-9 a-f A-F] $horizSpace = [\ \t] $vertSpace = [\r\n] -@preprocessor = "#" [^\n]* +@directive = "ELSE" | "ENDIF" | "IF" | "INCLUDE" + | "OPTION" | "PRAGMA" | "RELAX" | "USE" + +@preprocessor = "#" @directive [^\n]* @reserved = "[" | "]" | "(" | ")" | "::" | ":=" | ":" | "," | ";" | "&"