mirror of
https://github.com/envmodules/modules.git
synced 2026-06-07 00:25:05 +08:00
Improve vim files to detect and highlight modulefiles: * add standard header information (like other files of this kind) * add vim options to edit these files at the footer * use regular method to base on Tcl syntax highlight to define modulefile syntax highlight (runtime command) * add protection code to quit when syntax file has already been loaded * define modulefile strings to highlight with "syn keyword" rather match for simpler syntax and better priority * sort modulefile keywords with alphabetical order * fix highlight of keywords containing a dash (-) character by adding this character to the iskeyword configuration option * use generic "Special" vim highlight keyword rather rely on a Tcl-specific one * remove redefinition of Tcl keywords as this is not needed anymore after the above changes