asottile-archive / textmate-highlight

syntax highlight engine written for babi
MIT License
1 stars 0 forks source link

how to handle *+ / ++ in regexes #3

Closed asottile closed 4 years ago

asottile commented 4 years ago

the python regex engine does not support "possessive quantifiers"

I wonder if I can just use the normal greedy quantifiers? I wonder if there's a way to emulate them using normal regex features

asottile commented 4 years ago

hmmmm! https://stackoverflow.com/a/5545615/812183

asottile commented 4 years ago

via c52ec58b7cdde404baa0e53cf1b26a940bbcc4e4