From 0138cbec17a19c66032879933491d3b0c890609e Mon Sep 17 00:00:00 2001 From: Rhythm Date: Thu, 7 Apr 2016 18:53:00 +0530 Subject: [PATCH] added alphanumeric and underscore support for type name --- super-tiny-compiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/super-tiny-compiler.js b/super-tiny-compiler.js index e4e214d..ea9c051 100644 --- a/super-tiny-compiler.js +++ b/super-tiny-compiler.js @@ -446,7 +446,7 @@ function tokenizer(input) { // ^^^ // Name token // - var LETTERS = /[a-z]/i; + var LETTERS = /[a-zA-Z_0-9]/; if (LETTERS.test(char)) { var value = ''; @@ -934,4 +934,4 @@ module.exports = { transformer: transformer, codeGenerator: codeGenerator, compiler: compiler -}; +}; \ No newline at end of file