Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate decoration state to repo warnings, fixes #10601
- Loading branch information
Showing
1 changed file
with
10 additions
and
2 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
just writing some initial notes here while looking at the code.
we may spare a function call by replacing
chr(27)
with"\033"
and the string concatenation by placing it directly into the pattern string as\033
, and dropping a slash when not needed:this covers only
ESC [ m
, not really profound with this, but it seems there is more,printf \\033c
comes to mind.the
u
UTF-8 modifier:I don't know iflooks like it sets PCRE_UCP option, if so:which then would be an issue. tend to consider binary mode (or unset PCRE_UCP in the pattern). binary mode might be more optimized thought.