mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
Add some ruby exception keywords
This commit is contained in:
parent
407ff057db
commit
b8bbfceca7
1 changed files with 8 additions and 0 deletions
|
|
@ -50,6 +50,14 @@
|
||||||
((identifier) @keyword
|
((identifier) @keyword
|
||||||
(#vim-match? @keyword "^(private|protected|public)$"))
|
(#vim-match? @keyword "^(private|protected|public)$"))
|
||||||
|
|
||||||
|
[
|
||||||
|
"rescue"
|
||||||
|
"ensure"
|
||||||
|
] @exception
|
||||||
|
|
||||||
|
((identifier) @exception
|
||||||
|
(#vim-match? @exception "^(fail|raise)$"))
|
||||||
|
|
||||||
; Function calls
|
; Function calls
|
||||||
|
|
||||||
"defined?" @function
|
"defined?" @function
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue