Published on github
This commit is contained in:
parent
d2df797615
commit
2a169b428d
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
.vscode/
|
||||||
|
.vscodeignore
|
||||||
|
node_modules/
|
||||||
|
package-lock.json
|
||||||
|
*.vsix
|
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2019 Dag Evensberget
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
19
demo.in
Normal file
19
demo.in
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
Highlighting demo using Monokai dark theme.
|
||||||
|
|
||||||
|
#COMMAND Example command with parameters.
|
||||||
|
-10 integer parameter
|
||||||
|
+1.1e6 float parameter
|
||||||
|
T Boolean parameter
|
||||||
|
Hello World string parameter
|
||||||
|
|
||||||
|
#BEGIN_COMP SC Marker and component ID
|
||||||
|
|
||||||
|
COMMAND Commands lacking the # characters are comments.
|
||||||
|
15
|
||||||
|
|
||||||
|
#END_COMP SC End marker and component ID
|
||||||
|
|
||||||
|
#COMMAND
|
||||||
|
500 Comment
|
||||||
|
|
||||||
|
#END
|
39
package.json
39
package.json
|
@ -3,6 +3,10 @@
|
||||||
"displayName": "swmf-grammar",
|
"displayName": "swmf-grammar",
|
||||||
"description": "SWMF Configuration grammar for VS Code",
|
"description": "SWMF Configuration grammar for VS Code",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
|
"publisher": "svaberg",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/svaberg/SWMF-grammar"},
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.40.0"
|
"vscode": "^1.40.0"
|
||||||
},
|
},
|
||||||
|
@ -10,16 +14,29 @@
|
||||||
"Programming Languages"
|
"Programming Languages"
|
||||||
],
|
],
|
||||||
"contributes": {
|
"contributes": {
|
||||||
"languages": [{
|
"languages": [
|
||||||
"id": "swmf",
|
{
|
||||||
"aliases": ["SWMF Config", "swmf"],
|
"id": "swmf-config",
|
||||||
"extensions": [".in",".IN"],
|
"aliases": [
|
||||||
"configuration": "./language-configuration.json"
|
"SWMF Config",
|
||||||
}],
|
"swmf"
|
||||||
"grammars": [{
|
],
|
||||||
"language": "swmf",
|
"extensions": [
|
||||||
"scopeName": "source.swmf",
|
".in",
|
||||||
"path": "./syntaxes/swmf.tmLanguage.json"
|
".IN"
|
||||||
}]
|
],
|
||||||
|
"configuration": "./language-configuration.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"grammars": [
|
||||||
|
{
|
||||||
|
"language": "swmf-config",
|
||||||
|
"scopeName": "source.swmf",
|
||||||
|
"path": "./syntaxes/swmf.tmLanguage.json"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"vsce": "^1.69.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user