From 382eae55adff318344a1347f5dbb235741f1dd79 Mon Sep 17 00:00:00 2001 From: Jeremy Maitin-Shepard Date: Thu, 9 Oct 2008 17:59:19 -0700 Subject: [PATCH] keywords.js: make write_keywords public and more flexible --- modules/keywords.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/keywords.js b/modules/keywords.js index afc19d3..ed003b2 100644 --- a/modules/keywords.js +++ b/modules/keywords.js @@ -29,8 +29,9 @@ var define_keyword = define_keywords; - let write_keywords = function write_keywords(output, input) { - let first_index = input.callee.length; + function write_keywords(output, input, first_index) { + if (first_index == null) + first_index = input.callee.length; let max_index = input.length; let count = max_index - first_index; if (count > 0) { -- 2.11.4.GIT