comparison runtime/syntax/simula.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 3fc0f57ecb91
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
2 " Language: Simula 2 " Language: Simula
3 " Maintainer: Haakon Riiser <hakonrk@fys.uio.no> 3 " Maintainer: Haakon Riiser <hakonrk@fys.uio.no>
4 " URL: http://folk.uio.no/hakonrk/vim/syntax/simula.vim 4 " URL: http://folk.uio.no/hakonrk/vim/syntax/simula.vim
5 " Last Change: 2001 May 15 5 " Last Change: 2001 May 15
6 6
7 " For version 5.x: Clear all syntax items 7 " quit when a syntax file was already loaded
8 " For version 6.x: Quit when a syntax file was already loaded 8 if exists("b:current_syntax")
9 if version < 600
10 syn clear
11 elseif exists("b:current_syntax")
12 finish 9 finish
13 endif 10 endif
14 11
15 " No case sensitivity in Simula 12 " No case sensitivity in Simula
16 syn case ignore 13 syn case ignore
56 " Real with optional exponent 53 " Real with optional exponent
57 syn match simulaReal "-\=\<\d\+\(\.\d\+\)\=\(&&\=[+-]\=\d\+\)\=\>" 54 syn match simulaReal "-\=\<\d\+\(\.\d\+\)\=\(&&\=[+-]\=\d\+\)\=\>"
58 " Real starting with a `.', optional exponent 55 " Real starting with a `.', optional exponent
59 syn match simulaReal "-\=\.\d\+\(&&\=[+-]\=\d\+\)\=\>" 56 syn match simulaReal "-\=\.\d\+\(&&\=[+-]\=\d\+\)\=\>"
60 57
61 if version >= 508 || !exists("did_simula_syntax_inits") 58 command -nargs=+ HiLink hi def link <args>
62 if version < 508
63 let did_simula_syntax_inits = 1
64 command -nargs=+ HiLink hi link <args>
65 else
66 command -nargs=+ HiLink hi def link <args>
67 endif
68 59
69 HiLink simulaAssigned Identifier 60 HiLink simulaAssigned Identifier
70 HiLink simulaBoolean Boolean 61 HiLink simulaBoolean Boolean
71 HiLink simulaCharacter Character 62 HiLink simulaCharacter Character
72 HiLink simulaCharError Error 63 HiLink simulaCharError Error
73 HiLink simulaComment Comment 64 HiLink simulaComment Comment
74 HiLink simulaCompound Statement 65 HiLink simulaCompound Statement
75 HiLink simulaConditional Conditional 66 HiLink simulaConditional Conditional
76 HiLink simulaConstant Constant 67 HiLink simulaConstant Constant
77 HiLink simulaFunction Function 68 HiLink simulaFunction Function
78 HiLink simulaNumber Number 69 HiLink simulaNumber Number
79 HiLink simulaOperator Operator 70 HiLink simulaOperator Operator
80 HiLink simulaReal Float 71 HiLink simulaReal Float
81 HiLink simulaReferenceType Type 72 HiLink simulaReferenceType Type
82 HiLink simulaRepeat Repeat 73 HiLink simulaRepeat Repeat
83 HiLink simulaReserved Error 74 HiLink simulaReserved Error
84 HiLink simulaSemicolon Statement 75 HiLink simulaSemicolon Statement
85 HiLink simulaSpecial Special 76 HiLink simulaSpecial Special
86 HiLink simulaSpecialChar SpecialChar 77 HiLink simulaSpecialChar SpecialChar
87 HiLink simulaSpecialCharErr Error 78 HiLink simulaSpecialCharErr Error
88 HiLink simulaStatement Statement 79 HiLink simulaStatement Statement
89 HiLink simulaStorageClass StorageClass 80 HiLink simulaStorageClass StorageClass
90 HiLink simulaString String 81 HiLink simulaString String
91 HiLink simulaStructure Structure 82 HiLink simulaStructure Structure
92 HiLink simulaTodo Todo 83 HiLink simulaTodo Todo
93 HiLink simulaType Type 84 HiLink simulaType Type
94 85
95 delcommand HiLink 86 delcommand HiLink
96 endif
97 87
98 let b:current_syntax = "simula" 88 let b:current_syntax = "simula"
99 " vim: sts=4 sw=4 ts=8 89 " vim: sts=4 sw=4 ts=8