aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-02-09 23:01:36 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-02-09 23:01:36 -0500
commit2f7e0227f6ed29b620f6495cf89afdfd9d4cad8d (patch)
tree2651818fff604dda9b5d0557a006690813dd3dd0
parent5c70f4d57771b6f92ed05661e723958e15c42530 (diff)
downloadtextadept-2f7e0227f6ed29b620f6495cf89afdfd9d4cad8d.tar.gz
textadept-2f7e0227f6ed29b620f6495cf89afdfd9d4cad8d.zip
Ensure proper split between symbol and part; modules/textadept/adeptsense.lua
Match as many non-word characters as possible when splitting the symbol and the part.
-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 8a8775e7..5a51f527 100644
--- a/modules/textadept/adeptsense.lua
+++ b/modules/textadept/adeptsense.lua
@@ -18,7 +18,7 @@ local v_xpm = '/* XPM */\nstatic char *field[] = {\n/* columns rows colors chars
function get_symbol(sense)
local line, p = buffer:get_cur_line()
local symbol, part =
- line:sub(1, p):match('('..sense.syntax.symbol_chars..'+)[^%w_]+([%w_]*)$')
+ line:sub(1, p):match('('..sense.syntax.symbol_chars..'-)[^%w_]+([%w_]*)$')
if not symbol then part = line:sub(1, p):match('([%w_]*)$') end
return symbol or '', part or ''
end