From 43528bbf8682f1e04d59b4ba7534dd5d3a9e1b33 Mon Sep 17 00:00:00 2001 From: Erik Lieben Date: Sat, 5 Nov 2016 21:37:13 +0100 Subject: [PATCH] fix(syntax): don't tokenize attribute body something.ref with aurelia ref, resolves: #19 --- syntaxes/html.json | 8 ++++---- test/syntax.html/ref.test.ts | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/syntaxes/html.json b/syntaxes/html.json index 2556e25e..a6251de6 100644 --- a/syntaxes/html.json +++ b/syntaxes/html.json @@ -240,15 +240,15 @@ } }, "tag-aurelia-attribute-with-ref-attribute": { - "match": "[^=](([a-zA-Z0-9:-]+)(? { }); + it('must not tokenize client.ref* part in body of other attribute', () => { + + // arrange + let scope = 'meta.tag.block.any.html'; + + // act + let lineToken = tokenizeLine('
'); + + // assert + let token = getTokenOnCharRange(lineToken, 24, 42); + assert.isOk(hasScope(token.scopes, scope)); + + }); + });