Skip to content

Prevent domain substitution from causing unnecessary ninja rebuilds #849

Closed
@csagan5

Description

@csagan5

The domain substitution python script currently replaces the domains in the whole content.

Would you consider limiting the replacement to non-comment lines?

I am not thinking of implementing mime-specific replacements (or parsing an AST) but simply to avoid lines that match ^(?!\s*//)(.*?).

The fix could either be to modify all regular expressions, or to inject this during the pattern compilation (and shift each replacement index by 2 e.g. <1> -> <3>` and so on).

Another implementation idea could be to check lines one by one, but it would be less efficient.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions