From 2a169b428d2cb78f6411f190787f4455f7599e0e Mon Sep 17 00:00:00 2001 From: Dag Evensberget Date: Thu, 28 Nov 2019 16:55:04 +1000 Subject: [PATCH] Published on github --- .gitignore | 5 +++++ LICENSE | 21 +++++++++++++++++++++ demo.in | 19 +++++++++++++++++++ package.json | 39 ++++++++++++++++++++++++++++----------- 4 files changed, 73 insertions(+), 11 deletions(-) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 demo.in diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..28b4064 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.vscode/ +.vscodeignore +node_modules/ +package-lock.json +*.vsix \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4e85b03 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/demo.in b/demo.in new file mode 100644 index 0000000..1c28df9 --- /dev/null +++ b/demo.in @@ -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 diff --git a/package.json b/package.json index f961f42..c83438b 100644 --- a/package.json +++ b/package.json @@ -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"], - "configuration": "./language-configuration.json" - }], - "grammars": [{ - "language": "swmf", - "scopeName": "source.swmf", - "path": "./syntaxes/swmf.tmLanguage.json" - }] + "languages": [ + { + "id": "swmf-config", + "aliases": [ + "SWMF Config", + "swmf" + ], + "extensions": [ + ".in", + ".IN" + ], + "configuration": "./language-configuration.json" + } + ], + "grammars": [ + { + "language": "swmf-config", + "scopeName": "source.swmf", + "path": "./syntaxes/swmf.tmLanguage.json" + } + ] + }, + "dependencies": { + "vsce": "^1.69.0" } }