mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
42 lines
1.6 KiB
VimL
42 lines
1.6 KiB
VimL
" 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 always-load append-path chdir complete conflict depends-on
|
|
syn keyword modCommand depends-on-any family getenv getvariant hide-modulefile
|
|
syn keyword modCommand hide-version is-avail is-loaded is-saved is-used lsb-release
|
|
syn keyword modCommand module module-alias module-forbid module-hide module-info
|
|
syn keyword modCommand module-tag module-version module-virtual module-whatis
|
|
syn keyword modCommand modulepath-label prepend-path prereq prereq-all prereq-any
|
|
syn keyword modCommand pushenv remove-path reportError reportWarning
|
|
syn keyword modCommand require-fullname set-alias set-function setenv source-sh system
|
|
syn keyword modCommand uname uncomplete unset-alias unset-function unsetenv variant
|
|
syn keyword modCommand 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:
|