Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex Lookbehind and the <=< ligature #578

Closed
j-f1 opened this issue Mar 25, 2018 · 3 comments
Closed

Regex Lookbehind and the <=< ligature #578

j-f1 opened this issue Mar 25, 2018 · 3 comments
Labels
Milestone

Comments

@j-f1
Copy link
Contributor

j-f1 commented Mar 25, 2018

I encountered this issue here:

(?<=<foo>)

screen shot 2018-03-25 at 07 58 28

This would look better rendered as

(?<=​<foo>)

screen shot 2018-03-25 at 07 58 39

since the <= and < are separate. It looks like matching (?<= separately would do the trick here.

@tonsky
Copy link
Owner

tonsky commented Mar 25, 2018

Thanks!

@ghost
Copy link

ghost commented May 22, 2018

I feel that the lookbehind sequence "?<=" probably shouldn't use a ligature at all (or it should have its own ligature, but that's a bigger ask). In regex, the "<=" doesn't mean the same thing as "≤".

@long-lazuli
Copy link

Matching (?<= would do the trick, but I would rather see a left arrow than a lessOrEqual sign aside the ? ...

@tonsky tonsky added this to the 1.208 milestone Aug 27, 2019
@tonsky tonsky closed this as completed in 00c8578 Sep 2, 2019
tonsky added a commit that referenced this issue Sep 2, 2019
… `(?===` `(?==>` `(?=>` `(?=>>` `(?=<<` `(?=/=` `(?!!` `(?!!.` `(?!=` `(?!==` `(?<!!` `(?<!!.` `(?<!=` `(?<!==` `(?<!--` (#578)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants