From eb84d9493cc09bf27ae9c9e0dba79be3bb743e08 Mon Sep 17 00:00:00 2001 From: VuiMuich Date: Tue, 5 Apr 2022 14:39:22 +0200 Subject: [PATCH] add language `ron` (#1925) --- book/src/generated/lang-support.md | 1 + languages.toml | 10 ++++++++++ runtime/queries/ron/highlights.scm | 1 + runtime/queries/ron/indents.scm | 1 + runtime/queries/ron/injections.scm | 1 + 5 files changed, 14 insertions(+) create mode 100644 runtime/queries/ron/highlights.scm create mode 100644 runtime/queries/ron/indents.scm create mode 100644 runtime/queries/ron/injections.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 694d1d128..b71349f31 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 0220c33b8..d81d03733 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 000000000..43766a4f8 --- /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 000000000..43766a4f8 --- /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 000000000..43766a4f8 --- /dev/null +++ b/runtime/queries/ron/injections.scm @@ -0,0 +1 @@ +; inherits: rust \ No newline at end of file