Skip to content

Fix for #6 (Capture regex for new injection method is too strict) #7

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ehoogeveen-medweb
Copy link

This should fix the syntax highlighting issues I was seeing and also adds support for templates wrapped in a function. To match the function call I take advantage of unicode property escapes (similar to using [A-Za-z0-9] but matching various non-ASCII letters and digits as well).

In addition, I modified the original regex a little to better match the original TM scopes, and added a pattern to restore syntax highlighting for template string interpolations.

Sorry if this is a bit much to pull in one go, I'm still not really used to using Github. Let me know if there's anything I can do to make the process easier.

…erpolations and add vue-tag2 to match templates wrapped in function calls.

This also removes keywords-functions and keywords-object as they were breaking syntax highlighting in some places and didn't seem to serve any function.
@Betanu701 Betanu701 self-requested a review January 31, 2020 16:53
@Betanu701
Copy link
Member

I will test this out. If all checks out. I will merge it. Thanks!

@ehoogeveen-medweb
Copy link
Author

Any news on this?

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