Skip to content

Commit

Permalink
HELP file with dialect tag documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
trijezdci committed Aug 14, 2023
1 parent 0057dea commit 133e009
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Vim/HELP
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit 133e009

Please sign in to comment.