summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/browser/lexical.ml
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/labltk/browser/lexical.ml')
-rw-r--r--otherlibs/labltk/browser/lexical.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/otherlibs/labltk/browser/lexical.ml b/otherlibs/labltk/browser/lexical.ml
index a2573ef7c..72f1957ec 100644
--- a/otherlibs/labltk/browser/lexical.ml
+++ b/otherlibs/labltk/browser/lexical.ml
@@ -39,6 +39,8 @@ let tag ?(start=tstart) ?(stop=tend) tw =
let tpos c = (Text.index tw ~index:start, [`Char c]) in
let text = Text.get tw ~start ~stop in
let buffer = Lexing.from_string text in
+ Location.init buffer "";
+ Location.input_name := "";
List.iter tags
~f:(fun tag -> Text.tag_remove tw ~start ~stop ~tag);
let last = ref (EOF, 0, 0) in