TonyXT / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
0 stars 0 forks source link

Lua code and string toggle #72

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Strings in Lua does not seem to always be initialized by the ' character,
which makes the next ' that is supposed to terminate the string sequence,
actually start it. This makes the following part of the code all messed up,
until either the end or another error is made and the toggle is back where
it should be.

For reference, please see from line 94 at:
http://code.google.com/p/protea/source/browse/trunk/core/atcp.lua?spec=svn2&r=2

Or up until line 121 at:
http://code.google.com/p/protea/source/browse/trunk/core/protea.lua?r=2

The latter has the ' in a comment, where it should not start or stop the
string sequence coloring.

Original issue reported on code.google.com by tobias.s...@gmail.com on 2 Apr 2009 at 5:41

GoogleCodeExporter commented 8 years ago
That link does not work for me, but I believe this was fixed recently in 
revision 71.
 I will include that when I push a new minified version sometime soonish.

r71 | mikesamuel@gmail.com | 2009-05-15 10:58:19 -0700 (Fri, 15 May 2009) | 1 
line
Fixed bug: Lua was not tokenizing strings or comments adjacent to punctuation 
properly.

Original comment by mikesamuel@gmail.com on 19 May 2009 at 5:12