aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc/isar
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2002-08-09 08:13:10 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2002-08-09 08:13:10 +0000
commit0570ebddbf94b5db82667a15d96a1addd61f66a9 (patch)
treee0eb4b4125854d10bb2f3f0c612646210cfafc5a /etc/isar
parent573d34069a9ddbc23e7d99bbcefac27c183abb12 (diff)
More comments
Diffstat (limited to 'etc/isar')
-rw-r--r--etc/isar/Parsing.thy16
1 files changed, 12 insertions, 4 deletions
diff --git a/etc/isar/Parsing.thy b/etc/isar/Parsing.thy
index 68e2864f..60d47e3d 100644
--- a/etc/isar/Parsing.thy
+++ b/etc/isar/Parsing.thy
@@ -9,6 +9,10 @@ theory Parsing = Main:
the names of commands, such as theory or theorem or proof itself,
never mind thus assume end qed. *)
+(* At the moment, successive comments are amalgamated, and comments
+ following commands are wrapped into the command (so cannot be
+ hidden). *)
+
text {* Isar theories can have arbitrary literal text,
so the text must be ignored as well; thus. *}
@@ -22,10 +26,12 @@ text {* Isar theories can have arbitrary literal text,
text {* nesting (* may be the other way around *) *}
(* The main type of comment (* may be nested *)
- just like in SML. GNU Emacs supports this now, nicely,
- but XEmacs doesn't, so colouration goes wrong.
+ just like in SML. GNU Emacs [21.1] supports this now, nicely,
+ but XEmacs [21.4.8] doesn't, so colouration goes wrong.
If there are any command names inside this comment
- (e.g. theorem), it breaks the parser in XEmacs. *)
+ (e.g. theorem), it breaks the parser in XEmacs.
+ [ To process this in XEmacs, delete "thxxrem" above, C-c C-n, C-x u ]
+*)
(* Let's do my favourite proof. *)
@@ -61,5 +67,7 @@ end
(* That's the final command and it includes any text which follows it.
An oddity is that if there is a syntax error - unclosed comment
or whatever, after the last end, PG will say that it can't find
- a complete command! *)
+ a complete command!
+
+ Another oddity with comments at the end: these are left as "commands". *)