Closed iago-lito closed 1 year ago
I believe this is due to an update of Python in your setup:
re.error: global flags not at the start of the expression at position 2
Try putting the (?i)
before the \b
in your regex?
Indeed, archlinux has just upgraded to python 3.11.. and moving the (?i)
before the \b
does fix the problem. Thank you :) I'm closing this because I guess it's not exactly a bug in Ultisnips.
Thank you for this amazing piece of software btw <3
The following regex snippet, triggered in-word with
\b
and ignoring case with(?i)
used to work:But it makes Ultisnips crash on first insertion with neovim now, with the following error:
Here is how to reproduce with a DockerFile recipe:
Steps to reproduce: