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

Consider using (nth 8 (syntax-ppss)) instead of js2-string-node-p, etc #2

Open
dgutov opened this issue Apr 21, 2016 · 4 comments
Open

Comments

@dgutov
Copy link

dgutov commented Apr 21, 2016

It should mean the same since js2-mode applies the necessary syntax-table properties. And then it would still work with minimal difference in js-mode too, even without js2-minor-mode.

The "minimal difference" would be only inside interpolations in template strings, I think.

@NicolasPetton
Copy link
Collaborator

@dgutov I'll think about it. In the beginning I expected to use js2-mode for more things than this, but if indeed I have no other need for it, I'll do as you suggest.

@dgutov
Copy link
Author

dgutov commented Apr 25, 2016

As as aside, you might want to use different xref-js2--false-positive logic for definitions and references.

You can't have a definition inside a comment, but one can reference a function inside a comment, e.g. inside a @see JSDoc entry.

@NicolasPetton
Copy link
Collaborator

well, true, but is that really a reference? It's only a comment after all.

@dgutov
Copy link
Author

dgutov commented Jun 23, 2016

Would the user expect to see that reference in the list? I'd like to see all the places where my function is referred to, e.g. to rename them all at once.

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

No branches or pull requests

2 participants