highlight names followed nameProviders in lean-mode
This commit is contained in:
parent
34d80e81ca
commit
27ad846641
1 changed files with 5 additions and 0 deletions
|
|
@ -53,6 +53,9 @@ var leanHighlightRules = function() {
|
||||||
"universes", "using", "variable", "variables", "with"].join("|")
|
"universes", "using", "variable", "variables", "with"].join("|")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
var nameProviders = (
|
||||||
|
["inductive", "structure", "record", "theorem", "axiom",
|
||||||
|
"axioms", "lemma", "hypothesis", "definition", "constant"].join("|")
|
||||||
);
|
);
|
||||||
|
|
||||||
var storageType = (
|
var storageType = (
|
||||||
|
|
@ -109,6 +112,8 @@ var leanHighlightRules = function() {
|
||||||
{defaultToken: "string"}
|
{defaultToken: "string"}
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
|
token : "keyword.control", regex : nameProviders, next : [
|
||||||
|
{token : "variable.language", regex : identifierRe, next : "start"} ]
|
||||||
}, {
|
}, {
|
||||||
token : "constant.numeric", // hex
|
token : "constant.numeric", // hex
|
||||||
regex : "0[xX][0-9a-fA-F]+(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"
|
regex : "0[xX][0-9a-fA-F]+(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue