Dave Jarvis' Repositories

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

Changes colours for config files

Author Dave Jarvis <email>
Date 2026-02-15 13:33:40 GMT-0800
Commit c7f8c97c57ee1588445f15bd1ca7c54735ec5f3b
Parent 000cde9
Delta 5 lines added, 5 lines removed
render/LanguageDefinitions.php
],
'yaml' => [
- 'string_interp' => '/' . $str . '/',
'comment' => '/(#[^\r\n]*)/m',
- 'attribute' => '/^(\s*[a-zA-Z0-9_-]+:)/m',
+ 'variable' => '/^(\s*[a-zA-Z0-9_-]+:)/m',
+ 'string_interp' => '/((?<=:)\s*[^\r\n]*)/',
'number' => '/' . $float . '/',
],
'properties' => [
'comment' => '/(^[ \t]*[#!][^\r\n]*)/m',
- 'attribute' => '/(^[ \t]*[^:=\s]+)(?=[ \t]*[:=])/m',
+ 'variable' => '/(^[ \t]*[^:=\s]+)(?=[ \t]*[:=])/m',
'string_interp' => '/((?<=[=:])\s*[^\r\n]*)/',
],
'ini' => [
'comment' => '/(^[ \t]*[;#][^\r\n]*)/m',
'keyword' => '/(^\[[^\]\r\n]+\])/m',
- 'attribute' => '/(^[ \t]*[a-zA-Z0-9_\.\-]+)(?=\s*=)/m',
+ 'variable' => '/(^[ \t]*[a-zA-Z0-9_\.\-]+)(?=\s*=)/m',
'string' => '/((?<==)\s*[^\r\n]*)/',
],
'toml' => [
'comment' => '/(#[^\r\n]*)/',
'keyword' => '/(^\[[^\]\r\n]+\])/m',
- 'attribute' => '/(\b[a-zA-Z0-9_-]+\b)(?=\s*=)/',
+ 'variable' => '/(\b[a-zA-Z0-9_-]+\b)(?=\s*=)/',
'string' => '/(' . $str . '|"""[\s\S]*?"""|\'\'\'[\s\S]*?\'\'\')/',
'boolean' => '/\b(true|false)\b/',