tdauth / wowr

Warcraft III: Reforged funmap World of Warcraft Reforged.
https://wowreforged.org
8 stars 0 forks source link

Kate highlighter highlights this part wrong which is generated by the map script optimizer #3042

Closed tdauth closed 1 month ago

tdauth commented 1 month ago
elseif F6B==27 then
return(LKB((RZB),2))
endif
else
call DisplayTimedTextToPlayer(Player(0),0,0,$A,"Invalid Bonus Type")
endif
return-1.
endfunction

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.

tdauth commented 1 month ago

See https://github.com/tdauth/syntaxhighlightings/issues/10