-
Notifications
You must be signed in to change notification settings - Fork 592
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] possible enhancement: distinguish uses of square brackets #324
Comments
Yes, that seems like a reasonable addition. I'll likely be adding such support to C/C++ and PHP soon also since those are now in better shape for more context-specific enhancements. |
I added a commit that implements this on a basic level: https://github.com/jcberquist/Packages/commit/3240bcb5ea4162e5acc2a4a8c0efbc93adde9088 I didn't create a pull request because I wasn't sure of the scopes you wanted to use, or if this was a satisfactory way to go about it (especially since you plan to do the same in C/C++ and PHP). |
The scoping for this is being discussed here: #790 |
Counterexample to jcberquist@3240bcb: 1 /**/ [a] The |
With the addition of the
after-identifier
context, it looks to me like it is possible to distinguish the use of square brackets in a property accessor (or array index) and square brackets used to denote a literal array. Does that seem right? If so, is that something you would be interested in adding?The text was updated successfully, but these errors were encountered: