diff options
author | 2011-03-14 17:32:29 -0400 | |
---|---|---|
committer | 2011-03-14 17:32:29 -0400 | |
commit | 6a588b467d856a6d75b6274c2ee4c0795526bffc (patch) | |
tree | 1782b00af5ff8e6eabfab24ebe323e4da0f9cdc7 /modules | |
parent | 76d1961e1f9e0d081eac3ed4130a2d0080d538ca (diff) | |
download | textadept-6a588b467d856a6d75b6274c2ee4c0795526bffc.tar.gz textadept-6a588b467d856a6d75b6274c2ee4c0795526bffc.zip |
Trigger Adeptsense in embedded lexers; 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 915a3470..a1dfc03c 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -518,7 +518,7 @@ function add_trigger(sense, c, only_fields, only_functions) if #c > 2 then return end -- TODO: warn local c1, c2 = c:match('.$'):byte(), #c > 1 and c:sub(1, 1):byte() local i = events.connect('char_added', function(char) - if char == c1 and buffer:get_lexer() == sense.lexer then + if char == c1 and buffer:get_lexer(true) == sense.lexer then if c2 and buffer.char_at[buffer.current_pos - 2] ~= c2 then return end sense:complete(only_fields, only_functions) end |