Open tdauth opened 2 months ago
<context attribute="Hex" lineEndContext="#pop" name="HexOrTextMacroArgument">
<LineContinue attribute="Hex" context="#stay"/>
<DetectChar attribute="Hex" context="#pop" char=" "/>
<DetectChar attribute="Hex" context="#pop" char="$"/> <!-- is vJass text macro argument -> ends with $ -->
</context>
We need a pop on any non hex character. So only the regex from above.
The formal definition says:
hex := '$'[0-9a-fA-F]+ | '0'[xX][0-9a-fA-F]+
from https://jass.sourceforge.net/doc/bnf.shtml
$A is valid hex.