Conflicting keyword strings

Conflicting keyword strings

8
NewbieNewbie
8

    Oct 12, 2005#1

    Hi,

    I'm having a problem with UE's syntax highlighting differentiating between a keyword for one color and keywords which are character components of the first keyword.

    For example, in S+, values are assigned by "<-" (ie myvar<-7 )

    I'm trying to highlight that assignment syntax "<-" in one color, but the fact that I have keyword definitions for mathematical operators such as "<" and "-" seems to be taking precedent.

    In other words, I want "<-" to be green, while I want both "<" and "-" to be red when they occur alone. However, I'm getting all instances of "<-" being highlighted red instead of green.

    Thanks!

    6,675585
    Grand MasterGrand Master
    6,675585

      Oct 12, 2005#2

      That's not possible. < and - are also word delimiters and so <- are 2 words not 1. It's not possible to define a color for a string of words, except with marker characters. Using of marker characters is a possible workaround.

      /Marker Characters = "<-"

      But this solution has a big disadvantage, which I think will not make it practicable. All characters between a < and a - will be highlighted with the color of <-. Here is an example, what will happen:

      myvar<-7
      myvar<25
      myvar<25 && (myvar2-25)

      To highlight <- and single < and - differently, the only solution would be to remove < and - from the list of delimiter characters, but this will result in much higher highlighting problems.
      Best regards from an UC/UE/UES for Windows user from Austria

      8
      NewbieNewbie
      8

        Oct 16, 2005#3

        Thank you!