lib/rouge/lexers/ceylon.rb in rouge-3.5.1 vs lib/rouge/lexers/ceylon.rb in rouge-3.6.0

- old
+ new

@@ -29,28 +29,28 @@ nonempty|then|outer|assert|let)\b), Keyword rule %r((abstracts|extends|satisfies|super|given|of|out|assign)\b), Keyword::Declaration rule %r((function|value|void|new)\b), Keyword::Type - + rule %r((assembly|module|package)(\s+)) do groups Keyword::Namespace, Text push :import end - + rule %r((true|false|null)\b), Keyword::Constant - + rule %r((class|interface|object|alias)(\s+)) do groups Keyword::Declaration, Text push :class end rule %r((import)(\s+)) do groups Keyword::Namespace, Text push :import end - + rule %r("(\\\\|\\"|[^"])*"), Literal::String rule %r('\\.'|'[^\\]'|'\\\{#[0-9a-fA-F]{4}\}'), Literal::String::Char rule %r(".*``.*``.*"', String::Interpol rule %r(\.)([a-z_]\w*)) do groups Operator, Name::Attribute @@ -82,10 +82,10 @@ state :import do rule %r([a-z][\w.]*), Name::Namespace, :pop! rule %r("(\\\\|\\"|[^"])*"), Literal::String, :pop! end - + state :comment do rule %r([^*/]), Comment.Multiline rule %r(/\*), Comment::Multiline, :push! rule %r(\*/), Comment::Multiline, :pop! rule %r([*/]), Comment::Multiline