On Sun, Aug 9, 2009 at 4:31 AM, joshthecoder<[email protected]> wrote: > > The issue with comments also occurs with python. > I'm sure other languages are also affected. > > On Jul 30, 11:23 pm, Yuri Takhteyev <[email protected]> wrote: >> It appears that as of recently gitorious does somewhat strange >> highlighting for Lua. For example: >> >> http://gitorious.org/sputnik/mainline/blobs/master/sputnik/lua/sputni... >> >> The main problem seems to be that comments are not recognized, but >> also a lot of words get marked as keywords even though they are not >> (e.g., "finally").
We moved the syntax highlighting clientside to save some cpu-cycles on the servers (even though it was cached). The library we used is called prettify.js (http://code.google.com/p/google-code-prettify/) and includes some special rules for Lua. Unfortunately we currently fail to detect the lua language properly. I've committed a fix that should be deployed a little later today. JS >> >> I can't remember for sure how it used to be, but I think it used to do >> it right. Has there been a switch to a new syntax highlighting >> library? >> >> What is the syntax highlighter used currently? What can I do to help >> get it to handle Lua properly? Also, until Lua is supported properly, >> would it be possible to turn syntax highlighting off? More generally, >> would it make sense to turn it off for all unsupported languages? >> >> - yuri >> >> ------http://spu.tnik.org/ > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Gitorious" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/gitorious?hl=en -~----------~----~----~----~------~----~------~--~---
