diff options
author | 2011-02-09 23:01:36 -0500 | |
---|---|---|
committer | 2011-02-09 23:01:36 -0500 | |
commit | 2f7e0227f6ed29b620f6495cf89afdfd9d4cad8d (patch) | |
tree | 2651818fff604dda9b5d0557a006690813dd3dd0 | |
parent | 5c70f4d57771b6f92ed05661e723958e15c42530 (diff) | |
download | textadept-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.lua | 2 |
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 |