Outer_Lex.is_ignored;
authorwenzelm
Mon, 11 Jan 2010 18:26:38 +0100
changeset 34865 104298db6abf
parent 34864 fd6801e87944
child 34866 a4fe43df58b3
Outer_Lex.is_ignored;
src/Tools/jEdit/src/proofdocument/command.scala
--- a/src/Tools/jEdit/src/proofdocument/command.scala	Mon Jan 11 18:26:13 2010 +0100
+++ b/src/Tools/jEdit/src/proofdocument/command.scala	Mon Jan 11 18:26:38 2010 +0100
@@ -38,7 +38,7 @@
   /* classification */
 
   def is_command: Boolean = !span.isEmpty && span.first.is_command
-  def is_ignored: Boolean = span.forall(tok => tok.is_space || tok.is_comment)
+  def is_ignored: Boolean = span.forall(_.is_ignored)
   def is_malformed: Boolean = !is_command && !is_ignored
 
   def name: String = if (is_command) span.first.content else ""