summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
};