From f460cc8ee7cb0e7ff1512b238d07029afca3d958 Mon Sep 17 00:00:00 2001 From: Glib Shpychka <23005347+gshpychka@users.noreply.github.com> Date: Thu, 29 Jun 2023 13:34:46 +0300 Subject: feat(wing): add parser (#5021) Co-authored-by: Christian Clason Co-authored-by: ObserverOfTime --- tests/query/highlights/wing/class.w | 19 +++++++++++++++++++ tests/query/highlights/wing/nested_method.w | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 tests/query/highlights/wing/class.w create mode 100644 tests/query/highlights/wing/nested_method.w (limited to 'tests/query') diff --git a/tests/query/highlights/wing/class.w b/tests/query/highlights/wing/class.w new file mode 100644 index 000000000..636cbc601 --- /dev/null +++ b/tests/query/highlights/wing/class.w @@ -0,0 +1,19 @@ +bring cloud; +// <- keyword + +class Foo { +// <- keyword +// ^ variable +// ^ punctuation.bracket + name: str; +//^ field +// ^ type.builtin +// ^ punctuation.delimiter + init(name: str) { +//^ keyword +// ^ variable + this.name = name; +// ^ punctuation.delimiter +// ^ operator + } +} diff --git a/tests/query/highlights/wing/nested_method.w b/tests/query/highlights/wing/nested_method.w new file mode 100644 index 000000000..04fd1a37d --- /dev/null +++ b/tests/query/highlights/wing/nested_method.w @@ -0,0 +1,4 @@ +test1.test2.test3(); +// <- variable +// ^ property +// ^ method.call -- cgit v1.2.3-70-g09d2