Menu

#3105 wrong word separators

closed-fixed
5
2008-06-11
2008-06-02
Uwe
No

- open e.g. a LaTeX file, or create one

There you surely find lines like this one:

\usepackage{babel}

- double click on the word "babel" to get it highlighted

But since pre14, the whole sequence

"usepackage{babel}"

is highlighted. This is a regression that is not only annoying but makes jEdit nearly unusable for LaTeX files.

Discussion

  • daniel hahler

    daniel hahler - 2008-06-03

    Logged In: YES
    user_id=663176
    Originator: NO

    This is caused by the change in noWordSep (from only "\" to "@_-:*{}[]<>").

    The improved mode file (which includes this regression) has been submitted by Michael Schlotter (mschlotter) (see https://sourceforge.net/tracker/index.php?func=detail&aid=1928855&group_id=588&atid=300588\).

    Do you think there should get other characters removed from this setting, apart from "{" or "}"?

     
  • daniel hahler

    daniel hahler - 2008-06-03
    • labels: --> text area and syntax packages
    • assigned_to: nobody --> blueyed
    • summary: wrong word highlighting --> wrong word separators
     
  • Uwe

    Uwe - 2008-06-03

    Logged In: YES
    user_id=784127
    Originator: YES

    > Do you think there should get other characters removed from this setting, apart from "{" or "}"?

    Yes, also the brackets "[" , "]" need to be removed. (They are the counterpart to braces, holding optional arguments in TeX, the braces hold mandatory arguments.)
    So noWordSep must read

    "\@_-:*<>"

     
  • daniel hahler

    daniel hahler - 2008-06-11

    Logged In: YES
    user_id=663176
    Originator: NO

    Fixed in SVN r12830 for jEdit 4.3pre15.

    Thank you for this fix.

     
  • daniel hahler

    daniel hahler - 2008-06-11
    • status: open --> closed-fixed
     

Log in to post a comment.