diff options
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index b6cce241..54e61e7f 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -1151,4 +1151,14 @@ function m.isGlobal(source) return false end +function m.isInString(ast, position) + return m.eachSourceContain(ast, position, function (source) + if source.type == 'string' + and source.start < position then + return true + end + end) +end + + return m |