mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-08-17 12:00:22 +03:00
Initial Cabal language support (#6485)
This commit is contained in:
parent
d5fec302c9
commit
92c5f5f18c
@ -9,6 +9,7 @@
|
||||
| bicep | ✓ | | | `bicep-langserver` |
|
||||
| c | ✓ | ✓ | ✓ | `clangd` |
|
||||
| c-sharp | ✓ | ✓ | | `OmniSharp` |
|
||||
| cabal | ✓ | | | |
|
||||
| cairo | ✓ | | | |
|
||||
| capnp | ✓ | | ✓ | |
|
||||
| clojure | ✓ | | | `clojure-lsp` |
|
||||
|
@ -2437,6 +2437,18 @@ language-server = { command = "nimlangserver" }
|
||||
name = "nim"
|
||||
source = { git = "https://github.com/aMOPel/tree-sitter-nim", rev = "240239b232550e431d67de250d1b5856209e7f06" }
|
||||
|
||||
[[language]]
|
||||
name = "cabal"
|
||||
scope = "source.cabal"
|
||||
file-types = [ "cabal" ]
|
||||
roots = ["cabal.project", "Setup.hs"]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
comment-token = "--"
|
||||
|
||||
[[grammar]]
|
||||
name = "cabal"
|
||||
source = { git = "https://gitlab.com/magus/tree-sitter-cabal/", rev = "7d5fa6887ae05a0b06d046f1e754c197c8ad869b" }
|
||||
|
||||
[[language]]
|
||||
name = "hurl"
|
||||
scope = "source.hurl"
|
||||
@ -2449,4 +2461,3 @@ indent = { tab-width = 2, unit = " " }
|
||||
[[grammar]]
|
||||
name = "hurl"
|
||||
source = { git = "https://github.com/pfeiferj/tree-sitter-hurl", rev = "264c42064b61ee21abe88d0061f29a0523352e22" }
|
||||
|
||||
|
15
runtime/queries/cabal/highlights.scm
Normal file
15
runtime/queries/cabal/highlights.scm
Normal file
@ -0,0 +1,15 @@
|
||||
(comment) @comment
|
||||
|
||||
[
|
||||
"cabal-version"
|
||||
(field_name)
|
||||
] @type
|
||||
|
||||
(section_name) @type
|
||||
|
||||
[
|
||||
(section_type)
|
||||
"if"
|
||||
"elseif"
|
||||
"else"
|
||||
] @keyword
|
Loading…
Reference in New Issue
Block a user