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:
parent
bd42c2c9c1
commit
64ff9dd944
|
@ -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
|
||||
|
|
3
test/highlight/imports.tig
Normal file
3
test/highlight/imports.tig
Normal file
|
@ -0,0 +1,3 @@
|
|||
import "lib.tih"
|
||||
/* <- keyword */
|
||||
/* ^ string.special.path */
|
Loading…
Reference in a new issue