lib/rouge/lexers/make.rb in rouge-3.5.1 vs lib/rouge/lexers/make.rb in rouge-3.6.0
- old
+ new
@@ -9,13 +9,14 @@
tag 'make'
aliases 'makefile', 'mf', 'gnumake', 'bsdmake'
filenames '*.make', 'Makefile', 'makefile', 'Makefile.*', 'GNUmakefile'
mimetypes 'text/x-makefile'
- bsd_special = %w(
- include undef error warning if else elif endif for endfor
- )
+ # TODO: Add support for special keywords
+ # bsd_special = %w(
+ # include undef error warning if else elif endif for endfor
+ # )
def initialize(opts={})
super
@shell = Shell.new(opts)
end
@@ -67,10 +68,10 @@
goto :block_body
end
end
state :block_body do
- rule %r/(\t[\t ]*)([@-]?)/ do |m|
+ rule %r/(\t[\t ]*)([@-]?)/ do
groups Text, Punctuation
push :shell_line
end
rule(//) { @shell.reset!; pop! }