Create an UDL for my log files
-
Hi everyone,
I’d like to create an UDL for my log files.
I have two questions.- I want to do like this
How to modify open and close parameters for my UDL?
I tried to modify, but it don’t work.
- If I have two parametersm, how can I do?
like this
Thanks,
John - I want to do like this
-
UDL syntax doesn’t have a wildcard syntax like your
[*]
or other regex syntax, so that won’t work.If you move
"=== start"
and"=== end"
to the “code2 (spaces needed)”, then it will work how I think you intend, even when there are timestamps before the tags.Some of ivan-radic’s documentation implies that if you have a space-separated list in those folding boxes that it will only match the one in the same relative position (so
if
should only matchfi
in my screenshot)…But if you’ve got an imbalance (like you showed with a
fi
inside thestart
/end
pair), then it goes into “error handling” mode, and apparently assumes that since you don’t have a balance of open and close keywords, that you didn’t realize that open and close keywords need to be balanced, so it will try to mismatch to get better balance – it’s not perfect in that regard, but no error handling is, especially when it’s computers trying to deal with human input.But really, what it tells you when you see an open matched with the wrong close is that you’ve probably got a syntax error somewhere. Which could be helpful. (Unless
fi
has some other meaning thanb end-an-if
if it’s found alone between astart
andend
.)UDL is a simple alternative to writing your own lexer plugin, but it cannot give you all the functionality of a purpose-coded lexer plugin; there are limits as to the logic it has available to apply to your UDL.
-