From 0f9d6f917173b1a22559fc42d12bbfc9bf4e783c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Mon, 13 Dec 2021 10:21:32 -0500 Subject: Fixed attempted expansion of lexer name snippet that resolves to a table. --- test/test.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/test.lua b/test/test.lua index daffec91..a8c25164 100644 --- a/test/test.lua +++ b/test/test.lua @@ -3494,6 +3494,13 @@ function test_snippets_find_snippet() table.remove(textadept.snippets.paths, 1) end +function test_snippets_expand_lexer_name() + buffer.new() + buffer:add_text('lua') + assert(textadept.snippets.insert() == nil, 'snippet not inserted') + buffer:close(true) +end + function test_snippets_match_indentation() local snippet = '\t foo' -- LuaFormatter off -- cgit v1.2.3