mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
chore(tests): consistent captures
This commit is contained in:
parent
17fae3f4a3
commit
10dd49958c
60 changed files with 872 additions and 873 deletions
|
|
@ -1,32 +1,32 @@
|
|||
class H {
|
||||
pub_field = "Hello";
|
||||
// ^ property
|
||||
// ^ @property
|
||||
|
||||
#priv_field = "World!";
|
||||
// ^ property
|
||||
// ^ @property
|
||||
|
||||
#private_method() {
|
||||
// ^ method
|
||||
// ^ @method
|
||||
return `${this.pub_field} -- ${this.#priv_field}`;
|
||||
// ^ property
|
||||
// ^ property
|
||||
// ^ @property
|
||||
// ^ @property
|
||||
}
|
||||
|
||||
public_method() {
|
||||
// ^ method
|
||||
// ^ @method
|
||||
return this.#private_method();
|
||||
// ^ method.call
|
||||
// ^ @method.call
|
||||
}
|
||||
|
||||
ok() {
|
||||
return this.public_method();
|
||||
// ^ method.call
|
||||
// ^ @method.call
|
||||
}
|
||||
}
|
||||
|
||||
function doSomething(options) {
|
||||
const {
|
||||
enable: on,
|
||||
// ^ punctuation.delimiter
|
||||
// ^ @punctuation.delimiter
|
||||
} = options
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue