Mark all strings as atomic #325
Labels
No labels
Compat/Breaking
Kind
Bad merge
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
New language
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mergiraf/mergiraf#325
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Quoting @ada4a in #210:
This can be solved by marking string nodes as being atomic, to prevent them from being analyzed into "opening quote, contents, closing quote".
We need to consider the implications for matching carefully, since marking strings as atomic will tend to decrease the depth of some trees, making matching more conservative.
Strings not being marked as atomic is the source of bugs when the string contents are not exposed as public nodes by the grammar, which happens surprisingly often (in YAML #380, but also earlier in Go).