Closed dmshvetsov closed 3 years ago
Hi @dmshvetsov. Sorry for the last response on this. Ever since I have moved embark to its own organization I haven't been the best with notifications since they no longer show up in my main account.
The theme definitely needs some tweaking to cover javascript better. I don't do a lot of javascript coding these days and so I haven't seen the painpoints. I would love any help that can be offered on this. The syntax rules defined in this plugin can be used to target specific javascript idoms to highlight them better.
In my mind async/await
are control flow structures so they should be shown in the green color similar to the if statement here
What do you think?
@dmshvetsov Decided to jump on and start working on this. Can you help me out and run the js-async-await
branch and let me know what you think?
Here is what on my end the highlight adjustments are looking like
I have felt like the javascript highlighting is way too heavy on the reds and yellows so I am hopeful to introduce more of the greens and blues that I love about this palette into the rules. Again let me know what you think.
Hi @skbolton 👋 . I'll check it soon 👍
yea! I like it 👍 👍
@skbolton how about trying to make operators like comparison ===
, >=
etc. the same color as if
async/await
?
for reference:
@skbolton how about trying to make operators like comparison
===
,>=
etc. the same color as if async/await?
Using it a little more, I no longer think that it's a good idea. I like how it is right now.
Yeah I actually did that at first and went back on it as well. So glad we came to the same conclusion
Resolved with #39
Closing for now. @dmshvetsov if you find other places where the syntax of javascript can be improved feel free to reach out or create a new issue. You should be able to point back to master branch and see the same changes.
@skbolton thanks a lot! 🙌
Hi! I liked this theme and decided to give it a try.
I have been using it for a minute or so, and I found it strange to read async / await JavaScript code. Please take a look:
await
is a keyword andgraphql(
in a function invocation. So it makes big difference if there isawait
or not and I used to that other themes have a separate color for keywords. In Embark you have the same color for function names and keywords.I wonder if you think it will improve the theme if it has (at least slightly) different colors for function names and keywords?