annotate runtime/syntax/hex.vim @ 2451:0b8612c2814d vim73

Fix: changing case of a character removed combining characters.
author Bram Moolenaar <bram@vim.org>
date Sun, 01 Aug 2010 14:22:48 +0200
parents 3fc0f57ecb91
children 12155a47f6c2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Intel hex MCS51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Sams Ricahrd <sams@ping.at>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2003 Apr 25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " storage types
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match hexChecksum "[0-9a-fA-F]\{2}$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match hexAdress "^:[0-9a-fA-F]\{6}" contains=hexDataByteCount
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match hexRecType "^:[0-9a-fA-F]\{8}" contains=hexAdress
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match hexDataByteCount contained "^:[0-9a-fA-F]\{2}" contains=hexStart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match hexStart contained "^:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match hexExtAdrRec "^:02000002[0-9a-fA-F]\{4}" contains=hexSpecRec
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match hexExtLinAdrRec "^:02000004[0-9a-fA-F]\{4}" contains=hexSpecRec
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match hexSpecRec contained "^:0[02]00000[124]" contains=hexStart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match hexEOF "^:00000001" contains=hexStart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 if version >= 508 || !exists("did_hex_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 let did_hex_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " The default methods for highlighting. Can be overridden later
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 HiLink hexStart SpecialKey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 HiLink hexDataByteCount Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 HiLink hexAdress Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 HiLink hexRecType WarningMsg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 HiLink hexChecksum Search
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 HiLink hexExtAdrRec hexAdress
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 HiLink hexEOF hexSpecRec
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink hexExtLinAdrRec hexAdress
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink hexSpecRec DiffAdd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 let b:current_syntax = "hex"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " vim: ts=8