lib/rouge/lexers/cypher.rb in rouge-3.27.0 vs lib/rouge/lexers/cypher.rb in rouge-3.28.0

- old
+ new

@@ -43,10 +43,11 @@ end state :root do rule %r/[\s]+/, Text rule %r(//.*?$), Comment::Single + rule %r(/\*), Comment::Multiline, :multiline_comments rule %r([*+\-<>=&|~%^]), Operator rule %r/[{}),;\[\]]/, Str::Symbol # literal number @@ -100,9 +101,16 @@ end rule %r/"(\\\\|\\"|[^"])*"/, Str::Double rule %r/'(\\\\|\\'|[^'])*'/, Str::Single rule %r/`(\\\\|\\`|[^`])*`/, Str::Backtick + end + + state :multiline_comments do + rule %r(/[*]), Comment::Multiline, :multiline_comments + rule %r([*]/), Comment::Multiline, :pop! + rule %r([^/*]+), Comment::Multiline + rule %r([/*]), Comment::Multiline end end end end