summaryrefslogtreecommitdiff
path: root/queries/surface
diff options
context:
space:
mode:
authorClay <connorlay@pm.me>2021-08-15 09:40:02 -0700
committerThomas Vigouroux <tomvig38@gmail.com>2021-08-18 14:07:59 +0200
commit57c2081e3fde09ad1d87e04ecc7b85caa42df1bf (patch)
treec6fb6e091621bd04778a6ee8af976e6f24b1b37d /queries/surface
parentb8a6928b529fff6ea04593b381e73d4cbc9a9cdc (diff)
Add HEEx language support, add missing commentstrings
Diffstat (limited to 'queries/surface')
-rw-r--r--queries/surface/folds.scm1
-rw-r--r--queries/surface/highlights.scm12
-rw-r--r--queries/surface/indents.scm2
3 files changed, 9 insertions, 6 deletions
diff --git a/queries/surface/folds.scm b/queries/surface/folds.scm
index 57763a6e..994f12e1 100644
--- a/queries/surface/folds.scm
+++ b/queries/surface/folds.scm
@@ -1,5 +1,6 @@
; Surface folds similar to HTML and includes blocks
[
(tag)
+ (component)
(block)
] @fold
diff --git a/queries/surface/highlights.scm b/queries/surface/highlights.scm
index 77b88c05..5cdaa977 100644
--- a/queries/surface/highlights.scm
+++ b/queries/surface/highlights.scm
@@ -19,12 +19,12 @@
; Surface supports HTML tags and are highlighted as such
[
- (start_tag)
- (end_tag)
- (self_closing_tag)
- (start_component)
- (end_component)
- (self_closing_component)
+ "<"
+ ">"
+ "</"
+ "/>"
+ "{"
+ "}"
] @tag.delimiter
; Expressions are similar to string interpolation, and are highloghted as such
diff --git a/queries/surface/indents.scm b/queries/surface/indents.scm
index ad683575..dceea9c7 100644
--- a/queries/surface/indents.scm
+++ b/queries/surface/indents.scm
@@ -1,5 +1,6 @@
; Surface indents like HTML, with the addition of blocks
[
+ (component)
(tag)
(block)
] @indent
@@ -7,6 +8,7 @@
; Dedent at the end of each tag, as well as a subblock
[
(end_tag)
+ (end_component)
(end_block)
(subblock)
] @branch