aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/adeptsense.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/adeptsense.lua')
-rw-r--r--modules/textadept/adeptsense.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua
index 63282680..52569d6e 100644
--- a/modules/textadept/adeptsense.lua
+++ b/modules/textadept/adeptsense.lua
@@ -542,7 +542,7 @@ function get_apidoc(sense, symbol, raw)
local entity, func = symbol:match('^(.-)[^%w_]*([%w_]+)$')
if raw then entity, func = '', symbol end
local c = func:sub(1, 1) -- for quick comparison
- local patt = '^'..func..'%s+(.+)$'
+ local patt = '^'..func:gsub('([%.%-])', '%%%1')..'%s+(.+)$'
for _, file in ipairs(sense.api_files) do
if lfs.attributes(file) then
for line in io.lines(file) do