Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9121

    CrashNBurn
    Member

    When I do either of the following [x] Regex, Syntax Hilighters: __

    1) Win(Active|Exist)(.*
    2) Win(Active|Exist)(

    Then it works: __

    if(!winID:=WinExist(“ahk_class TTOTAL_CMD”))

    Yet, if I add one more brace to the regex: __

    3) Win(Active|Exist)(.*)

    It no longer matches: __

    if(!winID:=WinExist(“ahk_class TTOTAL_CMD”))

    But, without quotes inside the braces, it will match: __

    if(!winID:=WinExist(ahk_class TTOTAL_CMD))

    Interestingly, ahk_class would normally look like: ahk_class
    So a separate hilighter for keywords, doesn’t break the regex (#3), but having a string inside it does?

    Bug perhaps, I’m not sure, but it’s definitely strange.
    As there doesn’t seem to be a way to indicate a Word should only be hilighted if it has braces e.g. a function.

    #9126

    Yutaka Emura
    Keymaster

    Hi CrashNBurn,

    I reproduced this issue. If you uncheck “Double Quotation Marks” on the Highlight (2) tab of configuration properties, you won’t see this behavior. Currently, this is a specification, but I might consider improving the behavior in future versions. Thanks for your inputs!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.