Closed jeremiah-snee-openx closed 8 months ago
The project introduces extensive updates, focusing on integrating and refining the Tree-sitter language parser for tmux configuration files. Changes span across various bindings (C, Go, Node.js, Python, Rust, and Swift), build configurations, and the grammar logic itself, notably including the handling of set-window-option
directives. This collective effort enhances compatibility, standardizes coding styles, and extends support across different programming languages and platforms, ensuring a more robust and accessible tool for developers.
Files | Change Summary |
---|---|
.editorconfig , .gitattributes |
Introduced coding style rules and LF line endings; marked certain files as linguist-generated. |
Makefile , Package.swift |
Updated build configurations and dependencies for tree-sitter-tmux project. |
binding.gyp |
Updated dependencies and set C standard to c11 for tree_sitter_tmux_binding . |
bindings/.../tree-sitter-tmux.h , .../tmux.h |
Defined interfaces for the Tree-sitter tmux parser across various language bindings. |
bindings/.../binding.* , index.* , lib.rs |
Refactored and introduced functionality for interacting with the tmux grammar in multiple languages. |
grammar.js |
Added handling for set-window-option directives. |
src/tree_sitter/... |
Enhanced memory allocation, dynamic array management, and parser functionality in Tree-sitter. |
Objective | Addressed | Explanation |
---|---|---|
Add set-window-option /setw to grammar (#3) |
✅ |
🐰🎉
In the realm of code, where parsers dwell,
A rabbit hopped, casting a spell.
Tmux configs parsed, with ease and cheer,
Bringing developers, far and near.
Through files and bindings, the magic spread,
As the rabbit's work, ahead it led.
🌟 "To better tools," it whispered, bright,
"We hop together, into the light."
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Can you split this PR to many independent PRs? It looks only first commit is related to #3
Can you split this PR to many independent PRs? It looks only first commit is related to #3
Sure thing. Here is the PR with changes unrelated to #3 .
This PR has additional changes from tree-sitter cli generate command adding/ modifying files. This PR also had some commits to resolve PR Checkers.
@Freed-Wu Need to merge #7 first. Then I can resolve conflicts and reduce this PR to just fixing #3
Resolves #3
Adds
set-window-option
withsetw
to grammar regenerate bindingsupdate test
Summary by CodeRabbit
.editorconfig
and.gitattributes
for consistent coding styles and handling of line endings.Makefile
for buildingtree-sitter-tmux
project.tree-sitter-tmux
.Napi
for improved integration.