diff --git a/dist/parser/es6/Parser.js b/dist/parser/es6/Parser.js index 4238fe7..8d5924c 100644 --- a/dist/parser/es6/Parser.js +++ b/dist/parser/es6/Parser.js @@ -110,17 +110,16 @@ } if(this.look.type() == Token.STRING) { node.add( - this.match(), - this.match(';') + this.match() ); } else { node.add( this.importcaulse(), - this.fromcaulse(), - this.match(';') + this.fromcaulse() ); } + node.add(this.match(';')); return node; }, moduleimport: function() { @@ -128,7 +127,8 @@ node.add( this.match('module', true), this.bindid(), - this.fromcaulse() + this.fromcaulse(), + this.match(';') ); return node; }, diff --git a/package.json b/package.json index 0aac600..bb45a30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homunculus", - "version": "0.2.6", + "version": "0.2.6-1", "description": "A lexer&parser by Javascript", "maintainers": [ { diff --git a/src/parser/es6/Parser.js b/src/parser/es6/Parser.js index 49ab2a8..28032be 100644 --- a/src/parser/es6/Parser.js +++ b/src/parser/es6/Parser.js @@ -102,17 +102,16 @@ var Parser = IParser.extend(function(lexer) { } if(this.look.type() == Token.STRING) { node.add( - this.match(), - this.match(';') + this.match() ); } else { node.add( this.importcaulse(), - this.fromcaulse(), - this.match(';') + this.fromcaulse() ); } + node.add(this.match(';')); return node; }, moduleimport: function() { @@ -120,7 +119,8 @@ var Parser = IParser.extend(function(lexer) { node.add( this.match('module', true), this.bindid(), - this.fromcaulse() + this.fromcaulse(), + this.match(';') ); return node; },