mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-09-11 16:07:00 +03:00
Add support for Bicep files (#4403)
This commit is contained in:
parent
4791bd66b7
commit
1233c9a989
@ -5,6 +5,7 @@
|
|||||||
| bash | ✓ | | | `bash-language-server` |
|
| bash | ✓ | | | `bash-language-server` |
|
||||||
| bass | ✓ | | | `bass` |
|
| bass | ✓ | | | `bass` |
|
||||||
| beancount | ✓ | | | |
|
| beancount | ✓ | | | |
|
||||||
|
| bicep | ✓ | | | `bicep-langserver` |
|
||||||
| c | ✓ | ✓ | ✓ | `clangd` |
|
| c | ✓ | ✓ | ✓ | `clangd` |
|
||||||
| c-sharp | ✓ | ✓ | | `OmniSharp` |
|
| c-sharp | ✓ | ✓ | | `OmniSharp` |
|
||||||
| cairo | ✓ | | | |
|
| cairo | ✓ | | | |
|
||||||
|
@ -1966,3 +1966,17 @@ roots = []
|
|||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "ini"
|
name = "ini"
|
||||||
source = { git = "https://github.com/justinmk/tree-sitter-ini", rev = "4d247fb876b4ae6b347687de4a179511bf67fcbc" }
|
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" }
|
||||||
|
73
runtime/queries/bicep/highlights.scm
Normal file
73
runtime/queries/bicep/highlights.scm
Normal file
@ -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…
Reference in New Issue
Block a user