nvim-treesitter/tests/query/highlights/python/regex.py

11 lines
252 B
Python
Raw Normal View History

2025-10-18 18:54:26 +02:00
import re
re_test = re.compile(r"^(?P<year>\d{4}) (?P<day>\d) \w\s{,3}$")
# ^ @string.regexp
re_test = re.compile(
r"^(?P<year>\d{4}) "
# ^ @string.regexp
r"(?P<day>\d) \w\s{,3}"
# ^ @string.regexp
)