lib/rouge/lexers/xojo.rb in rouge-4.2.0 vs lib/rouge/lexers/xojo.rb in rouge-4.2.1
- old
+ new
@@ -35,10 +35,10 @@
state :root do
rule %r/\s+/, Text::Whitespace
rule %r/rem\b.*?$/i, Comment::Single
- rule %r([//'].*$), Comment::Single
+ rule %r((?://|').*$), Comment::Single
rule %r/\#tag Note.*?\#tag EndNote/mi, Comment::Preproc
rule %r/\s*[#].*$/x, Comment::Preproc
rule %r/".*?"/, Literal::String::Double
rule %r/[(){}!#,:]/, Punctuation