explicit treatment of unfinished cartouches, which is important for Thy_Syntax.consolidate_spans;
--- a/src/Pure/Isar/token.scala Tue May 20 09:57:10 2014 +0200
+++ b/src/Pure/Isar/token.scala Tue May 20 14:25:28 2014 +0200
@@ -185,7 +185,9 @@
(source.startsWith("\"") ||
source.startsWith("`") ||
source.startsWith("{*") ||
- source.startsWith("(*"))
+ source.startsWith("(*") ||
+ source.startsWith(Symbol.open) ||
+ source.startsWith(Symbol.open_decoded))
def is_begin: Boolean = is_keyword && source == "begin"
def is_end: Boolean = is_keyword && source == "end"