treat quotes as non-controllable, to reduce surprise in incremental editing;
authorwenzelm
Sun, 19 Jun 2011 21:53:04 +0200
changeset 43464 265d9300d523
parent 43463 0a2ffb071fca
child 43469 882108e9536a
treat quotes as non-controllable, to reduce surprise in incremental editing;
src/Tools/jEdit/src/token_markup.scala
--- a/src/Tools/jEdit/src/token_markup.scala	Sun Jun 19 21:47:14 2011 +0200
+++ b/src/Tools/jEdit/src/token_markup.scala	Sun Jun 19 21:53:04 2011 +0200
@@ -49,7 +49,7 @@
       for (sym <- Symbol.iterator(text).map(_.toString)) {
         if (ctrl_style(sym).isDefined) ctrl = sym
         else if (ctrl != "") {
-          if (symbols.is_controllable(sym)) {
+          if (symbols.is_controllable(sym) && sym != "\"") {
             mark(offset - ctrl.length, offset, _ => hidden)
             mark(offset, offset + sym.length, ctrl_style(ctrl).get)
           }