feat: vhs (.tape) support (#3726)

This commit is contained in:
Carlos Alexandro Becker 2022-11-13 08:33:54 -03:00 committed by GitHub
parent 313daf25e8
commit eff0d43b49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 0 deletions

View file

@ -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] [vim](https://github.com/vigoux/tree-sitter-viml) (maintained by @vigoux)
- [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] [yaml](https://github.com/ikatyang/tree-sitter-yaml) (maintained by @stsewd)
- [x] [yang](https://github.com/Hubro/tree-sitter-yang) (maintained by @Hubro)

View file

@ -383,6 +383,9 @@
"verilog": {
"revision": "4457145e795b363f072463e697dfe2f6973c9a52"
},
"vhs": {
"revision": "3ca6b9603422a1311e7c9eb85d30cd5bf6e5dc74"
},
"vim": {
"revision": "4ae7bd67706d7e10afed827ce2ded884ab41650f"
},

View file

@ -18,6 +18,7 @@ local filetype_to_parsername = {
pandoc = "markdown",
rmd = "markdown",
cs = "c_sharp",
tape = "vhs",
}
---@class InstallInfo
@ -1282,6 +1283,16 @@ list.diff = {
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 = {
list = list,
filetype_to_parsername = filetype_to_parsername,

View 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