inline js
parent
cc6ca5f9b9
commit
968da6af69
|
|
@ -14,12 +14,16 @@
|
||||||
"id": "vogue",
|
"id": "vogue",
|
||||||
"aliases": ["Vogue", "vogue"],
|
"aliases": ["Vogue", "vogue"],
|
||||||
"extensions": [".v"],
|
"extensions": [".v"],
|
||||||
|
"filenames": [".v"],
|
||||||
"configuration": "./language-configuration.json"
|
"configuration": "./language-configuration.json"
|
||||||
}],
|
}],
|
||||||
"grammars": [{
|
"grammars": [{
|
||||||
"language": "vogue",
|
"language": "vogue",
|
||||||
"scopeName": "main.v",
|
"scopeName": "source.vogue",
|
||||||
"path": "./syntaxes/vogue.tmLanguage.json"
|
"path": "./syntaxes/vogue.tmLanguage.json",
|
||||||
|
"embeddedLanguages": {
|
||||||
|
"source.js": "javescript"
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -7,13 +7,32 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"include": "#strings"
|
"include": "#strings"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#inlinejs"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"inlinejs": {
|
||||||
|
"begin": "\\[\\[",
|
||||||
|
"beginCaptures": {
|
||||||
|
"0": { "name": "begin.brace.nearley" }
|
||||||
|
},
|
||||||
|
"end": "\\]\\]",
|
||||||
|
"endCaptures": {
|
||||||
|
"0": { "name": "end.brace.nearley" }
|
||||||
|
},
|
||||||
|
"name": "source.js.embedded.nearley",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "source.js"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"keywords": {
|
"keywords": {
|
||||||
"patterns": [{
|
"patterns": [{
|
||||||
"name": "keyword.control.vogue",
|
"name": "keyword.control.vogue",
|
||||||
"match": "\\b(if|while|for|return|global|function|link)\\b"
|
"match": "\\b(namespace|required|restore|link)\\b"
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
"strings": {
|
"strings": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue