File tree 4 files changed +10
-20
lines changed
4 files changed +10
-20
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,7 @@ def self.keywords
19
19
)
20
20
end
21
21
22
- # self-modifying method that loads the builtins file
23
- def self . builtins
24
- Kernel ::load File . join ( Lexers ::BASE_DIR , 'matlab/keywords.rb' )
25
- builtins
26
- end
22
+ require_relative "matlab/keywords"
27
23
28
24
state :root do
29
25
rule %r/\s +/m , Text # Whitespace
Load Diff This file was deleted.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -41,11 +41,14 @@ module Rouge
41
41
yield ""
42
42
yield "module Rouge"
43
43
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"
46
48
yield " end"
47
49
yield " end"
48
50
yield "end"
51
+ yield ""
49
52
end
50
53
end
51
54
end
You can’t perform that action at this time.
0 commit comments