diff options
| author | David Aspinall | 2002-07-12 08:13:19 +0000 |
|---|---|---|
| committer | David Aspinall | 2002-07-12 08:13:19 +0000 |
| commit | dc236b0cdbcec9ceae637fdb90f5aef46eecdb22 (patch) | |
| tree | 8a1b56eeccda60cb1bd31a568da490b09b4d3b85 | |
| parent | 716263806e4d240ce49287baad58feaa96c292bd (diff) | |
Add some nesting examples
| -rw-r--r-- | etc/isar/Parsing.thy | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/isar/Parsing.thy b/etc/isar/Parsing.thy index 4bd7e0a3..2252d96c 100644 --- a/etc/isar/Parsing.thy +++ b/etc/isar/Parsing.thy @@ -12,6 +12,21 @@ theory Parsing = Main: text {* Isar theories can have arbitrary literal text, so the text must be ignored as well; thus. *} +(* Those pieces of literal text are treated as another kind + of comment. What gets slight risky is when they're + text {* nested one inside the other. *}. + If Emacs confuses the two kinds of sequence, then + this can go wrong. +*) + +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. + If there are any command names inside this comment + (e.g. theorem), it breaks the parser in XEmacs. *) + (* Let's do my favourite proof. *) theorem and_comms: "A & B --> B & A" |
