Skip to content

Commit 4493aa6

Browse files
Added unit test for property access colorization.
1 parent 1c73189 commit 4493aa6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/cases/unittests/services/colorization.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,14 @@ describe('Colorization', function () {
168168
identifier("var"));
169169
});
170170

171-
it("classifies keyword after a dot on previous line", function () {
171+
it("classifies a property access with whitespace around the dot", function () {
172+
test(" x .\tfoo ()",
173+
ts.EndOfLineState.Start,
174+
identifier("x"),
175+
identifier("foo"));
176+
});
177+
178+
it("classifies a keyword after a dot on previous line", function () {
172179
test("var",
173180
ts.EndOfLineState.Start,
174181
keyword("var"),

0 commit comments

Comments
 (0)