-
Notifications
You must be signed in to change notification settings - Fork 0
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
No conversion when delimiter occurs elsewhere too #19
No conversion when delimiter occurs elsewhere too #19
Conversation
… pair) to a particular occurrence of a symbol
…miter also occurs elsewhere in the grammar (so it doesn't uniquely delineate the beginning of the production)
…ly non-word chars)
…e added to too many patterns
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.
Additional comments
rascal-textmate-core/src/main/rascal/lang/rascal/grammar/analyze/Delimiters.rsc
Outdated
Show resolved
Hide resolved
rascal-textmate-core/src/main/rascal/lang/textmate/Conversion.rsc
Outdated
Show resolved
Hide resolved
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.
LGTM
rascal-textmate-core/src/main/rascal/lang/rascal/grammar/analyze/Delimiters.rsc
Show resolved
Hide resolved
rascal-textmate-core/src/main/rascal/lang/rascal/grammar/analyze/Delimiters.rsc
Show resolved
Hide resolved
rascal-textmate-core/src/main/rascal/lang/textmate/Conversion.rsc
Outdated
Show resolved
Hide resolved
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.
Thanks!
This PR disables the conversion of a multi-line production to a multi-line rule (begin/end pattern) when that production begins with a delimiter that also occurs in other unrelated productions (e.g.,
>
in Rascal's own grammar). Single-line rules for multi-line productions are still generated (e.g., single-line strings in Rascal are still supported). To do this, this PR:Furthermore, this PR:
execWithCode
)