[TxMt] Re: need help about autocomplete

Allan Odgaard mailinglist at textmate.org
Wed Sep 12 14:39:22 UTC 2012


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”).



More information about the textmate mailing list