Viewing 2 posts - 1 through 2 (of 2 total)
- AuthorPosts
- June 26, 2025 at 4:36 am #30329
Patrick C
ParticipantI’ve posted this before, but it might have been overlooked as it was in a mixed up context.
The syntax highlighting issue arises when a regex uses quantifiers, i.e. * or + or {3,} etc.
Example:
Two regex matches are active, all string and comment matches are disabled.″.*?″
regex match 1/2
%%.*$
regex match 2/2Issue:
EmEditor stops matching ″.*?″ as soon as it encounters %%.*$, even though the regex match for ″.*?″ has not yet been completed.
Would this be difficult to fix?
Because it is a serious limitation. One could write significantly more accurate syntax highlighters than what is currently possible.June 26, 2025 at 4:07 pm #30330Yutaka Emura
KeymasterYour observation is correct: highlighting with regex allows overlapping.
- AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.