G33kDude / RichCode.ahk

A wrapper around a RichEdit control to provide code editing features.
MIT License
16 stars 8 forks source link

HTML regex fix #7

Closed G33kDude closed 6 years ago

G33kDude commented 6 years ago

From @kczx3 on December 23, 2017 20:36

For the HTML regex, you need the lazy modifier on the multi-line comments for them to highlight properly.

    static Needle := "
    ( LTrim Join Comments
        ODims)
        (\<\!--.*?--\>)        ; Multiline comments
        |(<(?:\/\s*)?)(\w+)   ; Tag
        |([<>\/])             ; Punctuation
        |(&\w+?;)             ; Entities
        |((?<=[>;])[^<>&]+)   ; Text
        |(""[^""]*""|'[^']*') ; String
        |(\w+\s*)(=)          ; Attribute
    )"

Copied from original issue: G33kDude/MultiTester.ahk#1

G33kDude commented 6 years ago

Resolved by c57a179b8d37e24d24382bd807233429e3122bfa