aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/injections/python/test.py
blob: 1d6a0a4657b80108f4de74efd71a757dcd9a90e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import re

re_test = re.compile(r"^(?P<year>\d{4}) (?P<day>\d) \w\s{,3}$")
#                                    ^ @regex
re_test = re.compile(
    # comment
    # ^ @comment
    r"^(?P<year>\d{4}) "
    # comment
    # ^ @comment
    r"(?P<day>\d) \w\s{,3}$"
    # ^ @regex
    # comment
    # comment
    # ^ @comment
)
print("foo %s bar %d" % ("arg1", 2))
#          ^ @printf