From 2f7e0227f6ed29b620f6495cf89afdfd9d4cad8d Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 9 Feb 2011 23:01:36 -0500 Subject: 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. --- modules/textadept/adeptsense.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/adeptsense.lua') 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 -- cgit v1.2.3