Skip to content

Commit

Permalink
language: added vhs (helix-editor#4486)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube authored and Frederik Vestre committed Feb 6, 2023
1 parent bebe51e commit 6996d4f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
| v || | | `vls` |
| vala || | | `vala-language-server` |
| verilog ||| | `svlangserver` |
| vhs || | | |
| vue || | | `vls` |
| wast || | | |
| wat || | | |
Expand Down
13 changes: 13 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1872,3 +1872,16 @@ formatter = { command = "dfmt" }
[[grammar]]
name = "d"
source = { git = "https://github.com/gdamore/tree-sitter-d", rev="601c4a1e8310fb2f3c43fa8a923d0d27497f3c04" }

[[language]]
name = "vhs"
scope = "source.vhs"
file-types = ["tape"]
roots = []
comment-token = "#"
indent = { tab-width = 2, unit = " " }
grammar = "vhs"

[[grammar]]
name = "vhs"
source = { git = "https://github.com/charmbracelet/tree-sitter-vhs", rev = "c6d81f34c011c29ee86dd73b45a8ecc9f2e2bdaf" }
36 changes: 36 additions & 0 deletions runtime/queries/vhs/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[
"Output"
"Backspace"
"Down"
"Enter"
"Escape"
"Left"
"Right"
"Space"
"Tab"
"Up"
"Set"
"Type"
"Sleep"
"Hide"
"Show" ] @keyword

[ "FontFamily"
"FontSize"
"Framerate"
"Height"
"LetterSpacing"
"TypingSpeed"
"LineHeight"
"Padding"
"Theme"
"Width" ] @type

[ "@" ] @operator
(control) @function.macro
(float) @constant.numeric.float
(integer) @constant.numeric.integer
(comment) @comment
(path) @string.special.path
[(string) (json)] @string
(time) @string.special.symbol

0 comments on commit 6996d4f

Please sign in to comment.