Unnamed repository; edit this file 'description' to name the repository.
Bump tree-sitter llvm grammars (#11851)
Sebastian Neubauer 2024-11-21
parent 2dbecd3 · commit f9ac1f1
-rw-r--r--languages.toml6
-rw-r--r--runtime/queries/llvm-mir/highlights.scm12
-rw-r--r--runtime/queries/llvm/highlights.scm2
-rw-r--r--runtime/queries/tablegen/highlights.scm2
4 files changed, 18 insertions, 4 deletions
diff --git a/languages.toml b/languages.toml
index 4e63b2d4..d572bee9 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1559,7 +1559,7 @@ injection-regex = "llvm"
[[grammar]]
name = "llvm"
-source = { git = "https://github.com/benwilliamgraham/tree-sitter-llvm", rev = "e9948edc41e9e5869af99dddb2b5ff5cc5581af6" }
+source = { git = "https://github.com/benwilliamgraham/tree-sitter-llvm", rev = "c14cb839003348692158b845db9edda201374548" }
[[language]]
name = "llvm-mir"
@@ -1571,7 +1571,7 @@ injection-regex = "mir"
[[grammar]]
name = "llvm-mir"
-source = { git = "https://github.com/Flakebi/tree-sitter-llvm-mir", rev = "06fabca19454b2dc00c1b211a7cb7ad0bc2585f1" }
+source = { git = "https://github.com/Flakebi/tree-sitter-llvm-mir", rev = "d166ff8c5950f80b0a476956e7a0ad2f27c12505" }
[[language]]
name = "llvm-mir-yaml"
@@ -1594,7 +1594,7 @@ injection-regex = "tablegen"
[[grammar]]
name = "tablegen"
-source = { git = "https://github.com/Flakebi/tree-sitter-tablegen", rev = "568dd8a937347175fd58db83d4c4cdaeb6069bd2" }
+source = { git = "https://github.com/Flakebi/tree-sitter-tablegen", rev = "3e9c4822ab5cdcccf4f8aa9dcd42117f736d51d9" }
[[language]]
name = "markdown"
diff --git a/runtime/queries/llvm-mir/highlights.scm b/runtime/queries/llvm-mir/highlights.scm
index 79234612..743b9690 100644
--- a/runtime/queries/llvm-mir/highlights.scm
+++ b/runtime/queries/llvm-mir/highlights.scm
@@ -75,11 +75,16 @@
"pre-instr-symbol"
"post-instr-symbol"
"heap-alloc-marker"
+ "pcsections"
+ "mmra"
+ "cfi-type"
"debug-instr-number"
"debug-location"
+ "dbg-instr-ref"
"mcsymbol"
"tied-def"
"target-flags"
+ "vscale"
"CustomRegMask"
"same_value"
"def_cfa_register"
@@ -118,11 +123,16 @@
"got"
"jump-table"
"syncscope"
- "address-taken"
+ "machine-block-address-taken"
+ "ir-block-address-taken"
"landing-pad"
"inlineasm-br-indirect-target"
"ehfunclet-entry"
+ "bb_id"
+ "call-frame-size"
"bbsections"
+ "Exception"
+ "Cold"
(intpred)
(floatpred)
diff --git a/runtime/queries/llvm/highlights.scm b/runtime/queries/llvm/highlights.scm
index cb705197..4de2a165 100644
--- a/runtime/queries/llvm/highlights.scm
+++ b/runtime/queries/llvm/highlights.scm
@@ -17,9 +17,11 @@
[
"to"
+ "nneg"
"nuw"
"nsw"
"exact"
+ "disjoint"
"unwind"
"from"
"cleanup"
diff --git a/runtime/queries/tablegen/highlights.scm b/runtime/queries/tablegen/highlights.scm
index 8ade5ba9..188fa2ef 100644
--- a/runtime/queries/tablegen/highlights.scm
+++ b/runtime/queries/tablegen/highlights.scm
@@ -68,7 +68,9 @@
"def"
"defset"
"defvar"
+ "deftype"
"assert"
+ "dump"
] @keyword
[