on master help sign in
language: added vhs (#4486)
commit26f21da531179ccc77e70b73e32a1b458c4e225b authorrsteube <rsteube@users.noreply.github.com> dateFri 28 Oct 2022, 15:22 (4 years ago) parentcefdfac
3 files changed+50
book/src/generated/lang-support.md+1 languages.toml+13 runtime/queries/vhs/highlights.scm+36
book/src/generated/lang-support.md+1
@@ -120,6 +120,7 @@
120120| v | ✓ | | | `vls` |
121121| vala | ✓ | | | `vala-language-server` |
122122| verilog | ✓ | ✓ | | `svlangserver` |
123+| vhs | ✓ | | | |
123124| vue | ✓ | | | `vls` |
124125| wast | ✓ | | | |
125126| wat | ✓ | | | |
languages.toml+13
@@ -1872,3 +1872,16 @@ formatter = { command = "dfmt" }
18721872[[grammar]]
18731873name = "d"
18741874source = { git = "https://github.com/gdamore/tree-sitter-d", rev="601c4a1e8310fb2f3c43fa8a923d0d27497f3c04" }
1875+
1876+[[language]]
1877+name = "vhs"
1878+scope = "source.vhs"
1879+file-types = ["tape"]
1880+roots = []
1881+comment-token = "#"
1882+indent = { tab-width = 2, unit = " " }
1883+grammar = "vhs"
1884+
1885+[[grammar]]
1886+name = "vhs"
1887+source = { git = "https://github.com/charmbracelet/tree-sitter-vhs", rev = "c6d81f34c011c29ee86dd73b45a8ecc9f2e2bdaf" }
runtime/queries/vhs/highlights.scmnew file+36
@@ -0,0 +1,36 @@
1+[
2+ "Output"
3+ "Backspace"
4+ "Down"
5+ "Enter"
6+ "Escape"
7+ "Left"
8+ "Right"
9+ "Space"
10+ "Tab"
11+ "Up"
12+ "Set"
13+ "Type"
14+ "Sleep"
15+ "Hide"
16+ "Show" ] @keyword
17+
18+[ "FontFamily"
19+ "FontSize"
20+ "Framerate"
21+ "Height"
22+ "LetterSpacing"
23+ "TypingSpeed"
24+ "LineHeight"
25+ "Padding"
26+ "Theme"
27+ "Width" ] @type
28+
29+[ "@" ] @operator
30+(control) @function.macro
31+(float) @constant.numeric.float
32+(integer) @constant.numeric.integer
33+(comment) @comment
34+(path) @string.special.path
35+[(string) (json)] @string
36+(time) @string.special.symbol