Skip to content

Commit

Permalink
merge fix: escape macro
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Jul 24, 2024
1 parent 06779d3 commit 4178cdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libslic3r/PlaceholderParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2235,10 +2235,10 @@ namespace client

text_block = *(
text [_val+=_1]
// // escape character: can escape '[' and '{' or is printed as-is.
// | (no_skip[raw["\\["]] [_val = _val + "["])
// | (no_skip[raw["\\{"]] [_val = _val + "{"])
// | (no_skip[raw["\\"]] [_val = _val + "\\"])
// escape character: can escape '[' and '{' or is printed as-is.
| (no_skip[raw["\\["]] [_val = _val + "["])
| (no_skip[raw["\\{"]] [_val = _val + "{"])
| (no_skip[raw["\\"]] [_val = _val + "\\"])
// Allow back tracking after '{' in case of a text_block embedded inside a condition.
// In that case the inner-most {else} wins and the {if}/{elsif}/{else} shall be paired.
// {elsif}/{else} without an {if} will be allowed to back track from the embedded text_block.
Expand Down

0 comments on commit 4178cdb

Please sign in to comment.