diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-12-28 18:20:34 +0100 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-01-03 19:05:38 +0100 |
| commit | d9105e00a6cc6ec03f37f01f129d3d5882c84a67 (patch) | |
| tree | 852865755584075a852a4cc7832bd53c98942efc /queries/python | |
| parent | 43381c1321a16686259de8631f4f3e71bb7939a6 (diff) | |
Python highlights: Add regex injections: re.match(r"...")
Diffstat (limited to 'queries/python')
| -rw-r--r-- | queries/python/injections.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/python/injections.scm b/queries/python/injections.scm new file mode 100644 index 00000000..feec13f7 --- /dev/null +++ b/queries/python/injections.scm @@ -0,0 +1,6 @@ +((call + function: (attribute + object: (identifier) @_re) + arguments: (argument_list (string) @regex)) + (#eq? @_re "re") + (#match? @regex "^r.*")) |
