Re: [textadept] Adeptsense - show completions for "$"

From: mitchell <c....at.caladbolg.net>
Date: Wed, 18 May 2011 14:21:36 -0400 (Eastern Daylight Time)

Brian,

On Wed, 18 May 2011, Brian Schott wrote:

> I'm working on finishing up my Javascript module by adding jQuery
> autocomplete support. I've overridden sense:get_class for my
> adeptsense instance to do a simple "if symbol == '$' then return
> 'jQuery' else return symbol". My problem is that I haven't figured out
> the correct way to get adeptsense to actually pass that single "$"
> character to my function. I modified symbol_chars to include "%$", but
> after doing that I get this behavior:
>
> $test -> $test
> $ -> (nothing)
>
> Any idea what I should do to change this?

I think you also need to add '%$' to word_chars.

mitchell
Received on Wed 18 May 2011 - 14:21:36 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:07:44 EST