-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
It'd be very useful if anchors of strings could be used in strings or combined with other strings, as my entire reason for using anchors (and yaml) were the need for reused & built-up strings.
Example:
forbidden: &forbidden '@\s\[\]\(\)\\'
escaped: &escaped '\\\[|\\\]|\\\(|\\\)|\\\@|\\\\'
text: '([^*forbidden]|*escaped)+'
Expected:
forbidden: '@\s\[\]\(\)\\'
escaped: '\\\[|\\\]|\\\(|\\\)|\\\@|\\\\'
text: '([^@\s\[\]\(\)\\]|\\\[|\\\]|\\\(|\\\)|\\\@|\\\\)+'
Or something like:
a: &a a
b: &b b
c: *a '|' *c # => c: 'a | b'
fabioaraujopt, swallace21, chtnverma, eeowaa, rybakit and 12 moreyvele, lucaesposto and barzan-hayati
Metadata
Metadata
Assignees
Labels
No labels