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: more async tagging #1911
Comments
The reason you don't get a tag for
Unfortunately there's not much more documentation that the code itself, and hopefully a few comments in it. But no, it's not using black magic so much; the commit that added |
To be fair, that is non-standard syntax. The static/instance properties is not set in stone yet. But I guess it would be useful to add none then less. I noticed a |
Where can I get more information about the non-standard syntax?
We inherit the keyword from Exuberant-ctags, from where Universal-ctags was forked. |
I would like to introduce OpenUI5 or SAPUI5 sub parser on JavaScript parser. If it is not in a popular standard, I will think about introducing subparser for it. |
class Test {
async before() { // ctags will recognize this
}
get xx() {
return 1;
}
async after() { // ctags will NOT recognize this
}
set yy(val) {
return 2;
}
async after2() { // ctags will NOT recognize this
}
}; And one thing not related to |
Not reproduced.
|
@KazuakiM, could you look at the issue about Homebrew reported by @maple-leaf? |
@maple-leaf ope log) Can you please say that again? |
@masatake @KazuakiM I try |
@maple-leaf
|
@KazuakiM I just tried, and works too. |
Since @jayceekay's original code is not standard (cfr. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes) and the current version of ctags correctly handle's @maple-leaf's code, I recommend closing this issue. |
I tested both JavaScript snippets in this issue, and they both work correctly with the latest ctags on master. |
The name of the parser:
javascript
The command line you used to run ctags:
The content of input file:
The tags output you are not satisfied with:
The tags output you expect:
not sure? but basically the above, but with a tag for the async class method
The version of ctags:
How do you get ctags binary:
homebrew
i tried tackling this myself but there's not enough for me to get started by myself. as an aside, i went looking for a community chat and realized you guys are communicating using issues (hence this issue).
what i tried:
as an aside, are there any articles on how this code works? i'm not a c developer but when i inspected other PRs that added async tags to the js parser i didn't notice much change to logic outside of
Units/
. is it using black magic to derive tag definitions from theexpected.tags
file?! help on how i can help would be cool!The text was updated successfully, but these errors were encountered: