summaryrefslogtreecommitdiff
path: root/src/lexer2.mll
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer2.mll')
-rw-r--r--src/lexer2.mll4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lexer2.mll b/src/lexer2.mll
index 4f4a8be2..f5350ea8 100644
--- a/src/lexer2.mll
+++ b/src/lexer2.mll
@@ -192,7 +192,6 @@ rule token = parse
token lexbuf }
| "&" { (Amp(r"&")) }
| "@" { (At "@") }
- | "|" { Bar }
| "2" ws "^" { TwoCaret }
| "^" { (Caret(r"^")) }
| ":" { Colon(r ":") }
@@ -207,6 +206,9 @@ rule token = parse
| ";" { Semi }
| "*" { (Star(r"*")) }
| "_" { Under }
+ | "{|" { LcurlyBar }
+ | "|}" { RcurlyBar }
+ | "|" { Bar }
| "{" { Lcurly }
| "}" { Rcurly }
| "()" { Unit(r"()") }