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