mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 02:47:45 +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` |
|
||||
| crystal | ✓ | ✓ | | `crystalline` |
|
||||
| css | ✓ | | ✓ | `vscode-css-language-server` |
|
||||
| csv | ✓ | | | |
|
||||
| cue | ✓ | | | `cuelsp` |
|
||||
| cylc | ✓ | ✓ | ✓ | |
|
||||
| d | ✓ | ✓ | ✓ | `serve-d` |
|
||||
|
|
|
@ -4139,3 +4139,12 @@ indent = { tab-width = 2, unit = " " }
|
|||
[[grammar]]
|
||||
name = "fga"
|
||||
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