summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Graham <benwilliamgraham@gmail.com>2021-10-02 17:09:40 -0400
committerStephan Seitz <stephan.seitz@fau.de>2021-10-03 18:40:25 +0200
commit6188437150d7cb28aa09e9c1788f7f6e67b72782 (patch)
treea1eb1eac75ad61eccc00e55c7452a992530eb2c8
parent70b1997cd7605d7be5c1cea86019281cdc296386 (diff)
LLVM parser/highlighter added
-rw-r--r--lua/nvim-treesitter/parsers.lua8
-rw-r--r--queries/llvm/highlights.scm12
2 files changed, 20 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index 064e510c..d6b5e209 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -738,6 +738,14 @@ list.hjson = {
maintainers = { "@winston0410" },
}
+list.llvm = {
+ install_info = {
+ url = "https://github.com/benwilliamgraham/tree-sitter-llvm",
+ files = { "src/parser.c" },
+ },
+ maintainers = { "@benwilliamgraham" },
+}
+
local M = {
list = list,
}
diff --git a/queries/llvm/highlights.scm b/queries/llvm/highlights.scm
new file mode 100644
index 00000000..73bdedb3
--- /dev/null
+++ b/queries/llvm/highlights.scm
@@ -0,0 +1,12 @@
+(type) @type
+(statement) @statement
+(number) @number
+(comment) @comment
+(string) @string
+(label) @label
+(keyword) @keyword
+(boolean) @boolean
+(float) @number
+(constant) @identifier
+(identifier) @constant
+(punctuation) @punctuation