explicit treatment of unfinished cartouches, which is important for Thy_Syntax.consolidate_spans;
authorwenzelm
Tue, 20 May 2014 14:25:28 +0200
changeset 57021 6a8fd2ac6756
parent 57014 b7999893ffcc
child 57022 801c01004a21
explicit treatment of unfinished cartouches, which is important for Thy_Syntax.consolidate_spans;
src/Pure/Isar/token.scala
--- 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"