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

Perl highlighting wrong after regex #2074

Closed
lameventanas opened this issue Aug 27, 2019 · 7 comments
Closed

Perl highlighting wrong after regex #2074

lameventanas opened this issue Aug 27, 2019 · 7 comments

Comments

@lameventanas
Copy link

This Perl code shows a highlighting problem after a regex:

#!/usr/bin/perl

while (<CFG>) {
	next if /^\s*[#;]/ || /^\s*$/;
	chomp;
	/^\s*-{0,2}([^=\s]+)\s*=?\s*(.*?)\s*/;
	my ($key, $val) = ($1, $2);
	print "Highlighting is messed up after the regex\n";
}

highlighing

@jfcherng
Copy link
Collaborator

LGTM, master branch

image

@michaelblyons
Copy link
Collaborator

And even better with #2048 enabled:
Screen Shot 2019-08-27 at 8 41 57 AM

@lameventanas
Copy link
Author

LGTM, master branch

image

What is LGTM?

@jfcherng
Copy link
Collaborator

@lameventanas looks good to me

@lameventanas
Copy link
Author

@lameventanas looks good to me

I tested with sublime 3 3207 for Linux, downloaded from the website, that's what it looks like.
I just started using this editor and wanted to see what it's capable of, so how do I fix this?

Also, @jfcherng and @michaelblyons , what font are you using?

@michaelblyons
Copy link
Collaborator

@lameventanas Look at the README to see how to install pre-release versions of the syntax definitions.

I am using whatever font OSX decided I should have upon install.

@lameventanas
Copy link
Author

Yes, it seems to have been fixed in master.

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

3 participants