Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

meta.use.php scope not including the use keyword #15

Closed
szemian opened this Issue May 25, 2011 · 1 comment

2 participants

szemian Josh Varner
szemian
szemian commented May 25, 2011

Hi, I feel that it is incorrect that the meta.use.php scope has not including the "use" keyword.

Currently the code is:

{ begin = '(?i)\s*(use)\s+(?=[a-z_0-9\ ]+\s*(?:;|,|$))';
end = '(?=;|(?:^\s*$)|(?:\s*(?!(\/[\/*])|#)[^,\s]\s*$))';
beginCaptures = { 1 = { name = 'keyword.other.use.php'; }; };
patterns = (
{ include = '#comments'; },
{ name = 'meta.use.php';
....

I think it is more correct this way:
{ name = 'meta.use.php';
begin = '(?i)\s*(use)\s+(?=[a-z_0-9\ ]+\s*(?:;|,|$))';
end = '(?=;|(?:^\s*$)|(?:\s*(?!(\/[\/*])|#)[^,\s]\s*$))';
beginCaptures = { 1 = { name = 'keyword.other.use.php'; }; };
patterns = (
{ include = '#comments'; },
.....
....

Josh Varner joshvarner closed this in 97d7a91 May 25, 2011
Josh Varner

Thanks for the report! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.