|
makena Apprentice
Joined: 11 Aug 2006 Posts: 100
|
Posted: Sat Aug 25, 2007 12:42 am
pattern coloring |
In the pattern box of a simple trigger the following is colored like it is correct...(only escaping the opening brackets, braces)
Code: |
^~[*]~[*]~[%d~(%d)h %d~(%d)m %d~(%d)v~] (%w) ~(Leader)$ |
but the trigger does not fire, unless you do it like this... (escaping the opening and closing braces, and brackets)
Code: |
^~[*~]~[*~]~[%d~(%d~)h %d~(%d~)m %d~(%d~)v~] (%w) ~(Leader~)$ |
just a problem with the coloring?
I assume it would be recommended you esacpe both opening and ending brackets/braces, but shouldn't the coloring reflect that? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Aug 25, 2007 1:13 am |
What coloring are you talking about? I wasn't aware that ZMud did any pattern syntax coloring (as far as I know, the syntax pretty printer only applies to the code in the trigger, not to the pattern of that trigger).
To answer your question, though, yes, you have to escape all special characters both opening and closing. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sat Aug 25, 2007 1:53 am |
Makena, are you talking about the pattern box in CMUD? The pattern box in Zmud does not do any coloring at all.
As for the coloring in the CMUD pattern box the color is not signifying that the pattern is correct. Only that the variables and wildcards are recognized. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
|
|