Add support for Bicep files (#4403)

pull/1/head
Jonathan 2 years ago committed by GitHub
parent 4791bd66b7
commit 1233c9a989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,6 +5,7 @@
| bash | ✓ | | | `bash-language-server` |
| bass | ✓ | | | `bass` |
| beancount | ✓ | | | |
| bicep | ✓ | | | `bicep-langserver` |
| c | ✓ | ✓ | ✓ | `clangd` |
| c-sharp | ✓ | ✓ | | `OmniSharp` |
| cairo | ✓ | | | |

@ -1966,3 +1966,17 @@ roots = []
[[grammar]]
name = "ini"
source = { git = "https://github.com/justinmk/tree-sitter-ini", rev = "4d247fb876b4ae6b347687de4a179511bf67fcbc" }
[[language]]
name = "bicep"
scope = "source.bicep"
file-types = ["bicep"]
roots = []
auto-format = true
comment-token = "//"
indent = { tab-width = 2, unit = " "}
language-server = { command = "bicep-langserver" }
[[grammar]]
name = "bicep"
source = { git = "https://github.com/Sjord/tree-sitter-bicep", rev = "60795d3a1b493e064b263a64cb4f7f758a3394d7" }

@ -0,0 +1,73 @@
; Keywords
[
"module"
"var"
"param"
"import"
"resource"
"existing"
"if"
"targetScope"
"output"
] @keyword
; Functions
(decorator) @function.builtin
(functionCall) @function
(functionCall
(functionArgument
(variableAccess) @variable))
; Literals/Types
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
(resourceDeclaration
(string
(stringLiteral) @string.special))
(moduleDeclaration
(string
(stringLiteral) @string.special))
[
(string)
(stringLiteral)
] @string
(nullLiteral) @keyword
(booleanLiteral) @constant.builtin.boolean
(integerLiteral) @constant.numeric.integer
(comment) @comment
(string
(variableAccess
(identifier) @variable))
(type) @type
; Variables
(localVariable) @variable
; Statements
(object
(objectProperty
(identifier) @identifier))
(propertyAccess
(identifier) @identifier)
(ifCondition) @keyword.control.conditional
Loading…
Cancel
Save