badness 0.1.0

An LSP, formatter, and linter for LaTeX
Documentation
# Parse concordance vs texlab (soft signal)

_Generated by `task parse-compat` (`tests/parse_compat.rs`). Do not edit by hand._

This is a **soft gauge, not a quality gate.** It projects badness's generic CST and texlab's semantic CST onto one coarse skeleton (commands, environments, groups, math, verbatim — names but not roles) and measures how structurally close they are. A divergence is never a bug by itself: it is either a deliberate, recorded deviation or an open question (badness models TeX surface syntax; texlab resolves semantics). AGENTS.md: measure against, never match.

- **Corpus:** corpus (`tests/corpus/*.tex`)
- **Skeleton similarity:** 69.1%  _(Dice coefficient over skeleton lines)_
- **File concordance:** 25.0%  (1/4 files identical after projection)
- **Intentional deviations:** 0  ·  **Unexplained divergences:** 3

## Unexplained divergences (triage queue)

Each is **either a parser modeling gap to fix** or a **deliberate deviation to record** (add it to `tests/parse_compat_allowlist.toml` with a reason). Leaving it here is the tension: diverging from texlab should be a conscious choice.

| File | Skeleton similarity |
|---|---|
| `edge.tex` | 52.9% |
| `environments.tex` | 68.4% |
| `math.tex` | 70.0% |