comparison runtime/syntax/masm.vim @ 3312:b7811ab264bf v7.3.423

updated for version 7.3.423 Problem: Small mistakes in comments, proto and indent. Solution: Fix the mistakes. Also update runtime files
author Bram Moolenaar <bram@vim.org>
date Sat, 04 Feb 2012 21:59:01 +0100
parents 7bc41231fbc7
children 0c37f66b4f3b
comparison
equal deleted inserted replaced
3311:54d1536a1c8b 3312:b7811ab264bf
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Microsoft Macro Assembler (80x86) 2 " Language: Microsoft Macro Assembler (80x86)
3 " Orig Author: Rob Brady <robb@datatone.com> 3 " Orig Author: Rob Brady <robb@datatone.com>
4 " Maintainer: Wu Yongwei <wuyongwei@gmail.com> 4 " Maintainer: Wu Yongwei <wuyongwei@gmail.com>
5 " Last Change: $Date: 2007/04/21 13:20:15 $ 5 " Last Change: $Date: 2012/02/04 12:45:39 $
6 " $Revision: 1.44 $ 6 " $Revision: 1.46 $
7 7
8 " For version 5.x: Clear all syntax items 8 " For version 5.x: Clear all syntax items
9 " For version 6.x: Quit when a syntax file was already loaded 9 " For version 6.x: Quit when a syntax file was already loaded
10 if version < 600 10 if version < 600
11 syntax clear 11 syntax clear
12 elseif exists("b:current_syntax") 12 elseif exists("b:current_syntax")
13 finish 13 finish
14 endif 14 endif
15
16 let s:cpo_save = &cpo
17 set cpo&vim
15 18
16 syn case ignore 19 syn case ignore
17 20
18 21
19 syn match masmIdentifier "[@a-z_$?][@a-z0-9_$?]*" 22 syn match masmIdentifier "[@a-z_$?][@a-z0-9_$?]*"
182 syn keyword masmRegister CR0 CR2 CR3 CR4 185 syn keyword masmRegister CR0 CR2 CR3 CR4
183 syn keyword masmRegister DR0 DR1 DR2 DR3 DR6 DR7 186 syn keyword masmRegister DR0 DR1 DR2 DR3 DR6 DR7
184 syn keyword masmRegister TR3 TR4 TR5 TR6 TR7 187 syn keyword masmRegister TR3 TR4 TR5 TR6 TR7
185 syn match masmRegister "ST([0-7])" 188 syn match masmRegister "ST([0-7])"
186 189
190 " x86-64 registers
191 syn keyword masmRegister RAX RBX RCX RDX RSI RDI RBP RSP
192 syn keyword masmRegister R8 R9 R10 R11 R12 R13 R14 R15
193 syn keyword masmRegister R8D R9D R10D R11D R12D R13D R14D R15D
194 syn keyword masmRegister R8W R9W R10W R11W R12W R13W R14W R15W
195 syn keyword masmRegister R8B R9B R10B R11B R12B R13B R14B R15B
187 196
188 " Instruction prefixes 197 " Instruction prefixes
189 syn keyword masmOpcode LOCK REP REPE REPNE REPNZ REPZ 198 syn keyword masmOpcode LOCK REP REPE REPNE REPNZ REPZ
190 199
191 " 8086/8088 opcodes 200 " 8086/8088 opcodes
338 delcommand HiLink 347 delcommand HiLink
339 endif 348 endif
340 349
341 let b:current_syntax = "masm" 350 let b:current_syntax = "masm"
342 351
352 let &cpo = s:cpo_save
353 unlet s:cpo_save
354
343 " vim: ts=8 355 " vim: ts=8