Use 'parameter' high-light group

To align with neovim's usage, use `parameter` instead of
`variable.parameter`.
This commit is contained in:
Bruno BELANYI 2022-11-22 10:47:48 +01:00
parent 724abf12e8
commit 45eb3e860c
3 changed files with 5 additions and 5 deletions

View file

@ -94,7 +94,7 @@
name: (identifier) @method)
(parameters
name: (identifier) @variable.parameter)
name: (identifier) @parameter)
; }}}
; Declarations {{{

View file

@ -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 */

View file

@ -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 */