From 28dcf85275e8f9791fe50e0eda854f65ae13b3e7 Mon Sep 17 00:00:00 2001 From: Erik Lieben Date: Tue, 4 Oct 2016 22:32:59 +0200 Subject: [PATCH] fix(syntax): tokenize attribute body correctly if it contains model keyword --- syntaxes/html.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntaxes/html.json b/syntaxes/html.json index 604d12f0..0a64c760 100644 --- a/syntaxes/html.json +++ b/syntaxes/html.json @@ -281,7 +281,7 @@ } }, "tag-aurelia-model-attribute" : { - "match": "[^=-]((model)(\\.)?((bind|one-time|one-way|two-way)|(ref))?)", + "match": "(?=\\s)[^=-]((model)(\\.)?((bind|one-time|one-way|two-way)|(ref))?)", "captures": { "2": { "name": "model.attribute.html.au"