Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
kirbysayshi committed Oct 10, 2015
1 parent de39dd4 commit be491db
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
13 changes: 11 additions & 2 deletions build/vash-runtime-all.js
Expand Up @@ -2238,6 +2238,15 @@ Parser.prototype.continueBlockNode = function(node, curr, next, ahead, nnwon) {
return true;
}

if (
curr.type === tks.AT && next.type === tks.PAREN_OPEN
) {
// Backwards compatibility, allowing for @for() { @(exp) }
valueNode = this.openNode(new ExpressionNode(), node.values);
updateLoc(valueNode, curr);
return true;
}

var attachmentNode;

if (node._reachedOpenBrace && node._reachedCloseBrace) {
Expand Down Expand Up @@ -2500,7 +2509,7 @@ var TESTS = [
}
, 'WHITESPACE', (/^(\s+)/)
, 'FUNCTION', (/^(function)(?![\d\w])/)
, 'BLOCK_KEYWORD', (/^(catch|do|else|finally|for|function|goto|if|switch|try|while|with)(?![\d\w])/)
, 'BLOCK_KEYWORD', (/^(catch|do|else if|else|finally|for|function|goto|if|switch|try|while|with)(?![\d\w])/)
, 'KEYWORD', (/^(break|case|continue|instanceof|return|var)(?![\d\w])/)
, 'IDENTIFIER', (/^([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)/)

Expand Down Expand Up @@ -2701,7 +2710,7 @@ try {
module.exports={
"name": "vash",
"description": "Razor syntax for JS templating",
"version": "0.9.3",
"version": "0.9.4",
"author": "Andrew Petersen <senofpeter@gmail.com>",
"homepage": "https://github.com/kirbysayshi/vash",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion build/vash-runtime.js
Expand Up @@ -24,7 +24,7 @@ exports.context = function(input, lineno, columnno, linebreak) {
module.exports={
"name": "vash",
"description": "Razor syntax for JS templating",
"version": "0.9.3",
"version": "0.9.4",
"author": "Andrew Petersen <senofpeter@gmail.com>",
"homepage": "https://github.com/kirbysayshi/vash",
"bin": {
Expand Down
13 changes: 11 additions & 2 deletions build/vash.js
Expand Up @@ -2238,6 +2238,15 @@ Parser.prototype.continueBlockNode = function(node, curr, next, ahead, nnwon) {
return true;
}

if (
curr.type === tks.AT && next.type === tks.PAREN_OPEN
) {
// Backwards compatibility, allowing for @for() { @(exp) }
valueNode = this.openNode(new ExpressionNode(), node.values);
updateLoc(valueNode, curr);
return true;
}

var attachmentNode;

if (node._reachedOpenBrace && node._reachedCloseBrace) {
Expand Down Expand Up @@ -2500,7 +2509,7 @@ var TESTS = [
}
, 'WHITESPACE', (/^(\s+)/)
, 'FUNCTION', (/^(function)(?![\d\w])/)
, 'BLOCK_KEYWORD', (/^(catch|do|else|finally|for|function|goto|if|switch|try|while|with)(?![\d\w])/)
, 'BLOCK_KEYWORD', (/^(catch|do|else if|else|finally|for|function|goto|if|switch|try|while|with)(?![\d\w])/)
, 'KEYWORD', (/^(break|case|continue|instanceof|return|var)(?![\d\w])/)
, 'IDENTIFIER', (/^([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)/)

Expand Down Expand Up @@ -2986,7 +2995,7 @@ try {
module.exports={
"name": "vash",
"description": "Razor syntax for JS templating",
"version": "0.9.3",
"version": "0.9.4",
"author": "Andrew Petersen <senofpeter@gmail.com>",
"homepage": "https://github.com/kirbysayshi/vash",
"bin": {
Expand Down

0 comments on commit be491db

Please sign in to comment.