feat(editor): show column hints for INSERT values

This commit is contained in:
Freedom authored and GitHub committed 2026-07-13 00:39:36 +08:00
1 parent ff570d5268
commit 86dad5db9f
18 files changed
+1076 -5

No files matched your search

@@ -72,6 +72,16 @@ export function tokenizeSqlSemantic(input: string): SqlSemanticToken[] {
continue;
}
if (ch === "$") {
const marker = /^\$[A-Za-z_0-9]*\$/.exec(input.slice(start))?.[0];
if (marker) {
const closing = input.indexOf(marker, start + marker.length);
index = closing < 0 ? input.length : closing + marker.length;
tokens.push(token("string", input.slice(start, index), start, index, depth, marker));
continue;
}
}
if (ch === '"') {
index = readQuoted(input, start, '"', '"');
tokens.push(token("quoted_identifier", input.slice(start, index), start, index, depth, '"'));