-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add a language support guide #49
Conversation
Warning Rate Limit Exceeded@morgante has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 17 minutes and 54 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe diff introduces changes related to feature flags for code compilation, adjustments to language grammars, snippet contexts, and the process of adding a new target language in Grit. It provides guidance on debugging grammars, regenerating matching grammars, and adding new target languages. Additionally, it outlines internal steps not required for contributors. Changes
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- CONTRIBUTING.md (1 hunks)
Additional comments: 5
CONTRIBUTING.md (5)
- 14-20: The explanation of feature flags is clear and informative. However, it might be beneficial to provide an example of how to enable a feature flag for new contributors who might not be familiar with the process.
Consider adding a brief example or code snippet demonstrating how to enable a feature flag, such as the
grit_alpha
orgrit_beta
flag, to make this section more accessible to newcomers.
- 29-29: The link provided to the "Tips and Tricks for a grammar author" guide is a valuable resource. However, it's essential to ensure that all external links are up-to-date and accessible.
Verification successful
The link to the "Tips and Tricks for a grammar author" guide is accessible and returns a 200 HTTP status code, confirming its availability. Therefore, the external link provided in the CONTRIBUTING.md file is up-to-date and accessible.
* 35-37: The explanation of snippet contexts is insightful, especially the SQL example provided. However, the description could be enhanced by explaining why snippet contexts are necessary and how they improve the matching process.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify the accessibility of the external link. curl -o /dev/null --silent --head --write-out '%{http_code}\n' https://github.com/tree-sitter/tree-sitter/wiki/Tips-and-Tricks-for-a-grammar-author | grep 200Length of output: 164
Consider expanding the explanation of snippet contexts to include more about their importance and impact on the matching process, potentially with more examples from different languages.
- 48-58: The steps for adding a new target language are well-structured and seem comprehensive. However, it's crucial to ensure that each step is clear and actionable, especially for contributors who might be new to the project or to language support in general.
Review the steps for clarity and actionability. Ensure that each step is described in sufficient detail for someone unfamiliar with the project to follow. It might also be helpful to link to additional resources or examples for complex steps.
- 59-70: The section on internal steps not required for contributors is a thoughtful inclusion, helping to clarify the scope of what contributors need to focus on. However, it's important to ensure that this distinction is clear and that contributors understand which parts of the process they are responsible for.
Consider adding a brief introductory sentence to this section to reiterate that these steps are handled internally and are not required for contributors. This can help prevent any confusion and ensure that contributors focus on the correct aspects of adding language support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 4
Configuration used: CodeRabbit UI
Files selected for processing (1)
- CONTRIBUTING.md (1 hunks)
Additional comments: 2
CONTRIBUTING.md (2)
- 37-37: There seems to be an unpaired symbol in the documentation.
Ensure that all symbols are correctly paired for clarity. If this is a formatting issue related to markdown or the display of code snippets, please disregard this comment.
- 69-69: There's an unpaired symbol in the documentation.
Ensure that all symbols are correctly paired for clarity. If this is a formatting issue related to markdown or the display of code snippets, please disregard this comment.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Open source instructions for adding languages
Summary by CodeRabbit