Improve linting of anonymous_nodes

master
Stephan Seitz 4 years ago
parent 79c6003aa0
commit cd72c42eef

@ -63,7 +63,7 @@ function M.lint(buf)
local node_type = ts_utils.get_node_text(node)[1]
if anonymous_node then
node_type = node_type:sub(2, -2)
node_type = node_type:gsub('"(.*)".*$', '%1')
end
local found =

Loading…
Cancel
Save