Use 'parameter' high-light group
To align with neovim's usage, use `parameter` instead of `variable.parameter`.
This commit is contained in:
parent
724abf12e8
commit
45eb3e860c
|
@ -94,7 +94,7 @@
|
||||||
name: (identifier) @method)
|
name: (identifier) @method)
|
||||||
|
|
||||||
(parameters
|
(parameters
|
||||||
name: (identifier) @variable.parameter)
|
name: (identifier) @parameter)
|
||||||
; }}}
|
; }}}
|
||||||
|
|
||||||
; Declarations {{{
|
; Declarations {{{
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
primitive print(s: string)
|
primitive print(s: string)
|
||||||
/* ^ function */
|
/* ^ function */
|
||||||
/* ^ variable.parameter */
|
/* ^ parameter */
|
||||||
|
|
||||||
function func(a: int) : int = (print("Hello World!"); a)
|
function func(a: int) : int = (print("Hello World!"); a)
|
||||||
/* ^ function */
|
/* ^ function */
|
||||||
/* ^ variable.parameter */
|
/* ^ parameter */
|
||||||
/* ^ function */
|
/* ^ function */
|
||||||
|
|
|
@ -22,8 +22,8 @@ var array := int_array[12] of 27;
|
||||||
/* ^ type */
|
/* ^ type */
|
||||||
|
|
||||||
primitive func(a: int, b: string) : array
|
primitive func(a: int, b: string) : array
|
||||||
/* ^ variable.parameter */
|
/* ^ parameter */
|
||||||
/* ^ type.builtin */
|
/* ^ type.builtin */
|
||||||
/* ^ variable.parameter */
|
/* ^ parameter */
|
||||||
/* ^ type.builtin */
|
/* ^ type.builtin */
|
||||||
/* ^ type */
|
/* ^ type */
|
||||||
|
|
Loading…
Reference in a new issue