Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#71 Incremental reparsing bug in 5.2

release
closed-fixed
Eddy De Greef
None
5
2001-10-04
2001-09-09
Anonymous
No

These are the first lines of the .nedit file (only
meant as example)

1 nedit.shellCommands: \ : :
6 sort::o:EX:\n\ 7 sort\n\ 8 number lines::n:AW:\n\ 9 nl -ba\n\ 10 make:Alt+Z:m:W:\n\ 11 make\n\ 12 expand::p:EX:\n\ 13 expand\n\ 14 unexpand::u:EX:\n\ 15 unexpand\n

The whole 15 lines are the pattern called Resource,
where the
line continuation, i.e. \\\n, is a subpattern of
Resource called Resource Wrap and colored bold
steelblue.
But if you just insert a character, e.g. rename expand
in line 12 to exxpand,
then NEdit does not see that the last backslash in
line 11 is a subpattern,
and starts a new Resource pattern coloring exxpand
bold brown.
Moreover, this is not cured by undo.
Increasing line distance to two only shifts the
problem one line above.

Discussion

  • Eddy De Greef
    Eddy De Greef
    2001-09-10

    Logged In: YES
    user_id=73597

    I've uploaded a patch (#460229) that should
    solve this problem. Please give it a try.
    If it doesn't have any side effects, I'll
    commit it in a few days.

     
  • Scott Tringali
    Scott Tringali
    2001-09-10

    • milestone: --> 103147
    • assigned_to: nobody --> edg
     
  • Eddy De Greef
    Eddy De Greef
    2001-09-14

    Logged In: YES
    user_id=73597

    Patch #460229 is committed to the BETA-5.2 branch,
    together with a fix for bug #460859 (the are related).

    Can someone confirm that this problem is indeed solved?

     
  • Scott Tringali
    Scott Tringali
    2001-09-14

    • milestone: 103147 --> release
    • status: open --> open-fixed
     
  • Scott Tringali
    Scott Tringali
    2001-09-14

    Logged In: YES
    user_id=11321

    Works fine by me. I edit a lot of X resource files, so I'll
    be beating on this one over the next few days. Thanks,
    Eddy!

    FYI, I checked against 5.1.1, and the problem wasn't there.
    It was introduced in 5.2.

     
  • Eddy De Greef
    Eddy De Greef
    2001-10-04

    Logged In: YES
    user_id=73597

    No more problems have been reported lately,
    so I guess this can be closed.

     
  • Alexander Mai
    Alexander Mai
    2001-10-04

    Logged In: YES
    user_id=15180

    Closed as requested.

     
  • Alexander Mai
    Alexander Mai
    2001-10-04

    • status: open-fixed --> closed-fixed