feat(r)!: update parser and queries

Breaking change: remove node `(return)` in favor of `(identifier)`
This commit is contained in:
Christian Clason 2026-05-22 00:07:29 +02:00 committed by Christian Clason
parent 0c3a9cdfa2
commit 2ec268b5d0
2 changed files with 3 additions and 2 deletions

View file

@ -1818,7 +1818,7 @@ return {
},
r = {
install_info = {
revision = '0e6ef7741712c09dc3ee6e81c42e919820cc65ef',
revision = '8ac99ed1e7ad319737fc11dde20c07d1e1942383',
url = 'https://github.com/r-lib/tree-sitter-r',
},
maintainers = { '@ribru17' },

View file

@ -117,7 +117,8 @@ function: (extract_operator
(function_definition
name: "\\" @operator)
(return) @keyword.return
((identifier) @keyword.return
(#eq? @keyword.return "return"))
[
"if"