Skip to content

Commit 6c5414a

Browse files
committed
Fix builtins missing keywords issue in Matlab
1 parent 1687d63 commit 6c5414a

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

lib/rouge/lexers/matlab/builtins.rb

-11
This file was deleted.

lib/rouge/lexers/matlab/keywords.rb

+4-2
Large diffs are not rendered by default.

tasks/builtins/matlab.rake

+5-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,14 @@ module Rouge
4141
yield ""
4242
yield "module Rouge"
4343
yield " module Lexers"
44-
yield " def Matlab.builtins"
45-
yield " @builtins ||= Set.new #{keywords.inspect}"
44+
yield " class Matlab"
45+
yield " def self.builtins"
46+
yield " @builtins ||= Set.new #{keywords.inspect}"
47+
yield " end"
4648
yield " end"
4749
yield " end"
4850
yield "end"
51+
yield ""
4952
end
5053
end
5154
end

0 commit comments

Comments
 (0)