Skip to content

Support string concatenation #65

@HuskyNator

Description

@HuskyNator

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions