added alphanumeric and underscore support for type name

pull/36/head
Rhythm 8 years ago
parent a44d3ff1e8
commit 0138cbec17

@ -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
};
};
Loading…
Cancel
Save