Skip to content

Commit

Permalink
~Fixed the syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
AjaniBilby committed Sep 21, 2023
1 parent 9b04754 commit ff998a3
Show file tree
Hide file tree
Showing 5 changed files with 330 additions and 654 deletions.
1 change: 1 addition & 0 deletions tools/vscode-extension/bind.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mklink /D "%USERPROFILE%\.vscode\extensions\salient-lang" "%~dp0"
57 changes: 13 additions & 44 deletions tools/vscode-extension/language-configuration.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,17 @@
{
"comments": {
"lineComment": "//",
"blockComment": [
"/*",
"*/"
]
"blockComment": [ "/*", "*/" ]
},
"brackets": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
]
[ "{", "}" ],
[ "[", "]" ],
[ "(", ")" ]
],
"autoClosingPairs": [
{
"open": "[",
"close": "]"
},
{
"open": "{",
"close": "}"
},
{
"open": "(",
"close": ")"
},
{ "open": "[", "close": "]" },
{ "open": "{", "close": "}" },
{ "open": "(", "close": ")" },
{
"open": "\"",
"close": "\"",
Expand All @@ -42,21 +21,11 @@
}
],
"surroundingPairs": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"\"",
"\""
]
[ "{", "}" ],
[ "[", "]" ],
[ "(", ")" ],
[ "\"", "\"" ],
[ "'", "'" ],
[ "`", "`" ]
]
}
20 changes: 10 additions & 10 deletions tools/vscode-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "uniview",
"name": "salient-lang",
"displayName": "%displayName%",
"description": "%description%",
"version": "0.0.3",
"publisher": "qupa-project",
"publisher": "Ajani Bilby",
"license": "MIT",
"repository": "https://github.com/qupa-project/uniview-vscode",
"repository": "https://github.com/ajanibilby/salient/tools/vscode-extension",
"engines": {
"vscode": "*"
},
Expand All @@ -15,22 +15,22 @@
"contributes": {
"languages": [
{
"id": "uniview",
"id": "salient",
"extensions": [
".uv"
".sa"
],
"aliases": [
"Uniview",
"uni-view"
"Salient",
"salient language"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "uniview",
"scopeName": "source.uv",
"path": "./syntaxes/uniview.tmLanguage.json"
"language": "salient",
"scopeName": "source.sa",
"path": "./syntaxes/salient.tmLanguage.json"
}
]
}
Expand Down
Loading

0 comments on commit ff998a3

Please sign in to comment.