feat(enforce)!: update parser and queries

Breaking change: rename directive nodes `(foo)` to `(preproc_foo)`.
This commit is contained in:
Christian Clason 2026-04-14 18:57:47 +02:00 committed by Christian Clason
parent 3e1f54c1ce
commit ef7a00503b
2 changed files with 7 additions and 7 deletions

View file

@ -511,7 +511,7 @@ return {
}, },
enforce = { enforce = {
install_info = { install_info = {
revision = 'eb2796871d966264cdb041b797416ef1757c8b4f', revision = 'cb42835385ac6d4fc64fd7b3f962591b928ccc7d',
url = 'https://github.com/simonvic/tree-sitter-enforce', url = 'https://github.com/simonvic/tree-sitter-enforce',
}, },
maintainers = { '@simonvic' }, maintainers = { '@simonvic' },

View file

@ -28,12 +28,12 @@
; Preprocessor directives ; Preprocessor directives
[ [
(include) (preproc_include)
(define) (preproc_define)
(ifdef) (preproc_ifdef)
(ifndef) (preproc_ifndef)
(else) (preproc_else)
(endif) (preproc_endif)
] @keyword.directive ] @keyword.directive
(preproc_const) @constant.macro (preproc_const) @constant.macro