Skip to content

Commit

Permalink
Remove mistaken keywords in Mason lexer (#1268)
Browse files Browse the repository at this point in the history
There are three keywords recognised by the Mason lexer that are not Perl
keywords. This commit removes them.
  • Loading branch information
pyrmont committed Jul 22, 2019
1 parent c6ce559 commit 3207067
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rouge/lexers/mason.rb
Expand Up @@ -22,7 +22,7 @@ def self.detect?(text)

# Note: If you add a tag in the lines below, you also need to modify "disambiguate '*.m'" in file disambiguation.rb
TEXT_BLOCKS = %w(text doc)
PERL_BLOCKS = %w(args flags attr init once shared perl cleanup filter strings general_media shared_vars)
PERL_BLOCKS = %w(args flags attr init once shared perl cleanup filter)
COMPONENTS = %w(def method)

state :root do
Expand Down Expand Up @@ -113,4 +113,3 @@ def self.detect?(text)
end
end
end

0 comments on commit 3207067

Please sign in to comment.