mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -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)
|
||||
(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 -
|
||||
[
|
||||
(unary "-" (integer))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue