Skip to content

Commit

Permalink
+Basic VSCode extension (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
AjaniBilby authored Sep 21, 2023
1 parent abf8ae5 commit 2ea3b55
Show file tree
Hide file tree
Showing 9 changed files with 421 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/vscode-extension/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
out
node_modules
client/server
.vscode-test
*.vsix
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"
22 changes: 22 additions & 0 deletions tools/vscode-extension/client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "salient-lang",
"description": "Salient VSCode Plugin",
"author": "Ajani Bilby",
"license": "MIT",
"version": "0.0.1",
"publisher": "Ajani Bilby",
"repository": {
"type": "git",
"url": "https://github.com/ajanibilby/salient"
},
"engines": {
"vscode": "^1.43.0"
},
"dependencies": {
"vscode-languageclient": "^6.1.3"
},
"devDependencies": {
"@types/vscode": "1.43.0",
"vscode-test": "^1.3.0"
}
}
12 changes: 12 additions & 0 deletions tools/vscode-extension/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2019",
"lib": ["ES2019"],
"outDir": "out",
"rootDir": "src",
"sourceMap": true
},
"include": ["src"],
"exclude": ["node_modules", ".vscode-test"]
}
31 changes: 31 additions & 0 deletions tools/vscode-extension/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"comments": {
"lineComment": "//",
"blockComment": [ "/*", "*/" ]
},
"brackets": [
[ "{", "}" ],
[ "[", "]" ],
[ "(", ")" ]
],
"autoClosingPairs": [
{ "open": "[", "close": "]" },
{ "open": "{", "close": "}" },
{ "open": "(", "close": ")" },
{
"open": "\"",
"close": "\"",
"notIn": [
"string"
]
}
],
"surroundingPairs": [
[ "{", "}" ],
[ "[", "]" ],
[ "(", ")" ],
[ "\"", "\"" ],
[ "'", "'" ],
[ "`", "`" ]
]
}
37 changes: 37 additions & 0 deletions tools/vscode-extension/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "salient-lang",
"displayName": "%displayName%",
"description": "%description%",
"version": "0.0.3",
"publisher": "Ajani Bilby",
"license": "MIT",
"repository": "https://github.com/ajanibilby/salient/tools/vscode-extension",
"engines": {
"vscode": "*"
},
"scripts": {
"package": "vsce package"
},
"contributes": {
"languages": [
{
"id": "salient",
"extensions": [
".sa"
],
"aliases": [
"Salient",
"salient language"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "salient",
"scopeName": "source.sa",
"path": "./syntaxes/salient.tmLanguage.json"
}
]
}
}
4 changes: 4 additions & 0 deletions tools/vscode-extension/package.nls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"displayName": "Salient Language",
"description": "Provides syntax highlighting and bracket matching in Salient-lang files."
}
3 changes: 3 additions & 0 deletions tools/vscode-extension/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Uniview Language Extension

The official syntax highlighter for [uniview](https://github.com/qupa-project/uniview-lang)
Loading

0 comments on commit 2ea3b55

Please sign in to comment.