comparison runtime/syntax/asm.vim @ 2152:b9e314fe473f

Updated runtime files.
author Bram Moolenaar <bram@zimbu.org>
date Fri, 14 May 2010 23:24:24 +0200
parents f3c987fb99b9
children ba708ee8d69d
comparison
equal deleted inserted replaced
2151:ae22c450546c 2152:b9e314fe473f
1 " Vim syntax file 1 " Vim syntax file
2 " Language: GNU Assembler 2 " Language: GNU Assembler
3 " Maintainer: Erik Wognsen <erik.wognsen@gmail.com> 3 " Maintainer: Erik Wognsen <erik.wognsen@gmail.com>
4 " Previous maintainer: 4 " Previous maintainer:
5 " Kevin Dahlhausen <kdahlhaus@yahoo.com> 5 " Kevin Dahlhausen <kdahlhaus@yahoo.com>
6 " Last Change: 2010 Jan 9 6 " Last Change: 2010 Apr 18
7
8 " Thanks to Ori Avtalion for feedback on the comment markers!
7 9
8 " For version 5.x: Clear all syntax items 10 " For version 5.x: Clear all syntax items
9 " For version 6.0 and later: Quit when a syntax file was already loaded 11 " For version 6.0 and later: Quit when a syntax file was already loaded
10 if version < 600 12 if version < 600
11 syntax clear 13 syntax clear
43 syn match decNumber "[1-9]\d*" 45 syn match decNumber "[1-9]\d*"
44 syn match octNumber "0[0-7][0-7]\+" 46 syn match octNumber "0[0-7][0-7]\+"
45 syn match hexNumber "0[xX][0-9a-fA-F]\+" 47 syn match hexNumber "0[xX][0-9a-fA-F]\+"
46 syn match binNumber "0[bB][0-1]*" 48 syn match binNumber "0[bB][0-1]*"
47 49
48 syn match asmComment "#.*" 50 syn keyword asmTodo contained TODO
49 syn region asmComment start="/\*" end="\*/" 51
52 " GAS supports various comment markers as described here:
53 " http://sourceware.org/binutils/docs-2.19/as/Comments.html
54 " I have commented out the ARM comment marker "@" by default as I think more
55 " people are using "@" with the .type directive. See
56 " http://sourceware.org/binutils/docs-2.19/as/Type.html
57 syn region asmComment start="/\*" end="\*/" contains=asmTodo
58 syn match asmComment "[#;!|].*" contains=asmTodo
59 " syn match asmComment "@.*" contains=asmTodo
50 60
51 syn match asmInclude "\.include" 61 syn match asmInclude "\.include"
52 syn match asmCond "\.if" 62 syn match asmCond "\.if"
53 syn match asmCond "\.else" 63 syn match asmCond "\.else"
54 syn match asmCond "\.endif" 64 syn match asmCond "\.endif"
73 83
74 " The default methods for highlighting. Can be overridden later 84 " The default methods for highlighting. Can be overridden later
75 HiLink asmSection Special 85 HiLink asmSection Special
76 HiLink asmLabel Label 86 HiLink asmLabel Label
77 HiLink asmComment Comment 87 HiLink asmComment Comment
88 HiLink asmTodo Todo
78 HiLink asmDirective Statement 89 HiLink asmDirective Statement
79 90
80 HiLink asmInclude Include 91 HiLink asmInclude Include
81 HiLink asmCond PreCondit 92 HiLink asmCond PreCondit
82 HiLink asmMacro Macro 93 HiLink asmMacro Macro