File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ class CodeRay::Scanners::Lua < CodeRay::Scanners::Scanner
40
40
]
41
41
42
42
# Automatic token kind selection for normal words.
43
- IDENT_KIND = CodeRay ::WordList . new ( :ident )
44
- . add ( KEYWORDS , :keyword )
45
- . add ( PREDEFINED_CONSTANTS , :predefined_constant )
46
- . add ( PREDEFINED_EXPRESSIONS , :predefined )
43
+ IDENT_KIND = CodeRay ::WordList . new ( :ident ) .
44
+ add ( KEYWORDS , :keyword ) .
45
+ add ( PREDEFINED_CONSTANTS , :predefined_constant ) .
46
+ add ( PREDEFINED_EXPRESSIONS , :predefined )
47
47
48
48
protected
49
49
@@ -99,13 +99,13 @@ def handle_state_initial
99
99
100
100
@encoder . text_token ( match , kind )
101
101
102
- elsif match = scan ( /{/ ) # Opening table brace {
102
+ elsif match = scan ( /\ { / ) # Opening table brace {
103
103
@encoder . begin_group ( :table )
104
104
@encoder . text_token ( match , @brace_depth >= 1 ? :inline_delimiter : :delimiter )
105
105
@brace_depth += 1
106
106
@state = :table
107
107
108
- elsif match = scan ( /}/ ) # Closing table brace }
108
+ elsif match = scan ( /\ } / ) # Closing table brace }
109
109
if @brace_depth == 1
110
110
@brace_depth = 0
111
111
@encoder . text_token ( match , :delimiter )
You can’t perform that action at this time.
0 commit comments