Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0538aee

Browse files
committedOct 26, 2023
Fix builtins missing keywords issue in Matlab
1 parent 4e47529 commit 0538aee

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)
Please sign in to comment.