Unnamed repository; edit this file 'description' to name the repository.
Add rainbows for ron (#14258)
Erasin Wang 6 months ago
parent 6f26a25 · commit da4ede9
-rw-r--r--book/src/generated/lang-support.md2
-rw-r--r--runtime/queries/ron/rainbows.scm8
-rw-r--r--runtime/queries/ron/tags.scm4
3 files changed, 13 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 39531c11..7beb4713 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -213,7 +213,7 @@
| rmarkdown | ✓ | | ✓ | | | `R` |
| robot | ✓ | | | | | `robotframework_ls` |
| robots.txt | ✓ | ✓ | | ✓ | | |
-| ron | ✓ | | ✓ | | | |
+| ron | ✓ | | ✓ | ✓ | ✓ | |
| rst | ✓ | | | | | |
| ruby | ✓ | ✓ | ✓ | ✓ | ✓ | `ruby-lsp`, `solargraph` |
| rust | ✓ | ✓ | ✓ | ✓ | ✓ | `rust-analyzer` |
diff --git a/runtime/queries/ron/rainbows.scm b/runtime/queries/ron/rainbows.scm
new file mode 100644
index 00000000..0641564d
--- /dev/null
+++ b/runtime/queries/ron/rainbows.scm
@@ -0,0 +1,8 @@
+[
+ (struct)
+ (map)
+ (tuple)
+ (array)
+] @rainbow.scope
+
+["(" ")" "[" "]" "{" "}"] @rainbow.bracket
diff --git a/runtime/queries/ron/tags.scm b/runtime/queries/ron/tags.scm
new file mode 100644
index 00000000..71df971e
--- /dev/null
+++ b/runtime/queries/ron/tags.scm
@@ -0,0 +1,4 @@
+(struct_entry
+ (identifier) @definition.struct)
+
+(map_entry (string) @definition.struct)