Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Supports user components with keyword arguments
Browse files Browse the repository at this point in the history
Fix #19
  • Loading branch information
mquandalle committed Mar 31, 2014
1 parent 57fbbff commit 969fc3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
summary: "Jade template language for Meteor",
version: "0.2.0"
version: "0.2.1"
});

Package._transitional_registerBuildPlugin({
Expand Down
2 changes: 1 addition & 1 deletion plugin/lexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] || "";
Expand Down
2 changes: 1 addition & 1 deletion smart.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jade",
"description": "Jade template language for Meteor",
"author": "Maxime QUANDALLE <[email protected]>",
"version": "0.2.0",
"version": "0.2.1",
"git": "https://github.com/mquandalle/meteor-jade.git",
"homepage": "https://github.com/mquandalle/meteor-jade"
}

0 comments on commit 969fc3d

Please sign in to comment.