aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorlefp2023-04-12 19:42:41 +0000
committerGitHub2023-04-12 19:42:41 +0000
commitfff8543b5809766608be14ee1a45f8b86f5a3de2 (patch)
treecc433b37e0e3b27bb3679c95edb1ac5b7e1d99e0 /languages.toml
parent70de5026b801fb1a0eb54acc2d3685291c8e14f3 (diff)
Add OpenCL tree-sitter and LSP config (#6473)
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml13
1 files changed, 13 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index 9e55dd4e..86688137 100644
--- a/languages.toml
+++ b/languages.toml
@@ -2472,3 +2472,16 @@ language-server = { command = "markdoc-ls", args = ["--stdio"] }
[[grammar]]
name = "markdoc"
source = { git = "https://github.com/markdoc-extra/tree-sitter-markdoc", rev = "5ffe71b29e8a3f94823913ea9cea51fcfa7e3bf8" }
+
+[[language]]
+name = "opencl"
+scope = "source.cl"
+injection-regex = "(cl|opencl)"
+file-types = ["cl"]
+roots = []
+comment-token = "//"
+language-server = { command = "clangd" }
+
+[[grammar]]
+name = "opencl"
+source = { git = "https://github.com/lefp/tree-sitter-opencl", rev = "8e1d24a57066b3cd1bb9685bbc1ca9de5c1b78fb" }