Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only optionally activate comment evaluation (#310)
According to the discussion in #300, comment evaluation should be an opt-in feature, primarily because commenting is regularly used to simply disable broken code. Obviously, in such a use case, comment evaluation would be counterproductive. Now, comment evaluation can be enabled with a special comment: `<!-- xacro:eval-comments -->` or `<!-- xacro:eval-comments:on -->` It remains active for the following comments until: - the current XML tag's scope is left (or a new tag entered) - another tag or non-whitespace text is processed - it becomes explicitly disabled via: `<!-- xacro:eval-comments:off -->` Reverts 43ceb30, i.e. issues an error on failed expression evaluation again.
- Loading branch information
Showing
2 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters