lib/rouge/lexers/sqf.rb in rouge-3.4.1 vs lib/rouge/lexers/sqf.rb in rouge-3.5.0
- old
+ new
@@ -53,10 +53,10 @@
diag_recordturretlimits diag_setlightnew diag_ticktime diag_toggle
)
end
def self.commands
- load Pathname.new(__FILE__).dirname.join("sqf/commands.rb")
+ load File.join(__dir__, "sqf/commands.rb")
@commands = self.commands
end
state :root do
# Whitespace