diff --git a/lib/typer.js b/lib/typer.js index b35ed67..3898b83 100644 --- a/lib/typer.js +++ b/lib/typer.js @@ -157,7 +157,7 @@ var tree = require("./tree"); }; module.exports = { - tokens: ["\\?", "\\!", "function", "\\.\\.\\.", ",", "\\:", "\\|", "="], + tokens: ["\\?", "\\!", "(?:[^\\-]|^)function", "\\.\\.\\.", ",", "\\:", "\\|", "="], process: process, type: function(str){ return process(this.tree(str), {});