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

- old
+ new

@@ -6,11 +6,11 @@ class Xojo < RegexLexer title "Xojo" desc "Xojo" tag 'xojo' aliases 'realbasic' - filenames '*.xojo_code', '*.xojo_window', '*.xojo_toolbar', '*.xojo_menu' + filenames '*.xojo_code', '*.xojo_window', '*.xojo_toolbar', '*.xojo_menu', '*.xojo_image', '*.rbbas', '*.rbfrm', '*.rbmnu', '*.rbres', '*.rbtbar' keywords = %w( addhandler aggregates array asc assigns attributes begin break byref byval call case catch class const continue char ctype declare delegate dim do downto each else elseif end enum event exception @@ -28,18 +28,18 @@ single string structure variant uinteger uint8 uint16 uint32 uint64 ushort windowptr wstring ) operator_words = %w( - addressof and as in is isa mod not or xor + addressof weakaddressof and as in is isa mod not or xor ) state :root do rule %r/\s+/, Text::Whitespace rule %r/rem\b.*?$/i, Comment::Single - rule %r(//.*$), Comment::Single - rule %r/\#tag Note.*\#tag EndNote/m, Comment::Preproc + 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