Skip to content

Commit

Permalink
[REMOVE BEFORE MERGING] bat builtin extension to test
Browse files Browse the repository at this point in the history
  • Loading branch information
akosyakov committed Jan 9, 2019
1 parent 984be49 commit 58da9b4
Show file tree
Hide file tree
Showing 6 changed files with 815 additions and 42 deletions.
43 changes: 1 addition & 42 deletions examples/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,8 @@
}
},
"dependencies": {
"@theia/callhierarchy": "^0.3.18",
"@theia/console": "^0.3.18",
"@theia/core": "^0.3.18",
"@theia/cpp": "^0.3.18",
"@theia/debug": "^0.3.18",
"@theia/debug-nodejs": "^0.3.18",
"@theia/editor": "^0.3.18",
"@theia/editor-preview": "^0.3.18",
"@theia/editorconfig": "^0.3.18",
"@theia/extension-manager": "^0.3.18",
"@theia/file-search": "^0.3.18",
"@theia/filesystem": "^0.3.18",
"@theia/getting-started": "^0.3.18",
"@theia/git": "^0.3.18",
"@theia/java": "^0.3.18",
"@theia/java-debug": "^0.3.18",
"@theia/json": "^0.3.18",
"@theia/keymaps": "^0.3.18",
"@theia/languages": "^0.3.18",
"@theia/markers": "^0.3.18",
"@theia/merge-conflicts": "^0.3.18",
"@theia/messages": "^0.3.18",
"@theia/metrics": "^0.3.18",
"@theia/mini-browser": "^0.3.18",
"@theia/monaco": "^0.3.18",
"@theia/navigator": "^0.3.18",
"@theia/outline-view": "^0.3.18",
"@theia/output": "^0.3.18",
"@theia/plugin-ext": "^0.3.18",
"@theia/plugin-ext-vscode": "^0.3.18",
"@theia/preferences": "^0.3.18",
"@theia/preview": "^0.3.18",
"@theia/process": "^0.3.18",
"@theia/python": "^0.3.18",
"@theia/search-in-workspace": "^0.3.18",
"@theia/task": "^0.3.18",
"@theia/terminal": "^0.3.18",
"@theia/textmate-grammars": "^0.3.18",
"@theia/tslint": "^0.3.18",
"@theia/typescript": "^0.3.18",
"@theia/userstorage": "^0.3.18",
"@theia/variable-resolver": "^0.3.18",
"@theia/workspace": "^0.3.18"
"@theia/plugin-ext-vscode": "^0.3.18"
},
"scripts": {
"prepare": "yarn run clean && yarn build",
Expand Down
28 changes: 28 additions & 0 deletions plugins/bat/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"comments": {
"lineComment": "REM"
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
],
"folding": {
"markers": {
"start": "^\\s*(::\\s*|REM\\s+)#region",
"end": "^\\s*(::\\s*|REM\\s+)#endregion"
}
}
}
28 changes: 28 additions & 0 deletions plugins/bat/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "bat",
"displayName": "%displayName%",
"description": "%description%",
"version": "1.0.0",
"publisher": "vscode",
"engines": { "vscode": "*" },
"scripts": {
"update-grammar": "node ../../build/npm/update-grammar.js mmims/language-batchfile grammars/batchfile.cson ./syntaxes/batchfile.tmLanguage.json"
},
"contributes": {
"languages": [{
"id": "bat",
"extensions": [ ".bat", ".cmd"],
"aliases": [ "Batch", "bat" ],
"configuration": "./language-configuration.json"
}],
"grammars": [{
"language": "bat",
"scopeName": "source.batchfile",
"path": "./syntaxes/batchfile.tmLanguage.json"
}],
"snippets": [{
"language": "bat",
"path": "./snippets/batchfile.snippets.json"
}]
}
}
4 changes: 4 additions & 0 deletions plugins/bat/package.nls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"displayName": "Windows Bat Language Basics",
"description": "Provides snippets, syntax highlighting, bracket matching and folding in Windows batch files."
}
16 changes: 16 additions & 0 deletions plugins/bat/snippets/batchfile.snippets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"Region Start": {
"prefix": "#region",
"body": [
"::#region"
],
"description": "Folding Region Start"
},
"Region End": {
"prefix": "#endregion",
"body": [
"::#endregion"
],
"description": "Folding Region End"
}
}
Loading

0 comments on commit 58da9b4

Please sign in to comment.