diff options
author | Georg Brandl <georg@python.org> | 2020-09-06 08:46:37 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2020-09-06 08:47:09 +0200 |
commit | 3a2752177f37188fe995d262beb94a338dca612a (patch) | |
tree | 1091f632febb919f5811d0e9b9fd45773be5ae5e | |
parent | 3ebcdc8c2f0e207c8ded5af4477f7f079ad53c7d (diff) | |
download | pygments-git-3a2752177f37188fe995d262beb94a338dca612a.tar.gz |
angular2: fix missing bygroups() assignment
-rw-r--r-- | pygments/lexers/templates.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/templates.py b/pygments/lexers/templates.py index 162d999b..f1ffb38b 100644 --- a/pygments/lexers/templates.py +++ b/pygments/lexers/templates.py @@ -2235,9 +2235,9 @@ class Angular2Lexer(RegexLexer): # *ngIf="..."; #f="ngForm" (r'([*#])([\w:.-]+)(\s*)(=)(\s*)', - bygroups(Punctuation, Name.Attribute, Punctuation, Operator), 'attr'), + bygroups(Punctuation, Name.Attribute, Text, Operator, Text), 'attr'), (r'([*#])([\w:.-]+)(\s*)', - bygroups(Punctuation, Name.Attribute, Punctuation)), + bygroups(Punctuation, Name.Attribute, Text)), ], 'ngExpression': [ |