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
|
|
@ -1,15 +1,15 @@
|
|||
class H {
|
||||
pub_field = "Hello";
|
||||
// ^ @property
|
||||
// ^ @variable.member
|
||||
|
||||
#priv_field = "World!";
|
||||
// ^ @property
|
||||
// ^ @variable.member
|
||||
|
||||
#private_method() {
|
||||
// ^ @function.method
|
||||
return `${this.pub_field} -- ${this.#priv_field}`;
|
||||
// ^ @property
|
||||
// ^ @property
|
||||
// ^ @variable.member
|
||||
// ^ @variable.member
|
||||
}
|
||||
|
||||
public_method() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue