Blank Lines and Whole Words in UDL 2.1
Hello, I’ve been working to get UDL set up for Audit Command Language (ACL) files. I am running into a couple of issues with the comments. The way comments work in ACL is:
COMMENT on a line by itself - starts a block comment that is ended by a blank line
COMMENT + (any string)- starts a line comment that is ended by EOL
Also, ACL supports abbreviations for commands so COM can be used in place of COMMENT. I cannot seem to find a way to differentiate between the two or to use a blank line as an END to the block comment.
The other issue I have is that UDL does not allow you for force WHOLE WORD matches and therefore END and APPEND will trigger delimiters.
I am sorry if this has been asked before. I have searched off and on for a few days and could not find a solution to this issue. Thanks in advance!
To be honest, if I understand correctly, I don’t think UDL can do what you want to achieve.
Possible solution might be using scripting language plugins like python script and writing
your own lexer or using it together with pygments and/or using lua script and scintillua.
Thanks for the feedback. I had a feeling I was running up against the edge of UDL’s capabilities. I’ll have to explore the python scripting approach or some other workarounds for now.