almost done

This commit is contained in:
Tobe O 2018-11-12 22:36:36 -05:00
parent 4ebb7c5a10
commit 91e6651bae

View file

@ -7,22 +7,15 @@
"include": "#expressions" "include": "#expressions"
}, },
{ {
"match": "!(DOCTYPE|doctype)([>]*)", "match": "\\b(DOCTYPE|doctype)\\b",
"captures": {
"1": {
"name": "keyword.doctype.jael" "name": "keyword.doctype.jael"
}, },
"2": {
"name": "support.doctype-value.jael"
}
}
},
{ {
"match": "[:,\\.]", "match": "[:,\\.]",
"name": "punctuation.jael" "name": "punctuation.jael"
}, },
{ {
"begin": "{{(?!-)", "begin": "{{-?",
"end": "}}", "end": "}}",
"beginCaptures": { "beginCaptures": {
"0": { "0": {
@ -36,15 +29,33 @@
}, },
"patterns": [{ "include": "#expressions" }, { "include": "#operators" }] "patterns": [{ "include": "#expressions" }, { "include": "#operators" }]
}, },
{
"begin": "<\\s*(script)[^>]*>",
"end": "<\\s*/\\s*(script)[^>]*>",
"beginCaptures": {
"1": {
"name": "keyword.tag.jael"
}
},
"endCaptures": {
"1": {
"name": "keyword.tag.jael"
}
},
"patterns": [{ "include": "source.js" }]
},
{ {
"match": "\\b(block|declare|for-each|extend|if|include|switch)\\b", "match": "\\b(block|declare|for-each|extend|if|include|switch)\\b",
"name": "keyword.control.jael" "name": "keyword.control.jael"
}, },
{ {
"match": "<\\s*/?\\s*([A-Za-z_][A-Za-z0-9_-]*)\\b", "match": "<\\s*/?\\s*([A-Za-z_][A-Za-z0-9_-]*)(\\s*[A-Za-z_][A-Za-z0-9_]*(?!=)\\s*)*\\b",
"captures": { "captures": {
"1": { "1": {
"name": "keyword.tag.jael" "name": "keyword.tag.jael"
},
"2": {
"name": "storage.name.jael"
} }
} }
}, },
@ -53,7 +64,7 @@
"name": "storage.argument.jael" "name": "storage.argument.jael"
}, },
{ {
"match": "\\b(@?[A-Za-z_][A-Za-z0-9_]*)=?", "match": "\\b(@?[A-Za-z_][A-Za-z0-9_]*)=",
"captures": { "captures": {
"1": { "1": {
"name": "storage.name.jael" "name": "storage.name.jael"
@ -72,6 +83,9 @@
}, },
{ {
"include": "#operators" "include": "#operators"
},
{
"include": "source.html"
} }
], ],
"repository": { "repository": {