diff options
author | Sebastian Neubauer | 2021-12-29 09:30:44 +0000 |
---|---|---|
committer | GitHub | 2021-12-29 09:30:44 +0000 |
commit | 8c29b76bccc51c19c90f7c9ee156fe2cb6f52e2c (patch) | |
tree | 66a5e67fb34c18dadc5405241e450603b44c3fb2 /runtime/queries/llvm/locals.scm | |
parent | f1ed042c84fedebc1eff91d00c9c58477e912edc (diff) |
Improve llvm highlighting and queries (#1388)
* Improve llvm highlighting and queries
The llvm tree-sitter parser was updated to support scopes and more
accurate highlighting.
* Group highlight expressions better
Diffstat (limited to 'runtime/queries/llvm/locals.scm')
-rw-r--r-- | runtime/queries/llvm/locals.scm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/queries/llvm/locals.scm b/runtime/queries/llvm/locals.scm new file mode 100644 index 00000000..1946c287 --- /dev/null +++ b/runtime/queries/llvm/locals.scm @@ -0,0 +1,14 @@ +; Scopes + +(function_body) @local.scope + +; Definitions + +(argument + (value (var (local_var) @local.definition))) + +(instruction + (local_var) @local.definition) + +; References +(local_var) @local.reference |