From 85cf8a5843e3c2e5c3bd4e17cf32eb1c1ba8a05e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 10 Jun 2021 20:25:16 +0800 Subject: fix --- script/core/command/removeSpace.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script/core/command') diff --git a/script/core/command/removeSpace.lua b/script/core/command/removeSpace.lua index ba1ee8eb..2df73a39 100644 --- a/script/core/command/removeSpace.lua +++ b/script/core/command/removeSpace.lua @@ -1,10 +1,11 @@ local files = require 'files' local searcher = require 'core.searcher' +local guide = require 'parser.guide' local proto = require 'proto' local lang = require 'language' local function isInString(ast, offset) - return searcher.eachSourceContain(ast.ast, offset, function (source) + return guide.eachSourceContain(ast.ast, offset, function (source) if source.type == 'string' then return true end -- cgit v1.2.3