#
A_HLGN = /(?:(?:<>|<|>|\=|[()]+)+)/
A_VLGN = /[\-^~]/
- C_CLAS = '(?:\([^)]+\))'
- C_LNGE = '(?:\[[^\[\]]+\])'
- C_STYL = '(?:\{[^}]+\})'
+ C_CLAS = '(?:\([^")]+\))'
+ C_LNGE = '(?:\[[^"\[\]]+\])'
+ C_STYL = '(?:\{[^"}]+\})'
S_CSPN = '(?:\\\\\d+)'
S_RSPN = '(?:/\d+)'
A = "(?:#{A_HLGN}?#{A_VLGN}?|#{A_VLGN}?#{A_HLGN}?)"
'p{color:(red)}. text' => '<p>text</p>',
'p{color:red;invalid:blue}. text' => '<p style="color:red;">text</p>',
'p{invalid:blue;color:red}. text' => '<p style="color:red;">text</p>',
- 'p{color:"}. text' => '<p>text</p>',
+ 'p{color:"}. text' => '<p>p{color:"}. text</p>',
}, false)
end