@@ -98,10 +98,10 @@ def scan_tokens(encoder, options)
9898 @encoder . text_token ( match , kind )
9999
100100 elsif match = scan ( /\{ / ) # Opening table brace {
101- @encoder . begin_group ( :table )
101+ @encoder . begin_group ( :map )
102102 @encoder . text_token ( match , @brace_depth >= 1 ? :inline_delimiter : :delimiter )
103103 @brace_depth += 1
104- @state = :table
104+ @state = :map
105105
106106 elsif match = scan ( /\} / ) # Closing table brace }
107107 if @brace_depth == 1
@@ -112,9 +112,9 @@ def scan_tokens(encoder, options)
112112 else
113113 @brace_depth -= 1
114114 @encoder . text_token ( match , :inline_delimiter )
115- @state = :table
115+ @state = :map
116116 end
117- @encoder . end_group ( :table )
117+ @encoder . end_group ( :map )
118118
119119 elsif match = scan ( /["']/ ) # String delimiters " and '
120120 @encoder . begin_group ( :string )
@@ -142,8 +142,8 @@ def scan_tokens(encoder, options)
142142
143143 # It may be that we’re scanning a full-blown subexpression of a table
144144 # (tables can contain full expressions in parts).
145- # If this is the case, return to :table scanning state.
146- @state = :table if @state == :initial && @brace_depth >= 1
145+ # If this is the case, return to :map scanning state.
146+ @state = :map if @state == :initial && @brace_depth >= 1
147147
148148 when :function_expected
149149 if match = scan ( /\( .*?\) /m ) # x = function() # "Anonymous" function without explicit name
@@ -237,7 +237,7 @@ def scan_tokens(encoder, options)
237237 @encoder . text_token ( getch , :error )
238238 end
239239
240- when :table
240+ when :map
241241 if match = scan ( /[,;]/ )
242242 @encoder . text_token ( match , :operator )
243243 elsif match = scan ( /[a-zA-Z_][a-zA-Z0-9_]* (?=\s *=)/x )
0 commit comments