UDL (User-defined language) request 4: variable string matching (HEREDOC)
-
How to emphasize a HEREDOC syntax?
For those unaware of this term, it is a way to wrap long lines. The first line should end with
<<Name
, whereName
is any string, then some lines follow, and the last line shall beName
. The firstName
can be highlighted with “prefix” syntax. The trick here is to highlight the secondName
.Example
ADD( <<END 1, 2 ) END
is equivalent to
ADD(1, 2)