Update reservedIdentifiers (#1473)
* Add `missing` and `assert` * Reformat them to match the grammar
This commit is contained in:
parent
2a8735c202
commit
343e64e0ce
|
@ -1146,23 +1146,24 @@ shallowDenote e = e
|
||||||
reservedIdentifiers :: HashSet Text
|
reservedIdentifiers :: HashSet Text
|
||||||
reservedIdentifiers =
|
reservedIdentifiers =
|
||||||
Data.HashSet.fromList
|
Data.HashSet.fromList
|
||||||
[ "let"
|
[ -- Keywords according to the `keyword` rule in the grammar
|
||||||
, "in"
|
"if"
|
||||||
, "Type"
|
|
||||||
, "Kind"
|
|
||||||
, "Sort"
|
|
||||||
, "forall"
|
|
||||||
, "Bool"
|
|
||||||
, "True"
|
|
||||||
, "False"
|
|
||||||
, "merge"
|
|
||||||
, "toMap"
|
|
||||||
, "if"
|
|
||||||
, "then"
|
, "then"
|
||||||
, "else"
|
, "else"
|
||||||
, "as"
|
, "let"
|
||||||
|
, "in"
|
||||||
, "using"
|
, "using"
|
||||||
, "Natural"
|
, "missing"
|
||||||
|
, "as"
|
||||||
|
, "Infinity"
|
||||||
|
, "NaN"
|
||||||
|
, "merge"
|
||||||
|
, "Some"
|
||||||
|
, "toMap"
|
||||||
|
, "assert"
|
||||||
|
, "forall"
|
||||||
|
|
||||||
|
-- Builtins according to the `builtin` rule in the grammar
|
||||||
, "Natural/fold"
|
, "Natural/fold"
|
||||||
, "Natural/build"
|
, "Natural/build"
|
||||||
, "Natural/isZero"
|
, "Natural/isZero"
|
||||||
|
@ -1176,11 +1177,9 @@ reservedIdentifiers =
|
||||||
, "Integer/negate"
|
, "Integer/negate"
|
||||||
, "Integer/show"
|
, "Integer/show"
|
||||||
, "Integer/toDouble"
|
, "Integer/toDouble"
|
||||||
, "Double"
|
, "Integer/show"
|
||||||
|
, "Natural/subtract"
|
||||||
, "Double/show"
|
, "Double/show"
|
||||||
, "Text"
|
|
||||||
, "Text/show"
|
|
||||||
, "List"
|
|
||||||
, "List/build"
|
, "List/build"
|
||||||
, "List/fold"
|
, "List/fold"
|
||||||
, "List/length"
|
, "List/length"
|
||||||
|
@ -1188,11 +1187,20 @@ reservedIdentifiers =
|
||||||
, "List/last"
|
, "List/last"
|
||||||
, "List/indexed"
|
, "List/indexed"
|
||||||
, "List/reverse"
|
, "List/reverse"
|
||||||
, "Optional"
|
|
||||||
, "Some"
|
|
||||||
, "None"
|
|
||||||
, "Optional/build"
|
|
||||||
, "Optional/fold"
|
, "Optional/fold"
|
||||||
, "NaN"
|
, "Optional/build"
|
||||||
, "Infinity"
|
, "Text/show"
|
||||||
|
, "Bool"
|
||||||
|
, "True"
|
||||||
|
, "False"
|
||||||
|
, "Optional"
|
||||||
|
, "None"
|
||||||
|
, "Natural"
|
||||||
|
, "Integer"
|
||||||
|
, "Double"
|
||||||
|
, "Text"
|
||||||
|
, "List"
|
||||||
|
, "Type"
|
||||||
|
, "Kind"
|
||||||
|
, "Sort"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user