src/Pure/Isar/token.scala
changeset 69891 def3ec9cdb7e
parent 69603 67ae2e164c0f
child 71601 97ccf48c2f0c
--- a/src/Pure/Isar/token.scala	Sun Mar 10 15:31:24 2019 +0100
+++ b/src/Pure/Isar/token.scala	Sun Mar 10 21:12:29 2019 +0100
@@ -304,6 +304,9 @@
   def is_space: Boolean = kind == Token.Kind.SPACE
   def is_informal_comment: Boolean = kind == Token.Kind.INFORMAL_COMMENT
   def is_formal_comment: Boolean = kind == Token.Kind.FORMAL_COMMENT
+  def is_marker: Boolean =
+    kind == Token.Kind.FORMAL_COMMENT &&
+    (source.startsWith(Symbol.marker) || source.startsWith(Symbol.marker_decoded))
   def is_comment: Boolean = is_informal_comment || is_formal_comment
   def is_ignored: Boolean = is_space || is_informal_comment
   def is_proper: Boolean = !is_space && !is_comment