justinmk / tree-sitter-ini

tree-sitter grammar/parser for INI files
Apache License 2.0
20 stars 10 forks source link
tree-sitter tree-sitter-parser

tree-sitter-ini

This grammar implements the INI format.

Overview

Example INI file:

[section 1]
some_key = some_value
another-key = another value

[another section]
# Keys may contain whitespace.
key 1 = value 1
# Value may be empty.
key_2 =

See test/corpus/ for more examples.

Notes

Reference

Release

Steps to perform a release:

  1. Bump and tag the version (choose patch/minor/major as appropriate).
    npm version patch -m "release %s"
  2. Bump to prerelease, without creating a tag .
    npm version --no-git-tag-version prerelease --preid dev && git add package*.json && git commit -m bump
  3. Push.
    git push --follow-tags
  4. Release the tagged commit: https://github.com/justinmk/tree-sitter-ini/releases/new