Published on github

This commit is contained in:
Dag Evensberget 2019-11-28 16:55:04 +10:00
parent d2df797615
commit 2a169b428d
4 changed files with 73 additions and 11 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
.vscode/
.vscodeignore
node_modules/
package-lock.json
*.vsix

21
LICENSE Normal file
View 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
View 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

View File

@ -3,6 +3,10 @@
"displayName": "swmf-grammar",
"description": "SWMF Configuration grammar for VS Code",
"version": "0.0.1",
"publisher": "svaberg",
"repository": {
"type": "git",
"url": "https://github.com/svaberg/SWMF-grammar"},
"engines": {
"vscode": "^1.40.0"
},
@ -10,16 +14,29 @@
"Programming Languages"
],
"contributes": {
"languages": [{
"id": "swmf",
"aliases": ["SWMF Config", "swmf"],
"extensions": [".in",".IN"],
"languages": [
{
"id": "swmf-config",
"aliases": [
"SWMF Config",
"swmf"
],
"extensions": [
".in",
".IN"
],
"configuration": "./language-configuration.json"
}],
"grammars": [{
"language": "swmf",
}
],
"grammars": [
{
"language": "swmf-config",
"scopeName": "source.swmf",
"path": "./syntaxes/swmf.tmLanguage.json"
}]
}
]
},
"dependencies": {
"vsce": "^1.69.0"
}
}