snippets for Jael
This commit is contained in:
parent
4941b36a1e
commit
29995151f2
3 changed files with 64 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "angel-dart-vscode",
|
"name": "angel-dart-vscode",
|
||||||
"displayName": "Angel Dart Support",
|
"displayName": "Angel",
|
||||||
"description": "Snippets and IDE support for the Angel server framework within VSCode.",
|
"description": "Snippets and IDE support for the Angel server framework within VSCode.",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -19,6 +19,9 @@
|
||||||
"angel",
|
"angel",
|
||||||
"angel-dart",
|
"angel-dart",
|
||||||
"dart",
|
"dart",
|
||||||
|
"jael",
|
||||||
|
"template",
|
||||||
|
"templating",
|
||||||
"flutter",
|
"flutter",
|
||||||
"fuchsia"
|
"fuchsia"
|
||||||
],
|
],
|
||||||
|
@ -56,6 +59,10 @@
|
||||||
{
|
{
|
||||||
"language": "dart",
|
"language": "dart",
|
||||||
"path": "./snippets/angel.json"
|
"path": "./snippets/angel.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"language": "jael",
|
||||||
|
"path": "./snippets/jael.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
53
angel_vscode/snippets/jael.json
Normal file
53
angel_vscode/snippets/jael.json
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
{
|
||||||
|
".source.jael": {
|
||||||
|
"block": {
|
||||||
|
"prefix": "block",
|
||||||
|
"description": "Insert a named <block> tag.",
|
||||||
|
"body": ["<block name=\"$1\">", " $2", "<block>"]
|
||||||
|
},
|
||||||
|
"comment": {
|
||||||
|
"prefix": "comment",
|
||||||
|
"description": "Insert a comment.",
|
||||||
|
"body": ["<!-- $1 -->"]
|
||||||
|
},
|
||||||
|
"declare": {
|
||||||
|
"prefix": "declare",
|
||||||
|
"description": "Insert a <declare> tag.",
|
||||||
|
"body": ["<declare $1=$2>", " $3", "<declare>"]
|
||||||
|
},
|
||||||
|
"element": {
|
||||||
|
"prefix": "element",
|
||||||
|
"description": "Insert a custom <element> tag.",
|
||||||
|
"body": ["<element name=\"$1\">", " $2", "<element>"]
|
||||||
|
},
|
||||||
|
"extend": {
|
||||||
|
"prefix": "extend",
|
||||||
|
"description": "Insert an <extend> tag.",
|
||||||
|
"body": ["<extend src=\"$1\">", " $2", "<extend>"]
|
||||||
|
},
|
||||||
|
"for-each": {
|
||||||
|
"prefix": "for-each",
|
||||||
|
"description": "Insert a <for-each> tag.",
|
||||||
|
"body": ["<${1:div} for-each=$2 as=\"$3\">", " $4", "<$1>"]
|
||||||
|
},
|
||||||
|
"include": {
|
||||||
|
"prefix": "include",
|
||||||
|
"description": "Insert an <include /> tag.",
|
||||||
|
"body": ["<include src=\"$1\"/>"]
|
||||||
|
},
|
||||||
|
"switch": {
|
||||||
|
"prefix": "switch",
|
||||||
|
"description": "Insert a <switch> tag.",
|
||||||
|
"body": [
|
||||||
|
"<switch value=$1>",
|
||||||
|
" <case value=$2>",
|
||||||
|
" $3",
|
||||||
|
" </case>",
|
||||||
|
" <default>",
|
||||||
|
" $4",
|
||||||
|
" </default>",
|
||||||
|
"<switch>"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -11,16 +11,16 @@
|
||||||
"name": "punctuation.jael"
|
"name": "punctuation.jael"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"begin": "{{-?",
|
"begin": "{{(?!-)",
|
||||||
"end": "}}",
|
"end": "}}",
|
||||||
"beginCaptures": {
|
"beginCaptures": {
|
||||||
"0": {
|
"0": {
|
||||||
"name": "comment.jael"
|
"name": "keyword.operator.jael"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"endCaptures": {
|
"endCaptures": {
|
||||||
"0": {
|
"0": {
|
||||||
"name": "comment.jael"
|
"name": "keyword.operator.jael"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"patterns": [{ "include": "#expressions" }, { "include": "#operators" }]
|
"patterns": [{ "include": "#expressions" }, { "include": "#operators" }]
|
||||||
|
|
Loading…
Reference in a new issue