tree-sitter-ini 1.3.0

ini grammar for the tree-sitter parsing library
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 1 items with examples
  • Size
  • Source code size: 57.77 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 500.88 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • justinmk

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

  • Section name must appear on a line by itself.
  • Equals sign (=) and semicolon (;) are reserved characters and cannot appear in the key. Any whitespace surrounding the key is stripped.
  • Comments (; or #) must start at column 1. Trailing comments are not supported yet. #13
  • Duplicate names are not checked.
  • Line continuations (\) are not supported.
  • setting_value includes whitespace. #3. Should values exclude surrounding whitespace?
  • Quoted keys/values are not supported yet.
  • Escape sequences are not supported.

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