Dave Jarvis' Repositories

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

Changes syntax colours

AuthorDave Jarvis <email>
Date2026-02-14 19:20:23 GMT-0800
Commit1d0760172fe59f02ab0529b3af552350cbc1f5ad
Parentf84e5d3
render/Highlighter.php
$delim = $pattern[0];
$inner = substr($pattern, 1, strrpos($pattern, $delim) - 1);
- $patterns[] = "(?P<$name>$inner)";
+ $patterns[] = "(?P<punctuation>[\\{\\}\\(\\)\\[\\]\\;\\,])";
}
repo.css
}
-.blob-code {
- background: #2d2a2e;
- color: #fcfcfa;
- font-family: 'SFMono-Regular', Consolas, 'Andale Mono', 'Ubuntu Mono', monospace;
- padding: 16px;
- overflow-x: auto;
- line-height: 1.5;
- tab-size: 4;
-}
-
.hl-keyword {
- color: #ff6188;
+ color: #ff7b72;
}
.hl-comment {
- color: #727072;
+ color: #8b949e;
font-style: italic;
}
.hl-string,
.hl-string_interp {
- color: #ffd866;
+ color: #7ee787;
}
.hl-variable {
- color: #fc9867;
+ color: #ffa657;
}
.hl-number {
- color: #ab9df2;
+ color: #d29922;
font-weight: bold;
+}
+
+.hl-punctuation {
+ color: #c9d1d9;
}
Delta10 lines added, 16 lines removed, 6-line decrease