diff options
| -rw-r--r-- | tests/query/highlights/ecma/test.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/query/highlights/ecma/test.ts b/tests/query/highlights/ecma/test.ts new file mode 100644 index 000000000..e3c73d6ae --- /dev/null +++ b/tests/query/highlights/ecma/test.ts @@ -0,0 +1,25 @@ +class H { + pub_field = "Hello"; + // ^ property + + #priv_field = "World!"; + // ^ property + + #private_method() { + // ^ method + return `${this.pub_field} -- ${this.#priv_field}`; + // ^ property + // ^ property + } + + public_method() { + // ^ method + return this.#private_method(); + // ^ method + } + + ok() { + return this.public_method(); + // ^ method + } +} |
