...
This commit is contained in:
BIN
vscodeplugin/heroscrypt-syntax/heroscript-syntax-0.0.1.vsix
Normal file
BIN
vscodeplugin/heroscrypt-syntax/heroscript-syntax-0.0.1.vsix
Normal file
Binary file not shown.
35
vscodeplugin/heroscrypt-syntax/language-configuration.json
Normal file
35
vscodeplugin/heroscrypt-syntax/language-configuration.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"comments": {
|
||||
"lineComment": "//"
|
||||
},
|
||||
"brackets": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
{ "open": "{", "close": "}" },
|
||||
{ "open": "[", "close": "]" },
|
||||
{ "open": "(", "close": ")" },
|
||||
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "\"", "close": "\"", "notIn": ["string"] }
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["'", "'"],
|
||||
["\"", "\""]
|
||||
],
|
||||
"folding": {
|
||||
"markers": {
|
||||
"start": "^!!",
|
||||
"end": "(?=^!!|\\z)"
|
||||
}
|
||||
},
|
||||
"wordPattern": "([A-Za-z][A-Za-z0-9_]*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
|
||||
"indentationRules": {
|
||||
"increaseIndentPattern": "^!!.*$",
|
||||
"decreaseIndentPattern": "^(?!!).*$"
|
||||
}
|
||||
}
|
||||
22
vscodeplugin/heroscrypt-syntax/package.json
Normal file
22
vscodeplugin/heroscrypt-syntax/package.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "heroscript-syntax",
|
||||
"displayName": "HeroScript Syntax",
|
||||
"description": "Syntax highlighting for HeroScript",
|
||||
"version": "0.0.1",
|
||||
"engines": {
|
||||
"vscode": "^1.60.0"
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [{
|
||||
"id": "heroscript",
|
||||
"aliases": ["HeroScript", "heroscript"],
|
||||
"extensions": [".hero",".heroscript"],
|
||||
"configuration": "./language-configuration.json"
|
||||
}],
|
||||
"grammars": [{
|
||||
"language": "heroscript",
|
||||
"scopeName": "source.heroscript",
|
||||
"path": "./syntaxes/heroscript.tmLanguage.json"
|
||||
}]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "HeroScript",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#actions"
|
||||
},
|
||||
{
|
||||
"include": "#parameters"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"actions": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "^(!!)([\\w]+)(\\.)([\\w]+)",
|
||||
"captures": {
|
||||
"1": { "name": "keyword.control.heroscript" },
|
||||
"2": { "name": "entity.name.class.heroscript" },
|
||||
"3": { "name": "keyword.operator.heroscript" },
|
||||
"4": { "name": "entity.name.function.heroscript" }
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "^\\s*(\\w+)\\s*:",
|
||||
"captures": {
|
||||
"1": { "name": "variable.parameter.heroscript" }
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"strings": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "string.quoted.single.heroscript",
|
||||
"begin": "'",
|
||||
"end": "'",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.heroscript",
|
||||
"match": "\\\\."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.double.heroscript",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.heroscript",
|
||||
"match": "\\\\."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"name": "comment.line.double-slash.heroscript",
|
||||
"match": "//.*$"
|
||||
}
|
||||
},
|
||||
"scopeName": "source.heroscript"
|
||||
}
|
||||
3
vscodeplugin/install_ubuntu.sh
Normal file
3
vscodeplugin/install_ubuntu.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
apt-get install libsecret-1-dev -y
|
||||
apt install nodejs npm -y
|
||||
npx @vscode/vsce --version
|
||||
5
vscodeplugin/package.sh
Executable file
5
vscodeplugin/package.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
cd /root/code/github/freeflowuniverse/crystallib/vscodeplugin/heroscrypt-syntax
|
||||
npx @vscode/vsce package
|
||||
|
||||
#code --install-extension /root/code/github/freeflowuniverse/crystallib/vscodeplugin/heroscrypt-syntax/heroscript-syntax-0.0.1.vsix
|
||||
|
||||
8
vscodeplugin/readme.md
Normal file
8
vscodeplugin/readme.md
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
you can go to extensions and install the vsx
|
||||
|
||||
/root/code/github/freeflowuniverse/crystallib/vscodeplugin/heroscrypt-syntax/heroscript-syntax-0.0.1.vsix
|
||||
|
||||
also in vscode go on right mouse and see how to install (starting from .vsix file)
|
||||
|
||||
Reference in New Issue
Block a user