Thanks very much, it works now! On Tuesday, July 29, 2014 3:37:15 AM UTC+2, Edward K. Ream wrote: > > On Mon, Jul 28, 2014 at 3:31 PM, Edward K. Ream <edre...@gmail.com > <javascript:>> wrote: > > >> So I suspect there's some yaml-specific bug in syntax highlighter. > > > > I looked at the alternative yaml.xml. There were a lot of regex's > > there. Not sure whether that ever has been much tested. > > Ha. It can't have been well tested. The problem became clear to me > as I was eating dinner ;-) > > Many of the regex's in yaml.py start with \\s. The jEdit2py script > stupidly thinks that the lead-in character is a backslash, rather than > what \\s represents, namely [ \t\n\r\f\v] As a result, the regex > pattern matchers never succeed because they are only called with a > backslash as the first character! > > The fix is at rev 5905eeb... > > The fix disables the entry for '\\' in rulesDict1, and adds entries > for ' ','\t' and '\n', with the same list as for '\\'. Now syntax > coloring appears to work. > > Edward >
-- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.