Skip to content

Commit

Permalink
IE7 doesn't like seeing reserved words crop up anywhere other than wh…
Browse files Browse the repository at this point in the history
…ere they're supposed to.
  • Loading branch information
jeamland committed Feb 21, 2012
1 parent 2807c75 commit 121b1be
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/lexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Lexer.prototype = {
* Extends.
*/

extends: function() {
"extends": function() {
return this.scan(/^extends +([^\n]+)/, 'extends');
},

Expand Down Expand Up @@ -316,7 +316,7 @@ Lexer.prototype = {
* Case.
*/

case: function() {
"case": function() {
return this.scan(/^case +([^\n]+)/, 'case');
},

Expand All @@ -332,7 +332,7 @@ Lexer.prototype = {
* Default.
*/

default: function() {
"default": function() {
return this.scan(/^default */, 'default');
},

Expand Down Expand Up @@ -390,7 +390,7 @@ Lexer.prototype = {
* While.
*/

while: function() {
"while": function() {
var captures;
if (captures = /^while +([^\n]+)/.exec(this.input)) {
this.consume(captures[0].length);
Expand Down Expand Up @@ -680,18 +680,18 @@ Lexer.prototype = {
|| this.pipelessText()
|| this.yield()
|| this.doctype()
|| this.case()
|| this["case"]()
|| this.when()
|| this.default()
|| this.extends()
|| this["default"]()
|| this["extends"]()
|| this.append()
|| this.prepend()
|| this.block()
|| this.include()
|| this.mixin()
|| this.conditional()
|| this.each()
|| this.while()
|| this["while"]()
|| this.assignment()
|| this.tag()
|| this.filter()
Expand Down

0 comments on commit 121b1be

Please sign in to comment.