diff options
author | 2011-02-10 19:32:36 -0500 | |
---|---|---|
committer | 2011-02-10 19:32:36 -0500 | |
commit | a6986586d08e179db6d385a05789c582eae854a0 (patch) | |
tree | c094de49712a9976a926481d4eb77d2dcc9fdd45 /modules | |
parent | 2f7e0227f6ed29b620f6495cf89afdfd9d4cad8d (diff) | |
download | textadept-a6986586d08e179db6d385a05789c582eae854a0.tar.gz textadept-a6986586d08e179db6d385a05789c582eae854a0.zip |
Show apidoc '\\' sequences properly; modules/textadept/adeptsense.lua
Diffstat (limited to 'modules')
-rw-r--r-- | modules/textadept/adeptsense.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index 5a51f527..f8907859 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -193,7 +193,7 @@ function show_apidoc(sense) local apidocs = sense:get_apidoc(symbol) if not apidocs then return false end for i, doc in ipairs(apidocs) do - doc = doc:gsub('([^\\])\\n', '%1\n'):gsub('\\\\n', '\\n') + doc = doc:gsub('\\\\', '%%esc%%'):gsub('\\n', '\n'):gsub('%%esc%%', '\\') if #apidocs > 1 then if not doc:find('\n') then doc = doc..'\n' end doc = '\001'..doc:gsub('\n', '\n\002', 1) |