From 969fc3dd0adbb15304e3e13c3e27260398d89503 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Mon, 31 Mar 2014 15:31:55 +0200 Subject: [PATCH] Supports user components with keyword arguments Fix #19 --- package.js | 2 +- plugin/lexer.js | 2 +- smart.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.js b/package.js index 6535d44..fb68dd6 100644 --- a/package.js +++ b/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: "Jade template language for Meteor", - version: "0.2.0" + version: "0.2.1" }); Package._transitional_registerBuildPlugin({ diff --git a/plugin/lexer.js b/plugin/lexer.js index 9dbb988..8b7f355 100644 --- a/plugin/lexer.js +++ b/plugin/lexer.js @@ -24,7 +24,7 @@ Lexer.prototype.builtInComponents = function () { Lexer.prototype.userComponents = function () { var self = this; var captures, tok; - if (captures = /^\+([\.\w-]+)\b(\(?([\w\b="',_+]+)\)?)?/.exec(self.input)) { + if (captures = /^\+([\.\w-]+)\b(\(?(.+)\)?)?/.exec(self.input)) { self.consume(captures[0].length); tok = self.tok('mixin', captures[1]); tok.args = captures[3] || ""; diff --git a/smart.json b/smart.json index e1ca9dc..707e998 100644 --- a/smart.json +++ b/smart.json @@ -2,7 +2,7 @@ "name": "jade", "description": "Jade template language for Meteor", "author": "Maxime QUANDALLE ", - "version": "0.2.0", + "version": "0.2.1", "git": "https://github.com/mquandalle/meteor-jade.git", "homepage": "https://github.com/mquandalle/meteor-jade" }