mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 08:50:11 -04:00
fix(highlights): improve member/property distinction
This commit is contained in:
parent
2f38c36294
commit
fa38f4e6f9
34 changed files with 106 additions and 95 deletions
|
|
@ -6,16 +6,16 @@ type int_array = array of int
|
|||
/* ^ @type.builtin */
|
||||
|
||||
type record = {a: int, b: string}
|
||||
/* ^ @property */
|
||||
/* ^ @variable.member */
|
||||
/* ^ @type.builtin */
|
||||
/* ^ @property */
|
||||
/* ^ @variable.member */
|
||||
/* ^ @type.builtin */
|
||||
|
||||
var record := record {a = 12, b = "27"}
|
||||
/* ^ @variable */
|
||||
/* ^ @type */
|
||||
/* ^ @property */
|
||||
/* ^ @property */
|
||||
/* ^ @variable.member */
|
||||
/* ^ @variable.member */
|
||||
|
||||
var array := int_array[12] of 27;
|
||||
/* ^ @variable */
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ let
|
|||
/* ^ @keyword.operator */
|
||||
in
|
||||
object.a := 27;
|
||||
/* ^ @property */
|
||||
/* ^ @variable.member */
|
||||
|
||||
object.meth()
|
||||
/* ^ @function.method */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue