From fdba60fc5ec56f7645b453ac380f37e0fa94f6a4 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 6 Jan 2015 21:42:40 +0200 Subject: client: wip: get tab working again --- src/client/textanalysis.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/client/textanalysis.js') diff --git a/src/client/textanalysis.js b/src/client/textanalysis.js index 12e6e0de..b8365bc7 100644 --- a/src/client/textanalysis.js +++ b/src/client/textanalysis.js @@ -250,10 +250,6 @@ var textAnalyser = function (spec) { links.push(link); } - if (newtext.indexOf('#') == -1 || finalize) { - lastnode = null; - } - //Sentence Sequencing //Build the words and cuts the main elements sentence = tokenize(newtext, '#', '"'); @@ -475,9 +471,15 @@ var textAnalyser = function (spec) { } }; + function lookup_node_in_bounds(cursor) { + // TODO + return null; + } + if (finalize) { typeStack = []; } + lastnode = finalize ? null : lookup_node_in_bounds(cursor); return ret; }; -- cgit v1.3.1