Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git

Updates regexes for xml syntaxes

Author Dave Jarvis <email>
Date 2026-02-18 21:41:16 GMT-0800
Commit 14016ba0bbfb382904290df0aea434ccd3cd57f0
Parent 3abf1bc
render/LanguageDefinitions.php
],
'html' => [
- 'comment' => '/()/s',
+ 'comment' => '/(<!--[\s\S]*?-->)/',
'string' => '/' . $str . '/',
'tag' => '/<\/?[!a-zA-Z0-9:-]+|\s*\/?>/',
'attribute' => '/[a-zA-Z0-9:-]+(?=\=)/',
],
'xml' => [
- 'comment' => '/()/s',
+ 'comment' => '/(<!--[\s\S]*?-->)/',
'string' => '/' . $str . '/',
'tag' => '/<\/?[!a-zA-Z0-9:-]+|\s*\/?>|<\?xml|\?>/',
'attribute' => '/[a-zA-Z0-9:-]+(?=\=)/',
],
'xslt' => [
- 'comment' => '/()/s',
+ 'comment' => '/(<!--[\s\S]*?-->)/',
'string' => '/' . $str . '/',
'keyword' => '/<\/?[a-zA-Z0-9-]*:?(?:accept|accumulator|' .
Delta 3 lines added, 3 lines removed