mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-05 11:57:43 +03:00
Add CSV language and syntax highlighting (#11973)
This commit is contained in:
parent
ff012e844f
commit
a19c95a0a7
3 changed files with 24 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
||||||
| cpp | ✓ | ✓ | ✓ | `clangd` |
|
| cpp | ✓ | ✓ | ✓ | `clangd` |
|
||||||
| crystal | ✓ | ✓ | | `crystalline` |
|
| crystal | ✓ | ✓ | | `crystalline` |
|
||||||
| css | ✓ | | ✓ | `vscode-css-language-server` |
|
| css | ✓ | | ✓ | `vscode-css-language-server` |
|
||||||
|
| csv | ✓ | | | |
|
||||||
| cue | ✓ | | | `cuelsp` |
|
| cue | ✓ | | | `cuelsp` |
|
||||||
| cylc | ✓ | ✓ | ✓ | |
|
| cylc | ✓ | ✓ | ✓ | |
|
||||||
| d | ✓ | ✓ | ✓ | `serve-d` |
|
| d | ✓ | ✓ | ✓ | `serve-d` |
|
||||||
|
|
|
@ -4139,3 +4139,12 @@ indent = { tab-width = 2, unit = " " }
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "fga"
|
name = "fga"
|
||||||
source = { git = "https://github.com/matoous/tree-sitter-fga", rev = "5005e8dd976e1f67beb3d23204580eb6f8b4c965" }
|
source = { git = "https://github.com/matoous/tree-sitter-fga", rev = "5005e8dd976e1f67beb3d23204580eb6f8b4c965" }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "csv"
|
||||||
|
file-types = ["csv"]
|
||||||
|
scope = "source.csv"
|
||||||
|
|
||||||
|
[[grammar]]
|
||||||
|
name = "csv"
|
||||||
|
source = { git = "https://github.com/weartist/rainbow-csv-tree-sitter", rev = "d3dbf916446131417e4c2ea9eb8591b23b466d27" }
|
||||||
|
|
14
runtime/queries/csv/highlights.scm
Normal file
14
runtime/queries/csv/highlights.scm
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
(first)@type
|
||||||
|
(second)@function
|
||||||
|
(third)@constant
|
||||||
|
(fourth)@operator
|
||||||
|
(fifth)@type
|
||||||
|
(sixth)@function
|
||||||
|
(seventh)@constant
|
||||||
|
|
||||||
|
[
|
||||||
|
";"
|
||||||
|
","
|
||||||
|
"|"
|
||||||
|
] @punctuation.delimiter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue