From 965d94c63654829c5135b5d113c70887ed16be3b Mon Sep 17 00:00:00 2001 From: Onoshko Dan Date: Fri, 30 May 2014 01:33:48 +0700 Subject: [PATCH] Fixes. --- README.md | 4 ++-- lib/parse.js | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c622a118..db71eb14 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ You can set any type which you want in current version , to tell you the truth i In ColaScript, like in CoffeScript, exists boolean-aliases: yes == on == true; - no == off == false + no == off == false; ### Strings @@ -130,7 +130,7 @@ Most of array features were taken from CoffeeScript: Array arr = [0...10]; arr[0..2] = [584, 404]; // [584, 404, 3, 4, 5, 6, 7, 8, 9] - console.log(arr[0..2]); // [584, 404] + console.log(arr[0..2]); // [584, 404, 3] one feature was taken from PHP: diff --git a/lib/parse.js b/lib/parse.js index 27d06893..fa2ad862 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -1360,7 +1360,7 @@ Cola.Parser.prototype.function_ = function(ctor, type) { tmp = _this.expression(true); if ( ctor === Cola.AST_Defun ) { _this.semicolon(); - _this.next(); + //_this.next(); } return tmp; })(), diff --git a/package.json b/package.json index fe3f67c6..8d363e6d 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "ColaScript translator / parser / mangler / compressor / beautifier toolkit", "homepage": "https://github.com/TrigenSoftware/ColaScript", "main": "tools/node.js", - "version": "0.5.7", + "version": "0.5.8", "engines": { "node" : ">=0.4.0" }, "maintainers": [{ "name": "Dan Onoshko (dangreen)",