From 3d23f83716f073d138676a110e511c2194031ac1 Mon Sep 17 00:00:00 2001 From: ARM9 Date: Wed, 15 Jul 2015 13:04:59 +0200 Subject: [PATCH] cpp directives --- syntax/arm.vim | 4 ++-- syntax/include/arm_base_syntax.vim | 4 ++-- test/armv7-test.s | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/syntax/arm.vim b/syntax/arm.vim index a175ccb..0bb05a3 100644 --- a/syntax/arm.vim +++ b/syntax/arm.vim @@ -10,9 +10,9 @@ endif syn case ignore -if version >= 508 || !exists("did_armv6_syntax_inits") +if version >= 508 || !exists("did_arm_syntax_inits") if version < 508 - let did_armv6_syntax_inits = 1 + let did_arm_syntax_inits = 1 command -nargs=+ HiLink hi link else command -nargs=+ HiLink hi def link diff --git a/syntax/include/arm_base_syntax.vim b/syntax/include/arm_base_syntax.vim index da3a486..93f4c00 100644 --- a/syntax/include/arm_base_syntax.vim +++ b/syntax/include/arm_base_syntax.vim @@ -26,8 +26,8 @@ syn region armString start="'" skip=+\\'+ end="'\|$" " Assembler identifiers/labels/directives syn match armIdentifier "\<\h\w*\>" syn match armLabel "\<\h\w*:" -syn match armLabel "\d\{1,2\}[:fb]" -syn match armCPreProc "#\h\w*\>" +syn match armLabel "\<\d\{1,3\}[:fb]" +syn match armCPreProc "^\s*#\(include\|define\|undef\|if\|ifdef\|ifndef\|elif\|else\|endif\|error\|pragma\)\>" so :p:h/gas_directives.vim so :p:h/arm_directives.vim diff --git a/test/armv7-test.s b/test/armv7-test.s index fb46a3a..4d3893f 100644 --- a/test/armv7-test.s +++ b/test/armv7-test.s @@ -15,7 +15,7 @@ fcmpezs fcmpzs fdivs -vmul +vmul Q15, Q16, d31, s31, s32, d32 vdiv vsqrt