Skip to content

Commit

Permalink
[vscode] Visual Studio Code syntax highlighting WIP.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfusik committed Jun 28, 2022
1 parent 3759a6a commit 467859e
Show file tree
Hide file tree
Showing 4 changed files with 1,389 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editors/vscode/ci-file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions editors/vscode/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"comments": {
"lineComment": "//",
"blockComment": ["/*", "*/"]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["'", "'"],
["\"", "\""]
]
}
38 changes: 38 additions & 0 deletions editors/vscode/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "ci",
"version": "0.1.0",
"publisher": "pfusik",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/pfusik/cito.git"
},
"engines": {
"vscode": "0.10.x"
},
"categories": [
"Programming Languages"
],
"contributes": {
"languages": [
{
"id": "ci",
"extensions": [
".ci"
],
"icon": {
"light": "./ci-file.svg",
"dark": "./ci-file.svg"
},
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "ci",
"scopeName": "source.ci",
"path": "./syntaxes/ci.tmLanguage.json"
}
]
}
}
Loading

0 comments on commit 467859e

Please sign in to comment.