mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat(julia): mark begin & end in an index or range expression as @variable.builtin
This commit is contained in:
parent
9c7fa77f14
commit
8886384244
1 changed files with 9 additions and 0 deletions
|
|
@ -100,6 +100,15 @@
|
||||||
(where_clause
|
(where_clause
|
||||||
(curly_expression (_) @type))
|
(curly_expression (_) @type))
|
||||||
|
|
||||||
|
;; Builtins
|
||||||
|
|
||||||
|
((identifier) @variable.builtin
|
||||||
|
(#any-of? @variable.builtin "begin" "end")
|
||||||
|
(#has-ancestor? @variable.builtin index_expression))
|
||||||
|
|
||||||
|
((identifier) @variable.builtin
|
||||||
|
(#any-of? @variable.builtin "begin" "end")
|
||||||
|
(#has-ancestor? @variable.builtin range_expression))
|
||||||
|
|
||||||
;;; Keywords
|
;;; Keywords
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue