0

Trying to get a mode to work with silverstipe templates, but <% end_control %> breaks the indentation, but <% nd_control %> does not. It must be the "<% end", but I'm stuck on how to fix it.

Mario Michelli
  • 523
  • 1
  • 5
  • 11

1 Answers1

0

I'm guessing this will be the part tripping it up end_[a-zA-Z1-9_.]*

I'm no lisp or regex expert. But I would suspect end_[:alpha:]+ should work. After taking a look at the emacs regex docs http://www.emacswiki.org/emacs/RegularExpression

You should be able to do without _ or . If you wanted to include the fullstop in the match I think you'll need double backslash \. But I can't think of an example when SS uses this in a closing template statement. And the underscore should already be matched with end_

Lex
  • 4,749
  • 3
  • 45
  • 66