[TxMt] Re: need help about autocomplete
Yuan Jiang
sleetdrop at gmail.com
Wed Sep 12 18:48:52 UTC 2012
I am not familiar with create such settings, could you give me an example.
On Wed, Sep 12, 2012 at 10:39 PM, Allan Odgaard
<mailinglist at textmate.org> wrote:
> On Sep 12, 2012, at 3:44 PM, Elia Schito <elia at schito.me> wrote:
>
>> The problem with character classes (unless I'm missing something) is that you need to "fix" every grammar to get the same behavior
>
> For ‘$foo’ in PHP and Shell the ‘$’ is scoped as ‘punctuation.definition.variable’. Same for ‘@’ in Ruby for ‘@foo’.
>
> So you can make the (non-word) characters of the variable not part of the unit by making a setting for that scope (or just “punctuation”).
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
--
Yuan Jiang
http://blog.vetcafe.net
http://twitter.com/sleetdrop
More information about the textmate
mailing list