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)
|
||||
|
||||
(parameters
|
||||
name: (identifier) @variable.parameter)
|
||||
name: (identifier) @parameter)
|
||||
; }}}
|
||||
|
||||
; Declarations {{{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
primitive print(s: string)
|
||||
/* ^ function */
|
||||
/* ^ variable.parameter */
|
||||
/* ^ parameter */
|
||||
|
||||
function func(a: int) : int = (print("Hello World!"); a)
|
||||
/* ^ function */
|
||||
/* ^ variable.parameter */
|
||||
/* ^ parameter */
|
||||
/* ^ function */
|
||||
|
|
|
@ -22,8 +22,8 @@ var array := int_array[12] of 27;
|
|||
/* ^ type */
|
||||
|
||||
primitive func(a: int, b: string) : array
|
||||
/* ^ variable.parameter */
|
||||
/* ^ parameter */
|
||||
/* ^ type.builtin */
|
||||
/* ^ variable.parameter */
|
||||
/* ^ parameter */
|
||||
/* ^ type.builtin */
|
||||
/* ^ type */
|
||||
|
|
Loading…
Reference in a new issue