Develop a partial syntax parser.
This commit is contained in:
parent
84cfc5863e
commit
b2e96b9a22
9 changed files with 721 additions and 257 deletions
|
|
@ -1,40 +1,36 @@
|
|||
.section-label {
|
||||
margin: var(--gap-2) 0;
|
||||
text-transform: uppercase;
|
||||
.structure-tree {
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: var(--gap-3);
|
||||
}
|
||||
|
||||
.error-list,
|
||||
.expr-list,
|
||||
.list-children {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--gap-2);
|
||||
}
|
||||
|
||||
.error-card,
|
||||
.expr-node {
|
||||
.syntax-node {
|
||||
border: 1px solid var(--border);
|
||||
background: var(--panel-raised);
|
||||
}
|
||||
|
||||
.error-card {
|
||||
padding: var(--gap-3);
|
||||
border-color: oklch(42% 0.05 28);
|
||||
background: var(--error-bg);
|
||||
}
|
||||
|
||||
.expr-node {
|
||||
padding: var(--gap-2);
|
||||
}
|
||||
|
||||
.error-card:hover,
|
||||
.expr-node:hover {
|
||||
.syntax-node:hover {
|
||||
border-color: var(--border-strong);
|
||||
background: var(--accent-bg);
|
||||
}
|
||||
|
||||
.syntax-error-node {
|
||||
border-color: oklch(42% 0.05 28);
|
||||
background: var(--error-bg);
|
||||
}
|
||||
|
||||
.node-header,
|
||||
.list-node-header {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: var(--gap-2);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.item-title,
|
||||
.node-kind {
|
||||
.node-kind,
|
||||
.error-title {
|
||||
color: var(--text);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 650;
|
||||
|
|
@ -42,7 +38,7 @@
|
|||
|
||||
.node-kind {
|
||||
display: inline-flex;
|
||||
min-width: 4.5rem;
|
||||
min-width: 7rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
|
|
@ -52,15 +48,65 @@
|
|||
font-size: var(--text-sm);
|
||||
}
|
||||
|
||||
.list-node-header {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: var(--gap-2);
|
||||
.item-meta {
|
||||
color: var(--text-muted);
|
||||
font-size: var(--text-xs);
|
||||
}
|
||||
|
||||
.list-children {
|
||||
.list-children,
|
||||
.concrete-error-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--gap-2);
|
||||
margin-top: var(--gap-2);
|
||||
padding-left: var(--gap-3);
|
||||
border-left: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.delimiter-row,
|
||||
.span-chip-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--gap-2);
|
||||
margin-top: var(--gap-2);
|
||||
}
|
||||
|
||||
.concrete-error {
|
||||
padding: var(--gap-2);
|
||||
border: 1px solid oklch(42% 0.05 28);
|
||||
background: oklch(21% 0.035 28);
|
||||
}
|
||||
|
||||
.span-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--gap-2);
|
||||
border: 1px solid var(--border);
|
||||
padding: var(--gap-1) var(--gap-2);
|
||||
color: var(--text-muted);
|
||||
background: var(--panel);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-xs);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.span-chip:hover {
|
||||
color: var(--text);
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-bg);
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 0.65rem;
|
||||
height: 0.65rem;
|
||||
flex: 0 0 auto;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.status-valid {
|
||||
background: oklch(72% 0.12 150);
|
||||
}
|
||||
|
||||
.status-invalid {
|
||||
background: var(--error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue