feature: Allow hyphens in identifiers, working on #14

This commit is contained in:
harttle
2016-10-24 01:19:58 +08:00
parent fbcd244946
commit 1cd30733dd
6 changed files with 79 additions and 20 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ module.exports = function(Tag, Filter) {
}
function parseOutput(str) {
var match = lexical.value.exec(str);
var match = lexical.matchValue(str);
if(!match) throw new Error(`illegal output string: ${str}`);
var initial = match[0];