diff options
author | 2011-06-28 17:00:42 -0400 | |
---|---|---|
committer | 2011-06-28 17:00:42 -0400 | |
commit | c407317f84ae66afd5843b00237318f083a0eddd (patch) | |
tree | d592b6c7b1dd714057a258b930240c2584be7be5 /modules/textadept/adeptsense.lua | |
parent | a5790e42bb64bd6405f4fde010a3c17efd02d005 (diff) | |
download | textadept-c407317f84ae66afd5843b00237318f083a0eddd.tar.gz textadept-c407317f84ae66afd5843b00237318f083a0eddd.zip |
Small Adeptsense improvements.
Diffstat (limited to 'modules/textadept/adeptsense.lua')
-rw-r--r-- | modules/textadept/adeptsense.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index cadbebcb..f0db63ae 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -586,8 +586,8 @@ function show_apidoc(sense) buffer:goto_pos(buffer:word_end_position(s, true)) local line, p = buffer:get_cur_line() line = line:sub(1, p) - symbol = line:match('('..sense.syntax.symbol_chars..'+)%s*%([^)]*$') or - line:match('('..sense.syntax.symbol_chars..'+)%s*$') or '' + symbol = line:match('('..sense.syntax.symbol_chars..'+)%s*$') or + line:match('('..sense.syntax.symbol_chars..'+)%s*%([^()]*$') or '' buffer:goto_pos(e) else symbol = buffer:text_range(s, e) |