diff options
Diffstat (limited to 'queries/python/highlights.scm')
| -rw-r--r-- | queries/python/highlights.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index de98dccbf..b09122dd9 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -346,3 +346,11 @@ ;; https://docs.python.org/3/library/stdtypes.html "bool" "int" "float" "complex" "list" "tuple" "range" "str" "bytes" "bytearray" "memoryview" "set" "frozenset" "dict" "type" "object")) + +;; Regex from the `re` module + +(call + function: (attribute + object: (identifier) @_re) + arguments: (argument_list . (string (string_content) @string.regex)) + (#eq? @_re "re")) |
