lib/rouge/lexers/perl.rb in rouge-0.2.8 vs lib/rouge/lexers/perl.rb in rouge-0.2.9
- old
+ new
@@ -53,11 +53,11 @@
rule %r(!(\\\\|\\!|[^!])*![egimosx]*)m, re_tok, :pop!
rule %r(\\(\\\\|[^\\])*\\[egimosx]*)m, re_tok, :pop!
rule %r({(\\\\|\\}|[^}])*}[egimosx]*), re_tok, :pop!
rule %r(<(\\\\|\\>|[^>])*>[egimosx]*), re_tok, :pop!
rule %r(\[(\\\\|\\\]|[^\]])*\][egimosx]*), re_tok, :pop!
- rule %r(\((\\\\|\\\)|[^\)])*\)[egimosx]*), re_tok, :pop!
+ rule %r[\((\\\\|\\\)|[^\)])*\)[egimosx]*], re_tok, :pop!
rule %r(@(\\\\|\\\@|[^\@])*@[egimosx]*), re_tok, :pop!
rule %r(%(\\\\|\\\%|[^\%])*%[egimosx]*), re_tok, :pop!
rule %r(\$(\\\\|\\\$|[^\$])*\$[egimosx]*), re_tok, :pop!
end
@@ -85,10 +85,10 @@
# balanced delimiters
rule %r(s{(\\\\|\\}|[^}])*}\s*), re_tok, :balanced_regex
rule %r(s<(\\\\|\\>|[^>])*>\s*), re_tok, :balanced_regex
rule %r(s\[(\\\\|\\\]|[^\]])*\]\s*), re_tok, :balanced_regex
- rule %r(s\((\\\\|\\\)|[^\)])*\)\s*), re_tok, :balanced_regex
+ rule %r[s\((\\\\|\\\)|[^\)])*\)\s*], re_tok, :balanced_regex
rule %r(m?/(\\\\|\\/|[^/\n])*/[gcimosx]*), re_tok
rule %r(m(?=[/!\\{<\[\(@%\$])), re_tok, :balanced_regex
rule %r(((?<==~)|(?<=\())\s*/(\\\\|\\/|[^/])*/[gcimosx]*),
re_tok, :balanced_regex