diff --git a/syntaxes/html.json b/syntaxes/html.json index 38a57a85..120ebbcf 100644 --- a/syntaxes/html.json +++ b/syntaxes/html.json @@ -257,7 +257,7 @@ } }, "tag-aurelia-attribute-with-invoke-attribute": { - "match": "(?=\\s)[^=](([a-zA-Z0-9:-]+)(\\.)(trigger|delegate|call))", + "match": "(?=\\s)[^=](([a-zA-Z0-9:-]+)(\\.)(trigger|delegate|call|capture))", "captures": { "2": { "name": "entity.other.attribute-name.html" diff --git a/test/syntax.html/invoke.test.ts b/test/syntax.html/invoke.test.ts index 038f287d..cc0e3409 100644 --- a/test/syntax.html/invoke.test.ts +++ b/test/syntax.html/invoke.test.ts @@ -31,46 +31,61 @@ describe('The Aurelia HTML syntax invoke attributes', () => { }); - it('must not tokenize attribute body that contains click.trigger keyword', () => { + it('must tokenize delegate attribute with scope "invoke.attribute.html.au"', () => { - // arrange- - let scope = 'meta.tag.block.any.html'; + // arrange + let scope = 'invoke.attribute.html.au'; // act - let lineToken = tokenizeLine('