Test dollar in ident in python

This commit is contained in:
Clément Fournier 2022-05-01 18:21:43 +02:00
parent 078345fbca
commit f80c73e44f
No known key found for this signature in database
GPG Key ID: 4D8D42402E4F47E2
3 changed files with 21 additions and 0 deletions

View File

@ -51,4 +51,10 @@ public class PythonTokenizerTest extends CpdTextComparisonTest {
public void testTabWidth() {
doTest("tabWidth");
}
@Test
public void testVarWithDollar() {
doTest("var_with_dollar");
}
}

View File

@ -0,0 +1,2 @@
def check():
a$a = []

View File

@ -0,0 +1,13 @@
[Image] or [Truncated image[ Bcol Ecol
L1
[def] 1 3
[check] 5 9
[(] 10 10
[)] 11 11
[:] 12 12
L2
[a$a] 5 7
[=] 9 9
[\[] 11 11
[\]] 12 12
EOF