lib/rouge/lexers/igorpro.rb in rouge-2.1.0 vs lib/rouge/lexers/igorpro.rb in rouge-2.1.1
- old
+ new
@@ -261,11 +261,11 @@
state :root do
rule %r(//), Comment, :comments
rule /\b#{object}/ do |m|
- if m[0].downcase.match /function/
+ if m[0].downcase =~ /function/
token Keyword::Declaration
push :parse_function
elsif self.class.igorDeclarations.include? m[0].downcase
token Keyword::Declaration
push :parse_variables
@@ -279,10 +279,10 @@
token Keyword::Reserved
push :operationFlags
elsif self.class.hdf5Operation.include? m[0].downcase
token Keyword::Reserved
push :operationFlags
- elsif m[0].downcase.match /(v|s|w)_[a-z]+[a-z0-9]*/
+ elsif m[0].downcase =~ /(v|s|w)_[a-z]+[a-z0-9]*/
token Name::Builtin
else
token Name
end
end