From fff8543b5809766608be14ee1a45f8b86f5a3de2 Mon Sep 17 00:00:00 2001 From: lefp Date: Wed, 12 Apr 2023 15:42:41 -0400 Subject: Add OpenCL tree-sitter and LSP config (#6473) --- languages.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'languages.toml') 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" } -- cgit v1.2.3-70-g09d2