comparison runtime/syntax/foxpro.vim @ 10048:43efa4f5a8ea

commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 23:26:57 2016 +0200 Updated runtime files. Remove version checks for Vim older than 6.0.
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Aug 2016 23:30:09 +0200
parents e63691e7c504
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
11 " Change Log: added support for FoxPro Codebook highlighting 11 " Change Log: added support for FoxPro Codebook highlighting
12 " corrected highlighting of comments that do NOT start in col 1 12 " corrected highlighting of comments that do NOT start in col 1
13 " corrected highlighting of comments at end of line (&&) 13 " corrected highlighting of comments at end of line (&&)
14 " 14 "
15 " 15 "
16 if version < 600 16 " quit when a syntax file was already loaded
17 syntax clear 17 if exists("b:current_syntax")
18 elseif exists("b:current_syntax")
19 finish 18 finish
20 endif 19 endif
21 20
22 " FoxPro Codebook Naming Conventions 21 " FoxPro Codebook Naming Conventions
23 syn match foxproCBConst "\<[c][A-Z][A-Za-z0-9_]*\>" 22 syn match foxproCBConst "\<[c][A-Z][A-Za-z0-9_]*\>"
689 syn match foxproParenErr ")" 688 syn match foxproParenErr ")"
690 689
691 syn sync minlines=1 maxlines=3 690 syn sync minlines=1 maxlines=3
692 691
693 " Define the default highlighting. 692 " Define the default highlighting.
694 " For version 5.7 and earlier: only when not done already 693 " Only when an item doesn't have highlighting yet
695 " For version 5.8 and later: only when an item doesn't have highlighting yet 694 command -nargs=+ HiLink hi def link <args>
696 if version >= 508 || !exists("did_foxpro_syn_inits") 695
697 if version < 508 696 HiLink foxproSpecial Special
698 let did_foxpro_syn_inits = 1 697 HiLink foxproAtSymbol Special
699 command -nargs=+ HiLink hi link <args> 698 HiLink foxproAtCmd Statement
700 else 699 HiLink foxproPreProc PreProc
701 command -nargs=+ HiLink hi def link <args> 700 HiLink foxproFunc Identifier
702 endif 701 HiLink foxproCmd Statement
703 702 HiLink foxproEnBlk Type
704 HiLink foxproSpecial Special 703 HiLink foxproSysVar String
705 HiLink foxproAtSymbol Special 704 HiLink foxproString String
706 HiLink foxproAtCmd Statement 705 HiLink foxproConst Constant
707 HiLink foxproPreProc PreProc 706 HiLink foxproNumber Number
708 HiLink foxproFunc Identifier 707 HiLink foxproFloat Float
709 HiLink foxproCmd Statement 708 HiLink foxproComment Comment
710 HiLink foxproEnBlk Type 709 HiLink foxproParenErr Error
711 HiLink foxproSysVar String 710 HiLink foxproCBConst PreProc
712 HiLink foxproString String 711 HiLink foxproCBField Special
713 HiLink foxproConst Constant 712 HiLink foxproCBVar Identifier
714 HiLink foxproNumber Number 713 HiLink foxproCBWin Special
715 HiLink foxproFloat Float 714 HiLink foxproCBObject Identifier
716 HiLink foxproComment Comment 715
717 HiLink foxproParenErr Error 716 delcommand HiLink
718 HiLink foxproCBConst PreProc
719 HiLink foxproCBField Special
720 HiLink foxproCBVar Identifier
721 HiLink foxproCBWin Special
722 HiLink foxproCBObject Identifier
723
724 delcommand HiLink
725 endif
726 717
727 let b:current_syntax = "foxpro" 718 let b:current_syntax = "foxpro"