Skip to content

Fix for issue #17 #18

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

Merged
merged 1 commit into from
May 22, 2011
Merged

Fix for issue #17 #18

merged 1 commit into from
May 22, 2011

Conversation

int3
Copy link
Collaborator

@int3 int3 commented May 18, 2011

Since I already spent some time on fixing regex matching yesterday, I thought I'd take a shot at issue #17 as well. The problem was that vim wasn't seeing return /test/ as returning a regular expression -- it mistook it for a division operation instead.

In particular, we recognize `return /test/i` as returning a regular
expression, while `x /test/i` divides `x` by `test` and then by `i`.
pangloss pushed a commit that referenced this pull request May 22, 2011
@pangloss pangloss merged commit 91540f6 into pangloss:master May 22, 2011
@pangloss
Copy link
Owner

Nice! That works really well.

aronhoff pushed a commit to aronhoff/vim-javascript that referenced this pull request Sep 1, 2015
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.

2 participants