-
Notifications
You must be signed in to change notification settings - Fork 236
Distinguishing from comparison operators #188
Comments
How about:
Since the |
I like it 👍 |
as proposed in atom#188
as proposed in atom#188
as proposed in atom#188
Disagree. I proposed
|
In that case why use a "language" scope at all, if it's so broad? A "reserved" scope would be less ambiguous, and it could be shared with non-arithmetic operators. IMO the doc should take into account which categories are commonly highlighted together, since that's the main purpose of scopes. |
I agree. Scopes should have common attribute. However these scopes don't have nothing in common. Some of these "operators" aren't even a |
@MaximSokolov hello. Actually there are already troubles with highlighting. I really wanna make logical operators to be white (e.g.) and instanceof/delete etc to be orange but for now - I can't (actually I have a start script which make that job for me, but it is not a solution) |
IMO sub-scopes can be: |
@MaximSokolov I generally agree with your list, except... I'm curious why you listed In my opinion, |
result = property in object https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in Couldn't find any specific for "of" operator. I suppose for (let i of arr) {} https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for...of |
I agree with @Pauan, why put |
@MaximSokolov I suggest you replace |
@MaximSokolov JavaScript Reserved Keywords |
I was mistaken because of Python definition of logical operators. According formal difinition
Ruby, Python,
What other scope names?
Give examples of unreserved tokens please. |
Yes I agree that
I wasn't suggesting changing it right now. I feel it's something to consider while working on the docs.
I mean that
IMO all keywords that are listed here should share a |
It means "assignment augmented by another operator" Why it shouldn't be specific?
"Reserved" keywords there means they cannot be used as identifiers. |
That makes much more sense, I didn't interpret it that way.
I see what you mean, but you also said scopes should have common attributes, and even though it doesn't add information, it does separate |
All keywords from grammar are "reserved". You can't use |
I've noticed that these two rules use the same grouping:
By using the same groups for both, we can't have syntax highlighting be applied to keywords like
delete
andtypeof
. What would be the best way to distinguish these? Maybe remove thekeyword
class from the second group of operators?The text was updated successfully, but these errors were encountered: