possible syntax hilighting bugfixes #117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I have a couple of commit on my fork:
github.com/ekhaled/CodeMirror2@f80b3d107dgithub.com/ekhaled/CodeMirror2@0ab9ce1a9cI did not supply these as pull requests because idk whether they are actual bugs or, whether I have missed something obvious
Please have a look and merge if appropriate...
thanks
Why didn't you just define true/false as keywords though? Seems that's what they are, not numbers.
It's a minor fix, but I think you get the gist of my changes.
I quite like the way when you have "return true;" both keywords are not
coloured the same.
On Jun 14, 2011 5:21 PM, "marijnh" <
reply@reply.github.com>
wrote:
There's an 'atom' style class, that's probably more suitable for true/false (I think that's what the JS mode uses for them). How about adding a configuration parameter for things that are considered atoms to the c-like mode? 'null' in Java could also go in there.
+1 for the config parameter idea
Want to implement that?
I will have a look, TBH I haven't dug too far into the highlighting code, and don't really understand it too well.
So can't really promise anything.
On a project right now (using CM), so will look at it when I have bit more time or run into the hiliter code again, whichever comes first :-)