Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30329
    Patrick C
    Participant

    I’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/2

    Issue:
    EmEditor stops matching ″.*?″ as soon as it encounters %%.*$, even though the regex match for ″.*?″ has not yet been completed.
    Syntax highlighter overlap conflict

    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.

    #30330
    Yutaka Emura
    Keymaster

    Your observation is correct: highlighting with regex allows overlapping.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.