This commit is contained in:
2025-05-04 08:19:47 +03:00
parent d8a59d0726
commit 46e1c6706c
177 changed files with 5708 additions and 5512 deletions

View 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": "^(?!!).*$"
}
}

View 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"
}]
}
}

View File

@@ -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"
}

View 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
View 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
View 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)