| | ], |
| | '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|' . |