Removed "assert" as reserved. Enabled terminating ";" in lists.
This commit is contained in:
parent
4d121602eb
commit
53314c2c0c
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
/dune-project
|
||||
*~
|
||||
cache/*
|
||||
Version.ml
|
||||
|
@ -104,7 +104,7 @@ let keywords = Token.[
|
||||
"and", None;
|
||||
"as", None;
|
||||
"asr", None;
|
||||
"assert", None;
|
||||
(* "assert", None;*)
|
||||
"class", None;
|
||||
"constraint", None;
|
||||
"do", None;
|
||||
|
@ -179,11 +179,13 @@ tuple(item):
|
||||
(* Possibly empty semicolon-separated values between brackets *)
|
||||
|
||||
list_of(item):
|
||||
lbracket sepseq(item,semi) rbracket {
|
||||
{opening = LBracket $1;
|
||||
elements = $2;
|
||||
terminator = None;
|
||||
closing = RBracket $3} }
|
||||
lbracket sep_or_term_list(item,semi) rbracket {
|
||||
let elements, terminator = $2 in {
|
||||
opening = LBracket $1;
|
||||
elements = Some elements;
|
||||
terminator;
|
||||
closing = RBracket $3}
|
||||
}
|
||||
|
||||
(* Main *)
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
let version = "UNKNOWN"
|
Loading…
Reference in New Issue
Block a user