Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git
render/LanguageDefinitions.php
],
'yaml' => [
- 'string' => '/' . $str . '/',
- 'comment' => '/(#[^\r\n]*)/m',
- 'attribute' => '/^(\s*[a-zA-Z0-9_-]+:)/m',
- 'number' => '/' . $float . '/',
+ 'string_interp' => '/' . $str . '/',
+ 'comment' => '/(#[^\r\n]*)/m',
+ 'attribute' => '/^(\s*[a-zA-Z0-9_-]+:)/m',
+ 'number' => '/' . $float . '/',
],
'properties' => [
- 'comment' => '/(^[ \t]*[#!].*)/m',
- 'attribute' => '/(^[ \t]*[^:=\s]+)(?=[ \t]*[:=])/m',
- 'string' => '/((?<=[=:])\s*.*)/',
+ 'comment' => '/(^[ \t]*[#!][^\r\n]*)/m',
+ 'attribute' => '/(^[ \t]*[^:=\s]+)(?=[ \t]*[:=])/m',
+ 'string_interp' => '/((?<=[=:])\s*[^\r\n]*)/',
],
'ini' => [
- 'comment' => '/(^[ \t]*[;#].*)/m',
- 'keyword' => '/(^\[[^\]]+\])/m',
+ 'comment' => '/(^[ \t]*[;#][^\r\n]*)/m',
+ 'keyword' => '/(^\[[^\]\r\n]+\])/m',
'attribute' => '/(^[ \t]*[a-zA-Z0-9_\.\-]+)(?=\s*=)/m',
- 'string' => '/((?<==)\s*.*)/',
+ 'string' => '/((?<==)\s*[^\r\n]*)/',
],
'toml' => [
'comment' => '/(#[^\r\n]*)/',
- 'keyword' => '/(^\[[^\]]+\])/m',
+ 'keyword' => '/(^\[[^\]\r\n]+\])/m',
'attribute' => '/(\b[a-zA-Z0-9_-]+\b)(?=\s*=)/',
'string' => '/(' . $str . '|"""[\s\S]*?"""|\'\'\'[\s\S]*?\'\'\')/',

Adds interpolation to configs

Author Dave Jarvis <email>
Date 2026-02-15 13:31:22 GMT-0800
Commit 000cde9730617394b5cc0dd1045e3d61ebface55
Parent 555d6b2
Delta 11 lines added, 11 lines removed