style: format the Razor scanner and use spacing tokens in SVN working copies (#7505)

Fixes pnpm format:check and the spacing-scale test on main: two for headers in the Razor scanner are formatted as oxfmt expects, and the SVN Working Copies panel uses --space-* tokens for its gaps (same values, no visible change).
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-12-02 18:18:43 +08:00
1 джерело bc86836492
коміт 0c506fa479
2 files changed
+4 -4

No files matched your search

+2 -2
Переглянути файл
@@ -260,7 +260,7 @@ class Scanner {
return end < 0 ? n : end + quotes;
}
if (!verbatim && quotes === 2) return j + 2;
for (j++; j < n; ) {
for (j++; j < n;) {
const c = s[j];
if (verbatim) {
if (c === '"') {
@@ -304,7 +304,7 @@ class Scanner {
const s = this.s,
n = this.n;
let depth = 0;
for (let i = start; i < n; ) {
for (let i = start; i < n;) {
const c = s[i];
if (this.startsString(i)) {
i = this.skipString(i);
+2 -2
Переглянути файл
@@ -22,7 +22,7 @@
.fields {
display: grid;
grid-template-columns: max-content 1fr;
gap: 2px 16px;
gap: var(--space-0-5) var(--space-4);
margin: 0 0 6px;
}
.field {
@@ -44,5 +44,5 @@
.actions {
display: flex;
flex-wrap: wrap;
gap: 4px 16px;
gap: var(--space-1) var(--space-4);
}