Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

moving with option+left/right in {{ ... }} #5

Closed
kitlbast opened this Issue · 1 comment

2 participants

@kitlbast

Hi. Repost this issue from TextMate2. With TextMate 1 i was able to move between words inside double braces:

<span>{{ var1.field1.field2 }}</span>

Now moving cursor to "{{" and press option+right bring me to the end braces "}}" instead of moving to "var1". However there are situations where moving between words inside braces working properly, for example in tag attributes:

<a href="{{ req.route_url(..) }}">

If this is not a bug, advice please how I can change this behavior with language grammars back to TM1 style?

@infininight
Owner

This blog post tells about characterClass which is used in this case to determine what a 'word' is. The grammar, incorrectly, treats the template tag as a single unit thus giving the behavior you are seeing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.