summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-01-06 21:42:40 +0200
committerAlon Levy <alon@pobox.com>2015-01-06 21:42:40 +0200
commitfdba60fc5ec56f7645b453ac380f37e0fa94f6a4 (patch)
treeff7000791992fc8cff91ec33832b922acb6b41d9 /src
parent8a276a3e94f3a6227e766b41e94119e0001ab5bc (diff)
client: wip: get tab working again
Diffstat (limited to 'src')
-rw-r--r--src/client/textanalysis.js10
1 files changed, 6 insertions, 4 deletions
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;
};