Skip to content

Commit ca64616

Browse files
authored
feat: Add Astro support (#203)
* res * build * changelog
1 parent 342524c commit ca64616

File tree

6 files changed

+17
-0
lines changed

6 files changed

+17
-0
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,3 +472,9 @@
472472
branch = master
473473
update = none
474474
ignore = dirty
475+
[submodule "repos/astro"]
476+
path = repos/astro
477+
url = https://github.com/virchau13/tree-sitter-astro
478+
branch = master
479+
update = none
480+
ignore = dirty

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## Unreleased
4+
- Add `Astro` support
45

56
## 0.12.66 - 2023-10-11
67
- Add `Arduino` support

queries/astro/highlights.scm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
; inherits: html
2+
3+
[ "---" ] @punctuation.delimiter
4+
5+
[ "{" "}" ] @punctuation.special

repos/astro

Submodule astro added at e122a8f

tree-sitter-langs-build.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ infrequent (grammar-only changes). It is different from the version of
248248

249249
(defconst tree-sitter-langs--langs-with-deps
250250
'( arduino
251+
astro
251252
cpp
252253
commonlisp
253254
hlsl

tree-sitter-langs.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ See `tree-sitter-langs-repos'."
101101
'((ada-mode . ada)
102102
(agda-mode . agda)
103103
(agda2-mode . agda)
104+
(astro-mode . astro)
104105
(arduino-mode . arduino)
106+
(astro-mode . astro)
105107
(fasm-mode . asm)
106108
(masm-mode . asm)
107109
(nasm-mode . asm)
@@ -222,6 +224,7 @@ Return nil if there are no bundled patterns."
222224
(dolist (sym (cons lang-symbol
223225
(pcase lang-symbol
224226
('arduino '(cpp c))
227+
('astro '(html))
225228
('cpp '(c))
226229
('hlsl '(cpp c))
227230
('typescript '(javascript))

0 commit comments

Comments
 (0)