From 133e0091a8e3ebe35f213ece9a10a51dbb45d234 Mon Sep 17 00:00:00 2001 From: Benjamin Kowarsch Date: Tue, 15 Aug 2023 00:30:24 +0900 Subject: [PATCH] HELP file with dialect tag documentation --- Vim/HELP | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Vim/HELP diff --git a/Vim/HELP b/Vim/HELP new file mode 100644 index 0000000..275f0bc --- /dev/null +++ b/Vim/HELP @@ -0,0 +1,25 @@ +Dialect Tags in Modula-2 Source Files + +Vim will recognise comments with dialect tags to automatically select a given dialect. + +The syntax for a dialect tag comment is: + +taggedComment := + '(*!' dialectTag '*)' + ; + +dialectTag := + m2pim | m2iso | m2r10 + ; + +reserved words + m2pim = 'm2pim', m2iso = 'm2iso', m2r10 = 'm2r10' + +A dialect tag comment is recognised by Vim if it occurs within the first 200 lines of the source file. Only the very first such comment is recognised, any additional dialect tag comments are ignored. + +Example: + +DEFINITION MODULE FooLib; (*!m2pim*) +... + +[END OF FILE]