mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
tests(python): add test file for regex
This commit is contained in:
parent
99038c83d1
commit
be0c8d335f
1 changed files with 10 additions and 0 deletions
10
tests/query/highlights/python/regex.py
Normal file
10
tests/query/highlights/python/regex.py
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
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
|
||||||
|
)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue