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.
Asked
Active
Viewed 189 times
0

Mario Michelli
- 523
- 1
- 5
- 11
-
Could you perhaps make that two separate questions? – Thomas Jul 05 '11 at 09:21
-
With "tabbing" do you mean indentation? – Thomas Jul 05 '11 at 09:24
-
yes, I mean indentation. Sure, I'll make two question. – Mario Michelli Jul 05 '11 at 13:05
-
Here is the other question: http://stackoverflow.com/questions/6583173/how-do-i-set-the-colour-of-a-custom-tag-in-html-mode – Mario Michelli Jul 05 '11 at 13:13
1 Answers
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