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

[Fix] Patch PHP lexer #60

Merged
merged 5 commits into from
Feb 22, 2016
Merged

[Fix] Patch PHP lexer #60

merged 5 commits into from
Feb 22, 2016

Conversation

yfwz100
Copy link
Contributor

@yfwz100 yfwz100 commented Feb 22, 2016

Further improve the PHP lexer:

  1. Definitions in comments are ignored.
  2. Modifier beside a function is now detected.

Test cases are included.

@yfwz100
Copy link
Contributor Author

yfwz100 commented Feb 22, 2016

#50 is related.

@@ -88,8 +111,7 @@ define(function (require, exports, module) {
} else {
ref.name = w;
}
// TODO: all function are assumed to be public.
ref.modifier = "public";
ref.modifier = modifier || 'public';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To pass the tests, please use doublequotes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see...

@Hirse
Copy link
Owner

Hirse commented Feb 22, 2016

Thanks for another great PR.

I have added some comments directly to the code.

Hirse added a commit that referenced this pull request Feb 22, 2016
PHPLexer: Detect comments and modifiers
@Hirse Hirse merged commit 2dc5658 into Hirse:master Feb 22, 2016
@yfwz100 yfwz100 deleted the patch-php-lexer branch February 22, 2016 14:18
@yfwz100
Copy link
Contributor Author

yfwz100 commented Feb 22, 2016

😄

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

Successfully merging this pull request may close these issues.

2 participants