This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I just started using Web Workbench with Visual Studio 2012 to write CoffeeScript code, and while it works very well, I found a few issues with syntax highlighting: When you start typing, the current line or block of code sometimes loses syntax highlighting, then becomes highlighted again a moment after you finish typing. It would be nice if the previous highlighting remained until the update so that the code doesn't appear to flicker as you type. Certain keywords aren't highlighted:
"then" does not get highlighted.
"not" does not get highlighted.
"switch", "when" and "then" do not get highlighted.
"return" does not get highlighted. Finally, this is mostly a matter of personal preference, but keywords which are also operators (and, or) are highlighted as operators. Since operators are often colored similarly to regular text, I find having these highlighted as keywords makes code easier to read. (The Python Tools extension does this.) |
|
|
I'd like to add also throw keyword
And possibly '@' character when it represents "this"
note: I'm using VS2012 and I see no highlighting on operators :( |
|
|
Thanks for reporting these. I have looked into what is going on here and these are not being highlighted due to limitations with how we tokenise CoffeeScript files for highlighting and we are actively looking at how we can improve this. I will let you know once we have pushed out any updates into the nightlies for this.
|
|
|
Some more highlighting issues that were present before and continue to be present in the recent update: Regular expressions are not highlighted.
String interpolation confuses the highlighter and it starts coloring random places in and outside (but mostly outside) of the actual string—especially in complex strings like this:
|
|
|
I came here to post about the #{} string interpolation. This sometimes screws up my entire file making everything red and green for ~10 lines or more. It's getting me in the Christmas spirit, but it's not so great for development :( |
|