#108 FIXED IN SVN: Editor doesn't detect end of words correctly

closed-fixed
None
5
2012-11-21
2011-11-04
No

The editor considers '.' as the end of a word, but not '$'. Given the R syntax, it should be the contrary. This is annoying when double-clicking on a name, or when using Ctrl+arrows.

Is this a bug in RKward or in Kate?

Discussion

    • assigned_to: nobody --> tfry
    • summary: Editor doesn't detect end of words correctly --> FIXED IN SVN: Editor doesn't detect end of words correctly
    • status: open --> open-fixed
     
  • Hi,

    > Is this a bug in RKward or in Kate?

    it's 50/50. The portion of the bug that '.' is not seen as a delimiter had already been fixed in RKWard for quite some time. If this doesn't work for you, this means kate is still using an older version of the R highlighting, most likely the one shipped with kdelibs. In fact, it looks like I forgot to sync the fix to kdelibs, back then.

    Regarding '$', that should be a delimiter, indeed, but was not, yet. I've fixed that in our SVN. I have also pushed both changes to kdelibs.

    Regards
    Thomas

     
  • Thanks!

    > The portion of the bug that '.' is not seen as a delimiter had
    > already been fixed in RKWard for quite some time.
    You mean "that . is seen as a delimiter", don't you? ;-)

     
  • > You mean "that . is seen as a delimiter", don't you? ;-)

    Yes, of course... the dot was not not seen as a delimiter.

     
  • I'm using revision 4015, and $ is still not detected as a separator. Do I need kdelibs from SVN too? Just to check the fix works.

     
  • 4015 is exactly one revision too early. Was fixed in r4016. Note also, that most distribution packages (including our daily builds!) do not include the highlighting definition, to avoid clashes. Installing from source should work, though.

    It seems you can even download the new highlighting definition from the kate website, by now. Open a script editor, go to Settings->Configure Editor->Open/Save->Modes & Filetypes and click the "Download Highlighting Files..."-button. You want "R Script", version 2.04.

    Regards
    Thomas

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