#71 Incremental reparsing bug in 5.2


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
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.


  • Eddy De Greef

    Eddy De Greef - 2001-09-10

    Logged In: YES

    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

    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

    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,

    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

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

  • Alexander Mai

    Alexander Mai - 2001-10-04

    Logged In: YES

    Closed as requested.

  • Alexander Mai

    Alexander Mai - 2001-10-04
    • status: open-fixed --> closed-fixed

Log in to post a comment.