Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update lib/kyuri/core.js

fixed premature deletion of tabspace option
  • Loading branch information...
commit 1962ab5eef7fbda716195684ac2b8601a1ecab91 1 parent 7acfe32
marco4net marco4net authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/kyuri/core.js
6 lib/kyuri/core.js
View
@@ -27,13 +27,13 @@ exports.compile = function (code, options) {
options.target = options.target || 'steps'
options.tabspace = options.tabspace || 8;
- // we don't need this anymore
- delete options.tabspace;
-
try {
if (isText) {
// Convert groups of spaces to tabs
code = code.replace(new RegExp(' {' + options.tabspace + '}', 'g'), '\t');
+ // we don't need this anymore
+ delete options.tabspace;
+
ast = parser.parse(lexer.tokenize(code));
} else {
ast = code;
Please sign in to comment.
Something went wrong with that request. Please try again.