aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Svoboda2023-06-13 15:41:30 +0000
committerGitHub2023-06-13 15:41:30 +0000
commitdf094909d17469ded9782bd3fa714a7c34f20cd6 (patch)
treed4ebafd3081b5c38a295850e15ff22845aa6833f
parentcbe2308210e0a5fb53ab8771ab3cbfb906b79a30 (diff)
Webc language support (#7290)
* feat: add webc language support * feat: add to lang-support book webc
-rw-r--r--book/src/generated/lang-support.md1
-rw-r--r--languages.toml9
-rw-r--r--runtime/queries/webc/highlights.scm1
-rw-r--r--runtime/queries/webc/injections.scm1
4 files changed, 12 insertions, 0 deletions
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