" Vim syntax file " Language: HP-41 " Version: 0.6 " Maintainer: Geir Isene " Last Change: 2010-11-18 " Filenames: *.41 " URL: http://isene.com/ " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded if version < 600 syntax clear elseif exists("b:current_syntax") finish endif syntax match hp41LineNumber "^ *[0-9]*" syntax match hp41LBL ".\=LBL [0-9]*" syntax match hp41GTO "GTO.*" syntax match hp41XEQ "XEQ.*" syntax match hp41RTN "RTN.*" syntax match hp41END "END.*" syntax match hp41Alpha "\".*\"" " Define the default highlighting. " For version 5.7 and earlier: only when not done already " For version 5.8 and later: only when an item doesn't have highlighting yet if version >= 508 || !exists("did_crontab_syn_inits") if version < 508 let did_crontab_syn_inits = 1 command -nargs=+ HiLink hi link else command -nargs=+ HiLink hi def link endif HiLink hp41LineNumber Number HiLink hp41LBL Label HiLink hp41GTO Structure HiLink hp41XEQ Structure HiLink hp41RTN Define HiLink hp41END Define HiLink hp41Alpha Comment delcommand HiLink endif let b:current_syntax = "hp41" " vim: ts=8