Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/valdezfomar/tree-sitter-format-string

Curly brace style string formatting grammar for tree-sitter
https://github.com/valdezfomar/tree-sitter-format-string

parser python rust tree-sitter tree-sitter-grammar tree-sitter-highlight tree-sitter-parser

Last synced: 4 months ago
JSON representation

Curly brace style string formatting grammar for tree-sitter

Awesome Lists containing this project

README

        

# tree-sitter-format-string

[![CI][ci]](https://github.com/ValdezFOmar/tree-sitter-format-string/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)

A tree-sitter parser for format strings using curly braces (`{}`),
like python's `str.format` method or rust's `format!` macro.

## References

- [Rust format syntax](https://doc.rust-lang.org/std/fmt/#syntax)
- [Python format syntax](https://docs.python.org/3/library/string.html#format-string-syntax)
- Other languages?

[ci]: https://img.shields.io/github/actions/workflow/status/ValdezFOmar/tree-sitter-format-string/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-format-string?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-format-string?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-format-string?logo=pypi&logoColor=ffd242