[code] [textadept] reset lexer when highlighting is wrong

From: Thorsten Kampe <thorsten.att.thorstenkampe.de>
Date: Thu, 24 Dec 2015 13:42:36 +0100

Hi,

I have a bash script that ends like this:

```
# enable history and completion for `sqlplus` if possible
if which rlwrap &> /dev/null
then
    alias sqlplus='rlwrap -D2 -irc -b'\''"@(){}[],+=&^%#;|\'\''
sqlplus'
fi
[...]
```

After the `alias` line textadept displays everything in green as if
it's part of the alias string. Obviously the lexer definition gets
confused by the sheer number of ' and \ characters.

Is there a way to tell the lexer in the script to restart the
lexing/tokenizing at a certain line?

Thorsten

-- 
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 Thu 24 Dec 2015 - 07:42:36 EST

This archive was generated by hypermail 2.2.0 : Fri 25 Dec 2015 - 06:30:53 EST