Skip to content
This repository has been archived by the owner on Feb 24, 2018. It is now read-only.

Commit

Permalink
Allow "dot" that is not attached to a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Aug 28, 2015
1 parent 559a5ea commit 28d0aaa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Parser.prototype = {
* | filter
* | comment
* | text
* | dot
* | each
* | code
* | yield
Expand Down Expand Up @@ -178,6 +179,8 @@ Parser.prototype = {
case 'text':
case 'start-jade-interpolation':
return this.parseText({block: true});
case 'dot':
return this.parseDot();
case 'each':
return this.parseEach();
case 'code':
Expand Down Expand Up @@ -215,6 +218,11 @@ Parser.prototype = {
}
},

parseDot: function() {
this.advance();
return this.parseTextBlock() || {type: 'Block', nodes: []};
},

/**
* Text
*/
Expand Down

0 comments on commit 28d0aaa

Please sign in to comment.