-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FASTBuild syntax highlighter for VSCode
- Loading branch information
rlewis
committed
Aug 8, 2017
0 parents
commit 35b3e58
Showing
8 changed files
with
227 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,13 @@ | ||
// A launch configuration that launches the extension inside a new window | ||
{ | ||
"version": "0.1.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ] | ||
} | ||
] | ||
} |
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 @@ | ||
# Change Log | ||
|
||
## [1.0.0] - 2017-08-07 | ||
- Initial release |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017 RoscoP - https://github.com/RoscoP/FASTBuild | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,9 @@ | ||
# FASTBuild README | ||
|
||
Syntax highlighting for [FASTBuild](http://www.fastbuild.org) configuration (bff) files. | ||
|
||
## Release Notes | ||
|
||
### 1.0.0 | ||
|
||
Initial release |
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 @@ | ||
{ | ||
"comments": { | ||
// symbol used for single line comment. Remove this entry if your language does not support line comments | ||
"lineComment": "//", | ||
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments | ||
"blockComment": [ "/*", "*/" ] | ||
}, | ||
// symbols used as brackets | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"] | ||
], | ||
// symbols that are auto closed when typing | ||
"autoClosingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["\"", "\""], | ||
["'", "'"] | ||
], | ||
// symbols that that can be used to surround a selection | ||
"surroundingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["\"", "\""], | ||
["'", "'"] | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,31 @@ | ||
{ | ||
"name": "fastbuild", | ||
"displayName": "FASTBuild", | ||
"description": "FASTBuild configuration syntax highlighting", | ||
"version": "1.0.0", | ||
"publisher": "RoscoP", | ||
"engines": { | ||
"vscode": "^1.14.0" | ||
}, | ||
"categories": [ | ||
"Languages" | ||
], | ||
"icon": "media/icon.png", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/RoscoP/FASTBuild" | ||
}, | ||
"contributes": { | ||
"languages": [{ | ||
"id": "fastbuild", | ||
"aliases": ["FASTBuild", "fastbuild"], | ||
"extensions": ["bff"], | ||
"configuration": "./language-configuration.json" | ||
}], | ||
"grammars": [{ | ||
"language": "fastbuild", | ||
"scopeName": "source.fastbuild", | ||
"path": "./syntaxes/fastbuild.tmLanguage.json" | ||
}] | ||
} | ||
} |
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,119 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", | ||
"name": "FASTBuild", | ||
"foldingStartMarker": "/\\*\\*(?!\\*)|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))", | ||
"foldingStopMarker": "(?<!\\*)\\*\\*/|^\\s*\\}", | ||
"patterns": [ | ||
{ | ||
"include": "#keywords" | ||
}, | ||
{ | ||
"include": "#functions" | ||
}, | ||
{ | ||
"include": "#strings_single" | ||
}, | ||
{ | ||
"include": "#strings_double" | ||
}, | ||
{ | ||
"include": "#fastbuild_defines" | ||
}, | ||
{ | ||
"include": "#directives" | ||
}, | ||
{ | ||
"include": "#defined_variables" | ||
}, | ||
{ | ||
"include": "#local_variables" | ||
}, | ||
{ | ||
"include": "#comment" | ||
} | ||
], | ||
"repository": { | ||
"string_highlight": { | ||
"patterns": [{ | ||
"name": "constant.character.escape.fastbuild", | ||
"match": "\\^.|\\$[\\w\\d]+\\$|%\\d+" | ||
}] | ||
}, | ||
"keywords": { | ||
"patterns": [{ | ||
"name": "keyword.operator.fastbuild", | ||
"match": "\\b(\\+\\-/\\*=)\\b" | ||
}] | ||
}, | ||
"functions": { | ||
"patterns": [{ | ||
"name": "support.function.fastbuild", | ||
"match": "\\b(Alias|Compiler|Copy|CopyDir|CSAssembly|DLL|Exec|Executable|ForEach|Library|ObjectList|Print|RemoveDir|Settings|Test|Unity|Using|VCXProject|VSSolution|XCodeProject)\\b" | ||
}] | ||
}, | ||
"strings_single": { | ||
"name": "string.quoted.single.fastbuild", | ||
"begin": "'", | ||
"end": "'", | ||
"patterns": [ | ||
{ | ||
"include": "#string_highlight" | ||
} | ||
] | ||
}, | ||
"strings_double": { | ||
"name": "string.quoted.double.fastbuild", | ||
"begin": "\"", | ||
"end": "\"", | ||
"patterns": [ | ||
{ | ||
"include": "#string_highlight" | ||
} | ||
] | ||
}, | ||
"fastbuild_defines": { | ||
"patterns": [ | ||
{ | ||
"name": "variable.language.fastbuild", | ||
"match": "__WINDOWS__|__OSX__|__LINUX__" | ||
} | ||
] | ||
}, | ||
"directives": { | ||
"patterns": [{ | ||
"name": "keyword.other.fastbuild", | ||
"match": "#(undef|if|else|endif|exists|import|include|once)" | ||
}] | ||
}, | ||
"defined_variables": { | ||
"patterns": [{ | ||
"name": "keyword.other.fastbuild", | ||
"match": "#define\\s+([\\w\\d]+)", | ||
"captures": { | ||
"1": { | ||
"name": "meta.parameter.type.variable.fastbuild" | ||
} | ||
} | ||
}] | ||
}, | ||
"local_variables": { | ||
"patterns": [{ | ||
"match": "[\\s^]\\.(['\"]?)([\\w\\d\\$]+)\\1?", | ||
"captures": { | ||
"2": { | ||
"name": "variable.other.fastbuild" | ||
} | ||
} | ||
}] | ||
}, | ||
"comment": { | ||
"patterns": [ | ||
{ | ||
"name": "comment.line.double-slash.fastbuild", | ||
"match": "(//|;).*" | ||
} | ||
] | ||
} | ||
}, | ||
"scopeName": "source.fastbuild" | ||
} |