Files
mercury/vim/ftplugin/mercuryhdr.sh
Ralph Becket ab949ba065 Files and instructions for adding Mercury syntax highlighting under Vim 6.0.
Etimated hours taken: 8
Branches: main

Files and instructions for adding Mercury syntax highlighting under Vim 6.0.

NEWS:
      Mention the new directory.

vim:
vim/after:
vim/after/filetype.vim:
vim/ftplugin:
vim/ftplugin/mercury.vim:
vim/ftplugin/mercuryhdr.vim:
vim/syntax:
vim/syntax/mercury.vim:
vim/README:
      New directory structure added and populated.

bindist/Mmakefile:
      Added VIM_FILES variable and commands to create
      $(MERCURY_VERSION)/vim if necessary and populate it.
2002-04-08 03:07:34 +00:00

36 lines
895 B
Bash
Executable File

#!/bin/sh
cat <<EOF
%------------------------------------------------------------------------------%
% $1
% $([ -n "$USERNAME" ] && echo $USERNAME "")<$USER@$(hostname -d)>
% $(date)
% vim: ft=mercury ff=unix ts=4 sw=4 et
%
%------------------------------------------------------------------------------%
:- module $(echo $1 | sed 's/\./__/g;s/__m$//').
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
%------------------------------------------------------------------------------%
%------------------------------------------------------------------------------%
:- implementation.
:- import_module .
%------------------------------------------------------------------------------%
main -->
%------------------------------------------------------------------------------%
%------------------------------------------------------------------------------%
EOF