mirror of
https://github.com/helix-editor/helix.git
synced 2025-10-06 00:13:28 +02:00
feat(languages): specilize toml file-type for cross-rs config file (#14274)
This commit is contained in:
committed by
GitHub
parent
b81ee02db4
commit
74bb02ffe7
@@ -31,6 +31,7 @@
|
||||
| common-lisp | ✓ | | ✓ | | ✓ | `cl-lsp` |
|
||||
| cpon | ✓ | | ✓ | | | |
|
||||
| cpp | ✓ | ✓ | ✓ | ✓ | ✓ | `clangd` |
|
||||
| cross-config | ✓ | ✓ | | | ✓ | `taplo`, `tombi` |
|
||||
| crystal | ✓ | ✓ | ✓ | ✓ | | `crystalline`, `ameba-ls` |
|
||||
| css | ✓ | | ✓ | | ✓ | `vscode-css-language-server` |
|
||||
| csv | ✓ | | | | | |
|
||||
|
@@ -4662,7 +4662,7 @@ scope = "source.kconfig"
|
||||
name = "kconfig"
|
||||
source = { git = "https://github.com/tree-sitter-grammars/tree-sitter-kconfig" , rev = "9ac99fe4c0c27a35dc6f757cef534c646e944881" }
|
||||
|
||||
[[language]]
|
||||
[[language]]
|
||||
name = "doxyfile"
|
||||
scope = "source.doxyfile"
|
||||
injection-regex = "[Dd]oxyfile"
|
||||
@@ -4673,3 +4673,13 @@ indent = { tab-width = 4, unit = " " }
|
||||
[[grammar]]
|
||||
name = "doxyfile"
|
||||
source = { git = "https://github.com/tingerrr/tree-sitter-doxyfile/", rev = "18e44c6da639632a4e42264c7193df34be915f34" }
|
||||
|
||||
[[language]]
|
||||
name = "cross-config"
|
||||
scope = "source.cross-config"
|
||||
injection-regex = "cross(-config)"
|
||||
grammar = "toml"
|
||||
comment-token = "#"
|
||||
file-types = [{glob = "Cross.toml"}]
|
||||
language-servers = [ "taplo", "tombi" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
1
runtime/queries/cross-config/highlights.scm
Normal file
1
runtime/queries/cross-config/highlights.scm
Normal file
@@ -0,0 +1 @@
|
||||
; inherits: toml
|
9
runtime/queries/cross-config/injections.scm
Normal file
9
runtime/queries/cross-config/injections.scm
Normal file
@@ -0,0 +1,9 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
; https://github.com/cross-rs/cross/blob/main/docs/config_file.md
|
||||
(pair
|
||||
(bare_key) @_key (#eq? @_key "pre-build")
|
||||
(array
|
||||
(string) @injection.content)
|
||||
(#set! injection.language "bash"))
|
1
runtime/queries/cross-config/rainbows.scm
Normal file
1
runtime/queries/cross-config/rainbows.scm
Normal file
@@ -0,0 +1 @@
|
||||
; inherits: toml
|
1
runtime/queries/cross-config/textobjects.scm
Normal file
1
runtime/queries/cross-config/textobjects.scm
Normal file
@@ -0,0 +1 @@
|
||||
; inherits: toml
|
Reference in New Issue
Block a user