aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVuiMuich2022-04-05 12:39:22 +0000
committerGitHub2022-04-05 12:39:22 +0000
commiteb84d9493cc09bf27ae9c9e0dba79be3bb743e08 (patch)
tree2dbebd332b55688ac5bddb003dfd23a520d0c43a
parent6b80cb8a7750885abf761d1b65e5c0065ae1640b (diff)
add language `ron` (#1925)
-rw-r--r--book/src/generated/lang-support.md1
-rw-r--r--languages.toml10
-rw-r--r--runtime/queries/ron/highlights.scm1
-rw-r--r--runtime/queries/ron/indents.scm1
-rw-r--r--runtime/queries/ron/injections.scm1
5 files changed, 14 insertions, 0 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 694d1d12..b71349f3 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -53,6 +53,7 @@
| racket | | | | `racket` |
| regex | ✓ | | | |
| rescript | ✓ | ✓ | | `rescript-language-server` |
+| ron | ✓ | | ✓ | |
| ruby | ✓ | | ✓ | `solargraph` |
| rust | ✓ | ✓ | ✓ | `rust-analyzer` |
| scala | ✓ | | ✓ | `metals` |
diff --git a/languages.toml b/languages.toml
index 0220c33b..d81d0373 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1028,3 +1028,13 @@ indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "gleam"
source = { git = "https://github.com/gleam-lang/tree-sitter-gleam", rev = "7159ce961592192b0e7cdf88782cda0fdf41a4cb" }
+
+[[language]]
+name = "ron"
+scope = "source.ron"
+injection-regex = "ron"
+file-types = ["ron"]
+roots = []
+comment-token = "//"
+indent = { tab-width = 4, unit = " " }
+grammar = "rust"
diff --git a/runtime/queries/ron/highlights.scm b/runtime/queries/ron/highlights.scm
new file mode 100644
index 00000000..43766a4f
--- /dev/null
+++ b/runtime/queries/ron/highlights.scm
@@ -0,0 +1 @@
+; inherits: rust \ No newline at end of file
diff --git a/runtime/queries/ron/indents.scm b/runtime/queries/ron/indents.scm
new file mode 100644
index 00000000..43766a4f
--- /dev/null
+++ b/runtime/queries/ron/indents.scm
@@ -0,0 +1 @@
+; inherits: rust \ No newline at end of file
diff --git a/runtime/queries/ron/injections.scm b/runtime/queries/ron/injections.scm
new file mode 100644
index 00000000..43766a4f
--- /dev/null
+++ b/runtime/queries/ron/injections.scm
@@ -0,0 +1 @@
+; inherits: rust \ No newline at end of file