feat: add astro

This commit is contained in:
virchau13 2022-04-07 20:34:19 +08:00 committed by Stephan Seitz
parent 1031bb4769
commit f62fb16bba
6 changed files with 19 additions and 0 deletions

View file

@ -1005,6 +1005,15 @@ list.elvish = {
maintainers = { "@ckafi" },
}
list.astro = {
install_info = {
url = "https://github.com/virchau13/tree-sitter-astro",
branch = "master",
files = { "src/parser.c", "src/scanner.cc" },
},
maintainers = { "@virchau13" },
}
local M = {
list = list,
filetype_to_parsername = filetype_to_parsername,

1
queries/astro/folds.scm Normal file
View file

@ -0,0 +1 @@
; inherits: html

View file

@ -0,0 +1,3 @@
; inherits: html
[ "---" ] @punctuation.delimiter

View file

@ -0,0 +1 @@
; inherits: html

View file

@ -0,0 +1,4 @@
; inherits: html
((frontmatter
(raw_text) @typescript))

1
queries/astro/locals.scm Normal file
View file

@ -0,0 +1 @@
; inherits: html