-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
5,868 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Set default behavior to automatically normalize line endings. | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ TAGS | |
.DS_Store | ||
examples/_output.txt | ||
blacklight.exe | ||
ext | ||
node_modules | ||
*.vsix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// A launch configuration that launches the extension inside a new window | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
.gitignore | ||
vsc-extension-quickstart.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# blacklight Language Support | ||
|
||
Add syntax hilighting for `blacklight`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"comments": { | ||
// symbol used for single line comment. Remove this entry if your language does not support line comments | ||
"lineComment": ";;", | ||
}, | ||
// symbols used as brackets | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"] | ||
], | ||
// symbols that are auto closed when typing | ||
"autoClosingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["\"", "\""], | ||
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }, | ||
], | ||
// symbols that can be used to surround a selection | ||
"surroundingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["\"", "\""], | ||
["'", "'"] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "blacklight-language-support", | ||
"displayName": "blacklight Language Support", | ||
"description": "Add syntax highlighting for the blacklight programming language.", | ||
"version": "0.0.1", | ||
"engines": { | ||
"vscode": "^1.87.0" | ||
}, | ||
"categories": [ | ||
"Programming Languages" | ||
], | ||
"contributes": { | ||
"languages": [{ | ||
"id": "bl", | ||
"aliases": ["blacklight", "bl"], | ||
"extensions": [".bl"], | ||
"configuration": "./language-configuration.json" | ||
}], | ||
"grammars": [{ | ||
"language": "bl", | ||
"scopeName": "source.blacklight", | ||
"path": "./syntaxes/bl.tmLanguage.json" | ||
}] | ||
}, | ||
"devDependencies": { | ||
"generator-code": "^1.8.4", | ||
"vsce": "^2.15.0", | ||
"yo": "^5.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", | ||
"name": "blacklight", | ||
"patterns": [ | ||
{ | ||
"include": "#keywords" | ||
}, | ||
{ | ||
"include": "#strings" | ||
}, | ||
{ | ||
"include": "#comments" | ||
}, | ||
{ | ||
"include": "#numerics" | ||
}, | ||
{ | ||
"include": "#variables" | ||
}, | ||
{ | ||
"include": "#entities" | ||
} | ||
], | ||
"repository": { | ||
"comments": { | ||
"patterns": [ | ||
{ | ||
"name": "comment.line.semicolons.bl", | ||
"begin": ";;", | ||
"end": "\\n" | ||
} | ||
] | ||
}, | ||
"keywords": { | ||
"patterns": [ | ||
{ | ||
"name": "keyword.control.bl", | ||
"match": "\\s?(if|either|while|until|loop)\\s" | ||
}, | ||
{ | ||
"name": "keyword.operator.bl", | ||
"match": "\\s?(eq|or|and|is|not|add|sub|div|mul)\\s" | ||
}, | ||
{ | ||
"name": "keyword.other", | ||
"match": "\\s?(swap|drop|rot|decap|depth|dup|over|purge)\\s" | ||
} | ||
|
||
] | ||
}, | ||
"strings": { | ||
"name": "string.quoted.single.bl", | ||
"begin": "'", | ||
"end": "'", | ||
"patterns": [ | ||
{ | ||
"name": "constant.character.escape.bl", | ||
"match": "\\\\." | ||
} | ||
] | ||
}, | ||
"variables": { | ||
"patterns": [ | ||
{ | ||
"name": "variable.language.bl", | ||
"match": "self|@|\\$|\\^" | ||
}, | ||
{ | ||
"name": "variable.name.bl", | ||
"match": ":[a-zA-Z_]+" | ||
}, | ||
{ | ||
"name": "entity.name.function.bl", | ||
"match": "[a-zA-Z_]+:" | ||
} | ||
] | ||
}, | ||
"entity": { | ||
"patterns": [ | ||
{ | ||
"name": "constant.numeric.dec.bl", | ||
"match": "([+-]?[0-9]+)" | ||
} | ||
] | ||
}, | ||
"types": { | ||
"patterns": [ | ||
{ | ||
"name": "storage.type.other.bl", | ||
"match": "[a-zA-Z_]-new" | ||
} | ||
] | ||
} | ||
}, | ||
"scopeName": "source.blacklight", | ||
"fileTypes": ["bl"] | ||
} |
Oops, something went wrong.