Add CSV language and syntax highlighting (#11973)

This commit is contained in:
Jaakko Paju 2025-02-10 18:51:06 +02:00 committed by GitHub
parent ff012e844f
commit a19c95a0a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 0 deletions

View file

@ -30,6 +30,7 @@
| cpp | ✓ | ✓ | ✓ | `clangd` |
| crystal | ✓ | ✓ | | `crystalline` |
| css | ✓ | | ✓ | `vscode-css-language-server` |
| csv | ✓ | | | |
| cue | ✓ | | | `cuelsp` |
| cylc | ✓ | ✓ | ✓ | |
| d | ✓ | ✓ | ✓ | `serve-d` |

View file

@ -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" }

View file

@ -0,0 +1,14 @@
(first)@type
(second)@function
(third)@constant
(fourth)@operator
(fifth)@type
(sixth)@function
(seventh)@constant
[
";"
","
"|"
] @punctuation.delimiter