tree-sitter-ini
tree-sitter-ini copied to clipboard
tree-sitter grammar/parser for INI files
tree-sitter-ini
This grammar implements the INI format.
Overview
Example INI file:
[section name]
some_key = some_value
another-key = another value
[another section]
# a comment
some_key = some_value
another-key = another value
See test/corpus/ for more examples.
Notes
- Comments must start at column 1. Trailing comments are not supported. (Should they be?)
Known issues
-
setting_value
includes whitespace. Should values exclude surrounding whitespace?
Reference
- https://github.com/textmate/ini.tmbundle
Release
Steps to perform a release:
- Bump and tag the version (choose
patch
/minor
/major
as appropriate).npm version patch -m "release %s"
- Bump to prerelease, without creating a tag .
npm version --no-git-tag-version prerelease --preid dev && git add package*.json && git commit -m bump
- Push.
git push --follow-tags
- Release the tagged commit: https://github.com/justinmk/tree-sitter-ini/releases/new