#1187 Mako lexer tracking bug

Bug
closed
Scintilla (796)
3
2014-07-17
2011-06-22
No

When editing the attached mako example as indicated in the file, lexing gets confused. I can't seem to figure this one out so am just posting it as a bug for now. I suspect it has to do with wrong line state set for line 3 in the file since it works if the tag is all on one line. Re-lexing the whole file works; it is just starting in the middle during the edit that fails. I tested this within Wing IDE and don't know if it'll act quite the same way in another Scintilla integration.

Discussion

  • Stephan R.A. Deibel

    Illustrates the bug

     
  • Neil Hodgson

    Neil Hodgson - 2011-06-22

    It fails in SciTE too. An example failing edit is to add a space before the word "Edit" on the second line and then trigger a repaint by resizing the window. This sort of error is often caused by maintaining some local state while lexing but not correctly restoring this state when starting to lex.

     
  • Neil Hodgson

    Neil Hodgson - 2011-06-22
    • assigned_to: nobody --> sdeibel
    • status: open --> open-accepted
     
  • Stephan R.A. Deibel

    I was unable to replicate this w/ current sources, so think it may be fixed.

     
    • Neil Hodgson

      Neil Hodgson - 2014-07-17

      OK, closing.

       
  • Neil Hodgson

    Neil Hodgson - 2014-07-17
    • status: open-accepted --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks