diff --git a/syntax/gas.vim b/syntax/gas.vim index c936716..b6102cd 100644 --- a/syntax/gas.vim +++ b/syntax/gas.vim @@ -2013,13 +2013,14 @@ call MapOpcode('gasOpcode_X64_VMX' , 'x64' , 'vmx') call MapOpcode('gasOpcode_X86_64_Base' , 'x64' , 'base') " support CPP preprocessor tags -syn case match +if !exists('g:gasDisablePreproc') && !exists('b:gasDisablePreproc') + syn case match -syn include @cPP syntax/c.vim -syn match cPPLineCont "\\$" contained - -syn region cPPPreProc start=/^\s*#\s*\(if\|else\|endif\|define\|include\)/ end=/$/ contains=@cPP,cPPLineCont + syn include @cPP syntax/c.vim + syn match cPPLineCont "\\$" contained + syn region cPPPreProc start=/^\s*#\s*\(if\|else\|endif\|define\|include\)/ end=/$/ contains=@cPP,cPPLineCont +endif " finishing touches let b:current_syntax = "gas"