fix parsing of property access after new line (#1944)

Account for comments when detecting property access in `tokenizer`.

fixes #1943
This commit is contained in:
Alex Lam S.L
2017-05-16 05:40:49 +08:00
committed by GitHub
parent f18abd1b9c
commit 9464d3c20f
2 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
operator: {
input: {
a. //comment
typeof
}
expect_exact: "a.typeof;"
}
name: {
input: {
a. //comment
b
}
expect_exact: "a.b;"
}
keyword: {
input: {
a. //comment
default
}
expect_exact: "a.default;"
}
atom: {
input: {
a. //comment
true
}
expect_exact: "a.true;"
}