preview.nvim/lua
Barrett Ruth 59419e6003 refactor(presets): simplify mermaid error parser
Problem: the inline `mermaid` error_parser looped over every line and
used the `Parse error on line N:` header as the message, losing the
useful `Expecting ..., got ...` token detail.

Solution: extract `parse_mermaid` alongside the other parse functions,
use a single `output:match` (mermaid's JISON parser stops at the first
error), and surface the `Expecting ..., got ...` line as the message.
2026-03-05 12:02:32 -05:00
..
preview refactor(presets): simplify mermaid error parser 2026-03-05 12:02:32 -05:00