- Posted by
- Thanks so much. JohnBPosted in Syntax Highlighting
-   Topics
-   Views
- JohnBarrat
Nov 21, 2017
- Thanks - It's clear looking at other discussions that to generate a regex for aliases, i.e. any word not in the list "bit|byte|word|dword|float|sbyte|sword|sdword" is not going to be straight forward. I have tried expressions like ^bit|^Byte and that fails and attempted to use the negative lookah...Posted in Syntax Highlighting
-   Topics
-   Views
- JohnBarrat
Nov 21, 2017
- I have one more question. Variables take the form: Dim VarName As word Aliases can take the form: Dim VarName As VarName This is the expression I have written to find just the variables. ^[\t ]*Dim[\t ]+([a-z_][0-9a-z_]*)[\t ]+as[t\ ]+[bit|byte|word|dword|float|sbyte|sword|sdword]* This returns all...Posted in Syntax Highlighting
-   Topics
-   Views
- JohnBarrat
Nov 20, 2017
- Thank you very much, it is now looking much more like what I am looking for. I hadn't realized the keywords were case sensitive and explains why everything I tried seemed at odds to what I was seeing when I tried it in the RegExr tester. Hopefully, I won't have to bother you again now I have set ...Posted in Syntax Highlighting
-   Topics
-   Views
- JohnBarrat
Nov 19, 2017
- Thank you very much for your quick response and looking through your explanation it is starting to make sense. However, I added it to my uew file and saved it but I am getting nothing back when I run it against a bit of sample code. This is the header of my uew file. I tried ^[t\ ] ahead of other T...Posted in Syntax Highlighting
-   Topics
-   Views
- JohnBarrat
Nov 19, 2017
- I am very new to regular expressions and have just spent a couple of days trying to get to grips with the concept which is very different from languages I have used before. I still haven't discovered a way to write a regexp to extract specific data from the following type of expression: Proc Loa...Posted in Syntax Highlighting
-   Topics
-   Views
- JohnBarrat
Nov 19, 2017