Skip to content

Commit 90c401c

Browse files
committed
some more code cleanups before merge
1 parent 06cf0ba commit 90c401c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/coderay/scanners/lua.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ module Scanners
88
# The language’s complete syntax is defined in
99
# {the Lua manual}[http://www.lua.org/manual/5.2/manual.html],
1010
# which is what this scanner tries to conform to.
11-
class CodeRay::Scanners::Lua < CodeRay::Scanners::Scanner
11+
class Lua < Scanner
1212

1313
register_for :lua
14-
file_extension "lua"
15-
title "Lua"
14+
file_extension 'lua'
15+
title 'Lua'
1616

1717
# Keywords used in Lua.
1818
KEYWORDS = %w[and break do else elseif end
19-
for function goto if in
20-
local not or repeat return
21-
then until while
19+
for function goto if in
20+
local not or repeat return
21+
then until while
2222
]
2323

2424
# Constants set by the Lua core.
@@ -36,10 +36,10 @@ class CodeRay::Scanners::Lua < CodeRay::Scanners::Scanner
3636
# highlighted directly accordingly, without the need for specific
3737
# identifiers to be listed here.
3838
PREDEFINED_EXPRESSIONS = %w[
39-
assert collectgarbage dofile error getmetatable
40-
ipairs load loadfile next pairs pcall print
41-
rawequal rawget rawlen rawset select setmetatable
42-
tonumber tostring type xpcall
39+
assert collectgarbage dofile error getmetatable
40+
ipairs load loadfile next pairs pcall print
41+
rawequal rawget rawlen rawset select setmetatable
42+
tonumber tostring type xpcall
4343
]
4444

4545
# Automatic token kind selection for normal words.
@@ -52,7 +52,7 @@ class CodeRay::Scanners::Lua < CodeRay::Scanners::Scanner
5252

5353
# Scanner initialization.
5454
def setup
55-
@state = :initial
55+
@state = :initial
5656
@brace_depth = 0
5757
end
5858

0 commit comments

Comments
 (0)