diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lexers/lexer.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/lexers/lexer.lua b/lua/lexers/lexer.lua index 7251ed2..b37e0de 100644 --- a/lua/lexers/lexer.lua +++ b/lua/lexers/lexer.lua @@ -1091,9 +1091,9 @@ function M.embed(lexer, child, start_rule, end_rule) if child._WORDLISTS then for name, i in pairs(child._WORDLISTS) do if type(name) == 'string' and type(i) == 'number' then - name = child._name .. '.' .. name - lexer:word_match(name) -- for side effects - lexer:set_word_list(name, child._WORDLISTS[i]) + tname = child._name .. '.' .. name + lexer:word_match(tname) -- for side effects + lexer:set_word_list(tname, child._WORDLISTS[i]) end end end |
