mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(pascal): Highlight variables
Assume that any identifiers that aren't function calls, types, fields or constants are variables. This is consistent with the highlighting definitions for other languages. Some themes (e.g. zenbones) make use of this information and they don't look quite right unless we set those groups.
This commit is contained in:
parent
ad69e2528a
commit
fa2a6b68aa
1 changed files with 6 additions and 1 deletions
|
|
@ -228,6 +228,11 @@
|
|||
(literalNumber) @number
|
||||
(literalString) @string
|
||||
|
||||
; -- Identifiers
|
||||
|
||||
; Unless a more specific rule applies, treat identifiers as variables
|
||||
(identifier) @variable
|
||||
|
||||
; -- Comments
|
||||
(comment) @comment
|
||||
(pp) @function.macro
|
||||
|
|
@ -277,7 +282,7 @@
|
|||
|
||||
; -- Type usage
|
||||
|
||||
(typeref) @type
|
||||
(typeref (_) @type)
|
||||
|
||||
; -- Constant usage
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue