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

javascript: Fix an issue where some keywords like "for" and "if" are mistakenly recognized as functions #1938

Merged
merged 1 commit into from
Apr 9, 2023

Conversation

nsfisis
Copy link
Contributor

@nsfisis nsfisis commented Apr 3, 2023

It fixes #1934. Some keywords like for and if in JavaScript are mistakenly recognized as functions.

Check if the matched function name is one of the keywords or not.

@tancnle
Copy link
Collaborator

tancnle commented Apr 9, 2023

Thank you for your contribution @nsfisis ❤️ The changes look good to me! 🚀

@tancnle tancnle added this pull request to the merge queue Apr 9, 2023
Merged via the queue into rouge-ruby:master with commit b274a10 Apr 9, 2023
@nsfisis nsfisis deleted the fix/1934 branch April 9, 2023 09:03
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

Successfully merging this pull request may close these issues.

JavaScript: Some keywords like "for" and "if" are mistakenly recognized as functions.
2 participants