A bunch of changes relating to the codemirror editor component #54

Merged
probablycorey merged 8 commits from editor-fixes into main 2026-01-13 23:00:38 +00:00
Showing only changes of commit 04c2137fe2 - Show all commits

View File

@ -1,4 +1,4 @@
const DEBUG = process.env.DEBUG || false
import { isDebug } from '#utils/utils'
export type Token = {
type: TokenType
@ -169,11 +169,11 @@ export class Scanner {
from,
to,
},
valueTokens.has(type) ? { value: this.input.slice(from, to) } : {},
),
valueTokens.has(type) ? { value: this.input.slice(from, to) } : {}
)
)
if (DEBUG) {
if (isDebug()) {
const tok = this.tokens.at(-1)
console.log(`≫ PUSH(${from},${to})`, TokenType[tok?.type || 0], '—', tok?.value)
}