Add include localized file token

This commit is contained in:
GenevensiS
2025-03-11 02:31:22 +01:00
committed by GitHub
5 changed files with 31 additions and 3 deletions
@@ -177,6 +177,8 @@ function highlight_script($code) {
. "<span class='hl-num'>" . $matches[4] . "</span>)</span>";
} else if (preg_match("@^(if|then|else|for( each)?|in(?= )|do|div|mod|and|or|xor|not|rgb|rgba|from|to|min|max)\b(?!:)@",$code, $matches)) {
$ret .= "<span class='hl-kw'>" . $matches[0] . "</span>";
} else if (preg_match("@^(include localized file:)(.*)@",$code, $matches)) {
$ret .= "<span class='hl-key'>" . $matches[1] . "</span>" . $matches[2];
} else if (preg_match("@^(include file:)(.*)@",$code, $matches)) {
$ret .= "<span class='hl-key'>" . $matches[1] . "</span>" . $matches[2];
} else if (preg_match("@^([0-9][0-9.]*|true|false)@",$code, $matches)) {