Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions images/icons/brsconfig.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions images/icons/bsconfig.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 32 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1439,13 +1439,32 @@
],
"languages": [
{
"id": "jsonc",
"id": "bsconfig",
"filenamePatterns": [
"bsconfig.json",
"*bsconfig*.json",
"*bsconfig*.json"
],
"aliases": [
"BrighterScript Config"
],
"icon": {
"light": "./images/icons/bsconfig.svg",
"dark": "./images/icons/bsconfig.svg"
}
},
{
"id": "brsconfig",
"filenamePatterns": [
"brsconfig.json",
"*brsconfig*.json"
]
],
"aliases": [
"BrightScript Config"
],
"icon": {
"light": "./images/icons/brsconfig.svg",
"dark": "./images/icons/brsconfig.svg"
}
},
{
"id": "brightscript",
Expand Down Expand Up @@ -1514,6 +1533,16 @@
}
],
"grammars": [
{
"language": "bsconfig",
"scopeName": "source.json.bsconfig",
"path": "./syntaxes/jsonc.tmLanguage.json"
},
{
"language": "brsconfig",
"scopeName": "source.json.bsconfig",
"path": "./syntaxes/jsonc.tmLanguage.json"
},
{
"language": "brightscript",
"scopeName": "source.brs",
Expand Down
8 changes: 8 additions & 0 deletions syntaxes/jsonc.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"scopeName": "source.json.bsconfig",
"patterns": [
{
"include": "source.json.comments"
}
]
}
Loading