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

Highlighting broken if tr{}{} / y{}{} contains '/' #33

Open
chrstphrchvz opened this issue Nov 11, 2018 · 0 comments
Open

Highlighting broken if tr{}{} / y{}{} contains '/' #33

chrstphrchvz opened this issue Nov 11, 2018 · 0 comments

Comments

@chrstphrchvz
Copy link

chrstphrchvz commented Nov 11, 2018

From gisle/tcl.pm#20:

Affects March 2018 TextMate Perl bundle and recent Atom and VS Code.

If transliteration operators have curly braces as the delimiter, i.e. tr{}{} or y{}, and either the pattern or replacement contains exactly one /, then everything up until the next / is highlighted as a regex. See screenshot:

screen shot 2018-11-11 at 2 12 43 am

(Example from https://github.com/gisle/tcl.pm/blob/8935cbb97e5d74210cd4397e6c6ccffa792fc054/Makefile.PL#L269)

One workaround is to use a different delimiter such as square brackets [].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant