mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-15 13:55:07 +00:00
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.
36 lines
895 B
Bash
Executable File
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
|