From be0c8d335fbdd81d0fd1158836163f8d13b78c3a Mon Sep 17 00:00:00 2001 From: Lev Velykoivanenko Date: Sat, 18 Oct 2025 18:54:26 +0200 Subject: [PATCH] tests(python): add test file for regex --- tests/query/highlights/python/regex.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/query/highlights/python/regex.py diff --git a/tests/query/highlights/python/regex.py b/tests/query/highlights/python/regex.py new file mode 100644 index 000000000..3d5c0d3e0 --- /dev/null +++ b/tests/query/highlights/python/regex.py @@ -0,0 +1,10 @@ +import re + +re_test = re.compile(r"^(?P\d{4}) (?P\d) \w\s{,3}$") +# ^ @string.regexp +re_test = re.compile( + r"^(?P\d{4}) " + # ^ @string.regexp + r"(?P\d) \w\s{,3}" + # ^ @string.regexp +)