aboutsummaryrefslogtreecommitdiffhomepage
path: root/parsing/lexer.mll
diff options
context:
space:
mode:
Diffstat (limited to 'parsing/lexer.mll')
-rw-r--r--parsing/lexer.mll4
1 files changed, 4 insertions, 0 deletions
diff --git a/parsing/lexer.mll b/parsing/lexer.mll
index 9a417622b..5a2f980f5 100644
--- a/parsing/lexer.mll
+++ b/parsing/lexer.mll
@@ -176,6 +176,10 @@ let func cs =
in
let ts = Stream.from next_token in
(ts, find_loc loct)
+
+let add_token = function
+ | ("",kw) -> add_keyword kw
+ | _ -> ()
let token_text = function
| ("", t) -> "'" ^ t ^ "'"