Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

Upstream helix metal language (#504)

uuuvnca6dc3909fa3
diff --git a/.helix/languages.toml b/.helix/languages.toml
index bf47c7a8a..8f958754c 100644
--- a/.helix/languages.toml
+++ b/.helix/languages.toml
@@ -1,17 +1,35 @@
[[language]]
name = "c"
-scope = "scope.c"
file-types = []
[[language]]
name = "cpp"
-scope = "scope.cpp"
file-types = []
[[language]]
name = "metal"
-scope = "scope.metal"
+scope = "source.metal"
+injection-regex = "metal"
file-types = ["metal", "h"]
+grammar = "cpp"
+language-servers = ["metal-analyzer"]
+auto-format = true
+comment-tokens = ["//"]
+
+[language.block-comment-tokens]
+end = "*/"
+start = "/*"
+
+[language.formatter]
+args = []
+command = "clang-format"
+
+[language.indent]
+tab-width = 2
+unit = " "
+
+[language-server.metal-analyzer]
+command = "metal-analyzer"
[language-server.rust-analyzer.config.check]
command = "clippy"
diff --git a/.helix/runtime/queries/metal/highlights.scm b/.helix/runtime/queries/metal/highlights.scm
new file mode 100644
index 000000000..5c3b344e7
--- /dev/null
+++ b/.helix/runtime/queries/metal/highlights.scm
@@ -0,0 +1 @@
+;; inherits: cpp
\ No newline at end of file
diff --git a/.helix/runtime/queries/metal/indent.scm b/.helix/runtime/queries/metal/indent.scm
new file mode 100644
index 000000000..5c3b344e7
--- /dev/null
+++ b/.helix/runtime/queries/metal/indent.scm
@@ -0,0 +1 @@
+;; inherits: cpp
\ No newline at end of file
diff --git a/.helix/runtime/queries/metal/textobjects.scm b/.helix/runtime/queries/metal/textobjects.scm
new file mode 100644
index 000000000..5c3b344e7
--- /dev/null
+++ b/.helix/runtime/queries/metal/textobjects.scm
@@ -0,0 +1 @@
+;; inherits: cpp
\ No newline at end of file