1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
" Vim syntax file
" Language: Tcl Modulefile
" Maintainer: Xavier Delaruelle <xavier.delaruelle@cea.fr>
" Original: Felix Neumärker <xdch47@posteo.de>
" Reference: https://modules.readthedocs.io/en/latest/modulefile.html
" Quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
runtime syntax/tcl.vim
syn iskeyword @,48-57,_,192-255,-
" Modulefile commands
syn keyword modCommand add-property always-load append-path chdir complete conflict
syn keyword modCommand depends-on depends-on-any extensions family getenv getvariant
syn keyword modCommand haveDynamicMPATH hide-modulefile hide-version is-avail is-loaded
syn keyword modCommand is-saved is-used lsb-release module module-alias module-forbid
syn keyword modCommand module-help module-hide module-info module-tag module-version
syn keyword modCommand module-virtual module-warn module-whatis modulepath-label
syn keyword modCommand prepend-path prereq prereq-all prereq-any provide pushenv
syn keyword modCommand remove-path reportError reportWarning require-fullname set-alias
syn keyword modCommand set-function setenv source-sh system uname uncomplete unset-alias
syn keyword modCommand unset-function unsetenv variant versioncmp x-resource
" Modulefile procedures
syn keyword modProc ModulesHelp ModulesDisplay ModulesTest
" Modulefile variables
syn keyword modVar ModulesVersion ModulesCurrentModulefile ModuleTool ModuleToolVersion
syn keyword modVar ModuleVariant
hi def link modCommand Special
hi def link modProc Special
hi def link modVar Special
let b:current_syntax = "modulefile"
" vim:set tabstop=4 shiftwidth=4 expandtab textwidth=100:
|