Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

arguments keyword not being matched #189

Open
smaili opened this issue Aug 4, 2015 · 12 comments
Open

arguments keyword not being matched #189

smaili opened this issue Aug 4, 2015 · 12 comments

Comments

@smaili
Copy link

smaili commented Aug 4, 2015

Screenshot:

pic

@Victorystick
Copy link
Contributor

Not an issue as such. arguments isn't a keyword. https://people.mozilla.org/~jorendorff/es6-draft.html#sec-keywords

@smaili
Copy link
Author

smaili commented Aug 4, 2015

@Victorystick, that's a reference to the ES6 draft. I believe ES5 treats arguments as a keyword, or at the very least a reserved word.

@Victorystick
Copy link
Contributor

Nope. ES5 spec: https://es5.github.io/#x7.8.4

ES6 didn't remove anything.

@mehcode
Copy link

mehcode commented Aug 4, 2015

Shouldn't arguments at least be a support.* something or other? It might not be a keyword but its certainly a "language feature".

@smaili
Copy link
Author

smaili commented Aug 4, 2015

I stand corrected. They seem to refer to it as an "identifier" :)

In any case, I don't see anything wrong with having some kind of group matching to at least give highlighters the opportunity to stylize it if they so choose.

@smaili
Copy link
Author

smaili commented Aug 7, 2015

Maybe also add constructor and prototype to the list?

@winstliu
Copy link
Contributor

winstliu commented Aug 7, 2015

constructor

Please see #191 for more details (basically, it's already tokenized, but some themes don't colorize it).

@smaili
Copy link
Author

smaili commented Aug 7, 2015

@50Wliu You seem to be on to something. The same happens to delete.

delete

@YurySolovyov
Copy link

I agree that arguments need some more specialized highlighting, it would make it easier to spot it in code.

@winstliu
Copy link
Contributor

winstliu commented Nov 7, 2015

All right. Coming back to this: Does anyone have any suggestions for what arguments should be tokenized as?

@YurySolovyov
Copy link

@50Wliu IMO same as this - kind of metavariable.

@MaximSokolov
Copy link
Contributor

variable.language.arguments

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants