Before creating a package

This commit is contained in:
Dag Evensberget 2019-11-28 15:37:37 +10:00
parent 9e7d87d6ca
commit d9869005e2
3 changed files with 20 additions and 30 deletions

View File

@ -1,30 +1,20 @@
{ {
"comments": { "comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments // symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "//", // used here to allow quick commenting/uncommenting of lines.
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments "lineComment": "!",
"blockComment": [ "/*", "*/" ]
}, },
// symbols used as brackets // This works nicely.
"brackets": [ "folding": {
["{", "}"], "markers": {
["[", "]"], "start": "^#BEGIN_COMP",
["(", ")"] "end": "^#END_COMP"
], }
// symbols that are auto closed when typing },
// This is mostly for show.
"autoClosingPairs": [ "autoClosingPairs": [
["{", "}"], ["#BEGIN_COMP SC", "\n#END_COMP SC"],
["[", "]"], ["#BEGIN_COMP IH", "\n#END_COMP IH"],
["(", ")"], ["#BEGIN_COMP GM", "\n#END_COMP GM"],
["\"", "\""],
["'", "'"]
], ],
// symbols that that can be used to surround a selection }
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}

View File

@ -1,7 +1,7 @@
{ {
"name": "swmf", "name": "swmf-grammar",
"displayName": "swmf", "displayName": "swmf-grammar",
"description": "SWMF Configuration", "description": "SWMF Configuration grammar for VS Code",
"version": "0.0.1", "version": "0.0.1",
"engines": { "engines": {
"vscode": "^1.40.0" "vscode": "^1.40.0"
@ -22,4 +22,4 @@
"path": "./syntaxes/swmf.tmLanguage.json" "path": "./syntaxes/swmf.tmLanguage.json"
}] }]
} }
} }

View File

@ -25,7 +25,7 @@
}, },
"command": { "command": {
"patterns": [{ "patterns": [{
"name":"cat.comment.swmf", "name":"source.swmf",
"begin": "^(#[a-zA-Z0-9_]+)(\\s.*)?\n", "begin": "^(#[a-zA-Z0-9_]+)(\\s.*)?\n",
"end": "(?=(^\\s*\n|^#.*\n))" "end": "(?=(^\\s*\n|^#.*\n))"
, ,
@ -94,4 +94,4 @@
} }
}, },
"scopeName": "source.swmf" "scopeName": "source.swmf"
} }