Add import path high-lighting

I don't think this group is supported by neovim, but 'tree-sitter-nix'
makes use of it, and I think it makes sense to add it.
This commit is contained in:
Bruno BELANYI 2022-06-03 20:32:06 +02:00
parent bd42c2c9c1
commit 64ff9dd944
2 changed files with 8 additions and 0 deletions

View file

@ -65,6 +65,11 @@
name: (identifier) @variable.parameter)
; }}}
; Declarations {{{
(import_declaration
file: (string_literal) @string.special.path)
; }}}
; Literals {{{
(nil_literal) @constant.builtin
(integer_literal) @number

View file

@ -0,0 +1,3 @@
import "lib.tih"
/* <- keyword */
/* ^ string.special.path */