mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
Add fields to Nix highlighting
This commit is contained in:
parent
9634d9b32a
commit
4f1dd5c151
1 changed files with 4 additions and 0 deletions
|
|
@ -75,6 +75,10 @@
|
||||||
; string interpolation (this was very annoying to get working properly)
|
; string interpolation (this was very annoying to get working properly)
|
||||||
(interpolation "${" @punctuation.special (_) "}" @punctuation.special) @none
|
(interpolation "${" @punctuation.special (_) "}" @punctuation.special) @none
|
||||||
|
|
||||||
|
; fields (the `.` in `a.b = c;` isn't included)
|
||||||
|
(attrset (bind . (attrpath (identifier) @field)))
|
||||||
|
(rec_attrset (bind . (attrpath (identifier) @field)))
|
||||||
|
|
||||||
; integers, also highlight a unary -
|
; integers, also highlight a unary -
|
||||||
[
|
[
|
||||||
(unary "-" (integer))
|
(unary "-" (integer))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue