Skip to content
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

Adjust string rules to flatten parser tree to one node per string lit… #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nordlow
Copy link
Contributor

@nordlow nordlow commented Oct 1, 2024

…eral instance and enforce suffix _literal for all string literal rules.

This makes D's grammar harmonize more with tree-sitter-c and tree-sitter-cpp.

Will regenerate parser if and when this gets approved.

It might be more suitable to just name regular_string_literal for string_literal as these exist in tree-sitter-c and tree-sitter-cpp.

Note that _any_string_literal corresponds to tree-sitter-cpp's _string.

@nordlow nordlow force-pushed the flat-string-parse-tree branch 2 times, most recently from 4f27249 to 5d5016b Compare October 1, 2024 14:44
…eral instance and enforce suffix _literal for all string literal rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant