mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
feat: vhs (.tape) support (#3726)
This commit is contained in:
parent
313daf25e8
commit
eff0d43b49
4 changed files with 53 additions and 0 deletions
|
|
@ -302,6 +302,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
||||||
- [x] [verilog](https://github.com/tree-sitter/tree-sitter-verilog) (maintained by @zegervdv)
|
- [x] [verilog](https://github.com/tree-sitter/tree-sitter-verilog) (maintained by @zegervdv)
|
||||||
- [x] [vim](https://github.com/vigoux/tree-sitter-viml) (maintained by @vigoux)
|
- [x] [vim](https://github.com/vigoux/tree-sitter-viml) (maintained by @vigoux)
|
||||||
- [x] [vue](https://github.com/ikatyang/tree-sitter-vue) (maintained by @WhyNotHugo)
|
- [x] [vue](https://github.com/ikatyang/tree-sitter-vue) (maintained by @WhyNotHugo)
|
||||||
|
- [x] [vhs](https://github.com/charmbracelet/tree-sitter-vhs) (maintained by @caarlos0, @maaslalani)
|
||||||
- [x] [wgsl](https://github.com/szebniok/tree-sitter-wgsl) (maintained by @szebniok)
|
- [x] [wgsl](https://github.com/szebniok/tree-sitter-wgsl) (maintained by @szebniok)
|
||||||
- [x] [yaml](https://github.com/ikatyang/tree-sitter-yaml) (maintained by @stsewd)
|
- [x] [yaml](https://github.com/ikatyang/tree-sitter-yaml) (maintained by @stsewd)
|
||||||
- [x] [yang](https://github.com/Hubro/tree-sitter-yang) (maintained by @Hubro)
|
- [x] [yang](https://github.com/Hubro/tree-sitter-yang) (maintained by @Hubro)
|
||||||
|
|
|
||||||
|
|
@ -383,6 +383,9 @@
|
||||||
"verilog": {
|
"verilog": {
|
||||||
"revision": "4457145e795b363f072463e697dfe2f6973c9a52"
|
"revision": "4457145e795b363f072463e697dfe2f6973c9a52"
|
||||||
},
|
},
|
||||||
|
"vhs": {
|
||||||
|
"revision": "3ca6b9603422a1311e7c9eb85d30cd5bf6e5dc74"
|
||||||
|
},
|
||||||
"vim": {
|
"vim": {
|
||||||
"revision": "4ae7bd67706d7e10afed827ce2ded884ab41650f"
|
"revision": "4ae7bd67706d7e10afed827ce2ded884ab41650f"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ local filetype_to_parsername = {
|
||||||
pandoc = "markdown",
|
pandoc = "markdown",
|
||||||
rmd = "markdown",
|
rmd = "markdown",
|
||||||
cs = "c_sharp",
|
cs = "c_sharp",
|
||||||
|
tape = "vhs",
|
||||||
}
|
}
|
||||||
|
|
||||||
---@class InstallInfo
|
---@class InstallInfo
|
||||||
|
|
@ -1282,6 +1283,16 @@ list.diff = {
|
||||||
filetype = "gitdiff",
|
filetype = "gitdiff",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.vhs = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/charmbracelet/tree-sitter-vhs",
|
||||||
|
branch = "main",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@caarlos0", "@maaslalani" },
|
||||||
|
filetype = "tape",
|
||||||
|
}
|
||||||
|
|
||||||
local M = {
|
local M = {
|
||||||
list = list,
|
list = list,
|
||||||
filetype_to_parsername = filetype_to_parsername,
|
filetype_to_parsername = filetype_to_parsername,
|
||||||
|
|
|
||||||
38
queries/vhs/highlights.scm
Normal file
38
queries/vhs/highlights.scm
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[
|
||||||
|
"Output"
|
||||||
|
"Backspace"
|
||||||
|
"Down"
|
||||||
|
"Enter"
|
||||||
|
"Escape"
|
||||||
|
"Left"
|
||||||
|
"Right"
|
||||||
|
"Space"
|
||||||
|
"Tab"
|
||||||
|
"Up"
|
||||||
|
"Set"
|
||||||
|
"Type"
|
||||||
|
"Sleep"
|
||||||
|
"Hide"
|
||||||
|
"Show" ] @keyword
|
||||||
|
|
||||||
|
[ "Shell"
|
||||||
|
"FontFamily"
|
||||||
|
"FontSize"
|
||||||
|
"Framerate"
|
||||||
|
"PlaybackSpeed"
|
||||||
|
"Height"
|
||||||
|
"LetterSpacing"
|
||||||
|
"TypingSpeed"
|
||||||
|
"LineHeight"
|
||||||
|
"Padding"
|
||||||
|
"Theme"
|
||||||
|
"LoopOffset"
|
||||||
|
"Width" ] @type
|
||||||
|
|
||||||
|
[ "@" ] @operator
|
||||||
|
(control) @function.macro
|
||||||
|
(float) @float
|
||||||
|
(integer) @number
|
||||||
|
(comment) @comment @spell
|
||||||
|
[(path) (string) (json)] @string
|
||||||
|
(time) @symbol
|
||||||
Loading…
Add table
Add a link
Reference in a new issue