lib/rouge/lexers/elm.rb in rouge-3.23.0 vs lib/rouge/lexers/elm.rb in rouge-3.24.0
- old
+ new
@@ -76,15 +76,15 @@
rule %r/[^\\"]+/, Str::Double
rule %r/\\"/, Str::Escape
rule %r/"/, Str::Double, :pop!
end
- # Multiple line string with tripple double quotes, e.g. """ multi """
+ # Multiple line string with triple double quotes, e.g. """ multi """
state :multiline_string do
- rule %r/\s*"""/, Str, :pop!
- rule %r/.*/, Str
- rule %r/\s*/, Str
+ rule %r/\\"/, Str::Escape
+ rule %r/"""/, Str, :pop!
+ rule %r/[^"]+/, Str
+ rule %r/"/, Str
end
-
end
end
end