From 25100648aaaf26a89c1ad5e1f346762bcea5dc25 Mon Sep 17 00:00:00 2001 From: fleischwolf Date: Sat, 2 Jan 2016 18:55:54 +0000 Subject: templates.py edited online with Bitbucket --- pygments/lexers/templates.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pygments/lexers/templates.py b/pygments/lexers/templates.py index 097e2ef2..eeafd2fc 100644 --- a/pygments/lexers/templates.py +++ b/pygments/lexers/templates.py @@ -2178,9 +2178,10 @@ class TwigHtmlLexer(DelegatingLexer): class Angular2Lexer(RegexLexer): """ - Generic `angular ` template lexer. + Generic `angular2 ` template lexer. - Highlights only the Angular template tags (stuff between `{{` and `}}`). + Highlights only the Angular template tags (stuff between `{{` and `}}` and + special attributes: '(event)=', '[property]=', '[(twoWayBinding)]='). Everything else is left for a delegating lexer. .. versionadded:: 2.0 -- cgit v1.2.1