The CSV grammar used by Blue CSV.
file— top-level.row— one record.field_1..field_10— positional wrappers for the first ten cells in a row. Each wraps aquoted_fieldorunquoted_field. Positional nodes drive rainbow-column highlighting.field_overflow— every cell past the tenth in a row, same wrapper shape.quoted_field— double-quoted, supports escaped quotes ("") and embedded newlines.unquoted_field— everything else up to the next,,\r, or\n.
npm install
npm run generate
npm testtree-sitter-grammars/tree-sitter-csv is a generic CSV grammar with a single field node type. This one diverges by emitting field_1..field_10 / field_overflow so rainbow-column highlighting works through tree-sitter queries alone, without runtime column counting.
MIT. See the LICENSE in the repo root.