UDL bug when operator and number suffix begins with same character

2013-07-11
2013-07-11
  • Nelson Scheja

    Nelson Scheja - 2013-07-11

    I just stumbled over a strange behaviour while setting up a User Defined Language:
    When I define an operator that is or begins with x (where x is an arbitrary character) and use x (or a string that begins with x) as number suffix, the number suffix coloring is removed. Or, differently expressed: When the beginning character of an operator is equal to the beginning character of a number suffix, the color of the suffix vanishes.
    Example:
    operator1: **
    suffix2: *d *b
    When I type 19*d, 19 is shown in number style, but *d is completely unstyled (same with 19*b).
    Thanks for all the work at UDL, btw! It has been really useful for me.

     
  • Loreia2

    Loreia2 - 2013-07-11

    Hi Nelson,

    I can easily reproduce this, but it will take some time until I fix it.
    Basically, numbers stop where operators start, but in this case we have a false operator match (just one start, instead of two).

    Will put this one in TODO folder.

    Thanks and BR,
    Loreia

     

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

Sign up for the SourceForge newsletter:





No, thanks