From df094909d17469ded9782bd3fa714a7c34f20cd6 Mon Sep 17 00:00:00 2001 From: Ivan Svoboda Date: Tue, 13 Jun 2023 21:41:30 +0600 Subject: [PATCH] Webc language support (#7290) * feat: add webc language support * feat: add to lang-support book webc --- book/src/generated/lang-support.md | 1 + languages.toml | 9 +++++++++ runtime/queries/webc/highlights.scm | 1 + runtime/queries/webc/injections.scm | 1 + 4 files changed, 12 insertions(+) create mode 100644 runtime/queries/webc/highlights.scm create mode 100644 runtime/queries/webc/injections.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index da37dfb3..dbf4d3e0 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -162,6 +162,7 @@ | vue | ✓ | | | `vue-language-server` | | wast | ✓ | | | | | wat | ✓ | | | | +| webc | ✓ | | | | | wgsl | ✓ | | | `wgsl_analyzer` | | wit | ✓ | | ✓ | | | xit | ✓ | | | | diff --git a/languages.toml b/languages.toml index 63678bf4..3dec2693 100644 --- a/languages.toml +++ b/languages.toml @@ -2624,3 +2624,12 @@ indent = { tab-width = 2, unit = " " } [[grammar]] name = "t32" source = { git = "https://codeberg.org/xasc/tree-sitter-t32", rev = "1dd98248b01e4a3933c1b85b58bab0875e2ba437" } + +[[language]] +name = "webc" +scope = "text.html.webc" +injection-regex = "webc" +file-types = ["webc"] +roots = [] +indent = { tab-width = 2, unit = " " } +grammar = "html" diff --git a/runtime/queries/webc/highlights.scm b/runtime/queries/webc/highlights.scm new file mode 100644 index 00000000..207cf4ee --- /dev/null +++ b/runtime/queries/webc/highlights.scm @@ -0,0 +1 @@ +; inherits: html \ No newline at end of file diff --git a/runtime/queries/webc/injections.scm b/runtime/queries/webc/injections.scm new file mode 100644 index 00000000..207cf4ee --- /dev/null +++ b/runtime/queries/webc/injections.scm @@ -0,0 +1 @@ +; inherits: html \ No newline at end of file