[code] Back with questions

From: Pedro Andres Aranda Gutierrez <paaguti.att.gmail.com>
Date: Wed, 4 Oct 2017 11:28:19 +0200

I'v been looking the textadept.editing module to implement `` matching for

As a result, I have tried to include this in my .textadept/init.lua file
events.connect(events.LEXER_LOADED, function(lexer)
  local bash = lexer == 'bash'
  -- Like in the REST module
  textadept.editing.auto_pairs[string.byte('`')] = bash and '`' or nil
  textadept.editing.typeover_chars[string.byte('`')] = bash and 1 or nil
  -- rest of the function

So when I type ` once, it is inserted twice :-) but when I try to type over
the closing `, I get a second `` pair inserted.

BTW, I have installed the REST module while writing this email, code
snippet happens to be the same and it happens to happen there too.. So this
looks like an 'anti-feature' ;-)

Best, /PA


paag.att.paag:~$ uname -a
Darwin paag.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27
PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellet zu werden
Georg Kreisler
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 04 Oct 2017 - 05:28:19 EDT

This archive was generated by hypermail 2.2.0 : Wed 04 Oct 2017 - 06:52:09 EDT