mirror of
https://github.com/jamiebuilds/the-super-tiny-compiler.git
synced 2024-10-27 20:34:08 +00:00
Merge pull request #1 from rhythm29/rhythm_alphanumeric_name
added alphanumeric and underscore support for type name
This commit is contained in:
commit
47d0f2bd59
@ -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…
Reference in New Issue
Block a user