mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
feat(r)!: update parser and queries
Breaking change: remove node `(return)` in favor of `(identifier)`
This commit is contained in:
parent
0c3a9cdfa2
commit
2ec268b5d0
2 changed files with 3 additions and 2 deletions
|
|
@ -1818,7 +1818,7 @@ return {
|
|||
},
|
||||
r = {
|
||||
install_info = {
|
||||
revision = '0e6ef7741712c09dc3ee6e81c42e919820cc65ef',
|
||||
revision = '8ac99ed1e7ad319737fc11dde20c07d1e1942383',
|
||||
url = 'https://github.com/r-lib/tree-sitter-r',
|
||||
},
|
||||
maintainers = { '@ribru17' },
|
||||
|
|
|
|||
|
|
@ -117,7 +117,8 @@ function: (extract_operator
|
|||
(function_definition
|
||||
name: "\\" @operator)
|
||||
|
||||
(return) @keyword.return
|
||||
((identifier) @keyword.return
|
||||
(#eq? @keyword.return "return"))
|
||||
|
||||
[
|
||||
"if"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue