clarified SideKick parser name, which serves as quasi "mode" here;
authorwenzelm
Thu Aug 29 15:53:56 2013 +0200 (2013-08-29)
changeset 53281251e1a2aa792
parent 53280 c63a016805b9
child 53282 9d6e263fa921
clarified SideKick parser name, which serves as quasi "mode" here;
src/Tools/jEdit/src/isabelle.scala
src/Tools/jEdit/src/isabelle_sidekick.scala
src/Tools/jEdit/src/services.xml
     1.1 --- a/src/Tools/jEdit/src/isabelle.scala	Thu Aug 29 15:48:37 2013 +0200
     1.2 +++ b/src/Tools/jEdit/src/isabelle.scala	Thu Aug 29 15:53:56 2013 +0200
     1.3 @@ -21,17 +21,17 @@
     1.4    val modes =
     1.5      List(
     1.6        "isabelle",         // theory source
     1.7 +      "isabelle-markup",  // SideKick markup tree
     1.8        "isabelle-news",    // NEWS
     1.9        "isabelle-options", // etc/options
    1.10        "isabelle-output",  // pretty text area output
    1.11 -      "isabelle-raw",     // SideKick content tree
    1.12        "isabelle-root")    // session ROOT
    1.13  
    1.14    private lazy val news_syntax = Outer_Syntax.init().no_tokens
    1.15  
    1.16    def mode_syntax(name: String): Option[Outer_Syntax] =
    1.17      name match {
    1.18 -      case "isabelle" | "isabelle-raw" =>
    1.19 +      case "isabelle" | "isabelle-markup" =>
    1.20          val syntax = PIDE.session.recent_syntax
    1.21          if (syntax == Outer_Syntax.empty) None else Some(syntax)
    1.22        case "isabelle-options" => Some(Options.options_syntax)
     2.1 --- a/src/Tools/jEdit/src/isabelle_sidekick.scala	Thu Aug 29 15:48:37 2013 +0200
     2.2 +++ b/src/Tools/jEdit/src/isabelle_sidekick.scala	Thu Aug 29 15:53:56 2013 +0200
     2.3 @@ -142,7 +142,7 @@
     2.4    Isabelle_Sidekick_Structure("isabelle-root", PIDE.thy_load.buffer_node_dummy)
     2.5  
     2.6  
     2.7 -class Isabelle_Sidekick_Raw extends Isabelle_Sidekick("isabelle-raw")
     2.8 +class Isabelle_Sidekick_Markup extends Isabelle_Sidekick("isabelle-markup")
     2.9  {
    2.10    override def parser(buffer: Buffer, syntax: Outer_Syntax, data: SideKickParsedData): Boolean =
    2.11    {
     3.1 --- a/src/Tools/jEdit/src/services.xml	Thu Aug 29 15:48:37 2013 +0200
     3.2 +++ b/src/Tools/jEdit/src/services.xml	Thu Aug 29 15:53:56 2013 +0200
     3.3 @@ -8,6 +8,9 @@
     3.4  	<SERVICE NAME="isabelle" CLASS="sidekick.SideKickParser">
     3.5  		new isabelle.jedit.Isabelle_Sidekick_Default();
     3.6  	</SERVICE>
     3.7 +	<SERVICE NAME="isabelle-markup" CLASS="sidekick.SideKickParser">
     3.8 +		new isabelle.jedit.Isabelle_Sidekick_Markup();
     3.9 +	</SERVICE>
    3.10  	<SERVICE NAME="isabelle-news" CLASS="sidekick.SideKickParser">
    3.11  		new isabelle.jedit.Isabelle_Sidekick_News();
    3.12  	</SERVICE>
    3.13 @@ -17,9 +20,6 @@
    3.14  	<SERVICE NAME="isabelle-root" CLASS="sidekick.SideKickParser">
    3.15  		new isabelle.jedit.Isabelle_Sidekick_Root();
    3.16  	</SERVICE>
    3.17 -	<SERVICE NAME="isabelle-raw" CLASS="sidekick.SideKickParser">
    3.18 -		new isabelle.jedit.Isabelle_Sidekick_Raw();
    3.19 -	</SERVICE>
    3.20   	<SERVICE CLASS="console.Shell" NAME="Scala">
    3.21  		new isabelle.jedit.Scala_Console();
    3.22  	</SERVICE>