--- a/src/Tools/jEdit/src/bibtex_token_markup.scala Sat Oct 04 18:16:24 2014 +0200
+++ b/src/Tools/jEdit/src/bibtex_token_markup.scala Sat Oct 04 18:26:25 2014 +0200
@@ -81,7 +81,13 @@
for ((style, token) <- styled_tokens) {
val length = token.length
val end_offset = offset + length
- handler.handleToken(line, style, offset, length, context1)
+
+ if ((offset until end_offset).exists(i => line.charAt(i) == '\t')) {
+ for (i <- offset until end_offset)
+ handler.handleToken(line, style, i, 1, context1)
+ }
+ else handler.handleToken(line, style, offset, length, context1)
+
offset += length
}
handler.handleToken(line, JEditToken.END, line.count, 0, context1)