Merge branch 'master' into pmd/7.0.x

This commit is contained in:
Andreas Dangel
2020-08-21 11:51:54 +02:00
69 changed files with 1728 additions and 494 deletions

View File

@ -41,4 +41,9 @@ public class PythonTokenizerTest extends CpdTextComparisonTest {
public void testBackticks() {
doTest("backticks");
}
@Test
public void testTabWidth() {
doTest("tabWidth");
}
}

View File

@ -0,0 +1,4 @@
def hello():
return 'Hello world'
print(hello())

View File

@ -0,0 +1,18 @@
[Image] or [Truncated image[ Bcol Ecol
L1
[def] 1 3
[hello] 5 9
[(] 10 10
[)] 11 11
[:] 12 12
L2
[return] 2 7
['Hello world'] 9 21
L4
[print] 1 5
[(] 6 6
[hello] 7 11
[(] 12 12
[)] 13 13
[)] 14 14
EOF