feat(bpftrace): update parser and small highlights improvements

Update parser. Use new builtins from grammar (don't use lua-match).
This commit is contained in:
Stanislaw Gruszka 2026-01-23 09:03:17 +01:00 committed by Christian Clason
parent 511e5ccf40
commit 88f1dfc211
2 changed files with 4 additions and 3 deletions

View file

@ -142,7 +142,7 @@ return {
},
bpftrace = {
install_info = {
revision = '99ad82e02067a25b2a717fc006ea74b1604f7115',
revision = '0978030fdcdab74d49faaee2a60eb94607a367cc',
url = 'https://github.com/sgruszka/tree-sitter-bpftrace',
},
maintainers = { '@sgruszka' },

View file

@ -18,8 +18,9 @@
(args_keyword) @variable.builtin
((identifier) @variable.builtin
(#lua-match? @variable.builtin "^arg[0-9]+$"))
(argn_identifier) @variable.builtin
(retval_identifier) @variable.builtin
(scratch_variable) @variable