Hello there everyone!!
I started learning PROLOG some weeks ago and so I decided to create its syntax highlighting for UltraEdit. I've almost finished it, I based my syntax highlighting "decisions" in those of Visual Prolog 5.2. The only thing I just can't resolve is how to highlight the variables.
In Visual Prolog 5.2 variables are "coloured" green, and a variable is any word starting with an upper case letter. For example:
Variable <- this is a variable
variable <- this would be a predicate
How can I define it? I guess the syntactic definition would be something like ([A-Z]+)([A-Za-z0-9]*)... but that has nothing to do with the syntax highlight definition... so I dunno how to do it!
Can anyone help me? Thanks a bunch!!!
PS: I can post it here once it's finished if anyone's interested!
Silvia "Pchi"
I started learning PROLOG some weeks ago and so I decided to create its syntax highlighting for UltraEdit. I've almost finished it, I based my syntax highlighting "decisions" in those of Visual Prolog 5.2. The only thing I just can't resolve is how to highlight the variables.
In Visual Prolog 5.2 variables are "coloured" green, and a variable is any word starting with an upper case letter. For example:
Variable <- this is a variable
variable <- this would be a predicate
How can I define it? I guess the syntactic definition would be something like ([A-Z]+)([A-Za-z0-9]*)... but that has nothing to do with the syntax highlight definition... so I dunno how to do it!
Can anyone help me? Thanks a bunch!!!
PS: I can post it here once it's finished if anyone's interested!
Silvia "Pchi"