Optianal suppor for C++ style single line comments

This adds 'g:gasCppComments' option to highlight C++ single line comments (// ...).
Fixes #6
This commit is contained in:
René Köcher 2016-07-08 08:05:05 +02:00 committed by GitHub
parent b2b34d6ff0
commit 3032456c31
1 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,8 @@
" Vim syntax file " Vim syntax file
" Language: GNU as (AT&T) assembler for X86 " Language: GNU as (AT&T) assembler for X86
" Maintainer: Rene Koecher <shirk@bitspin.org> " Maintainer: Rene Koecher <shirk@bitspin.org>
" Last Change: 2016 Mar 22 " Last Change: 2016 Jul 08
" Version: 0.10 " Version: 0.11
" Remark: Intel compatible instructions only (for now) " Remark: Intel compatible instructions only (for now)
" License: BSD (3 clause), see LICENSE " License: BSD (3 clause), see LICENSE
" "
@ -84,6 +84,9 @@ syn match gasOperator /[+-/*=|&~<>]\|<=\|>=\|<>/
syn region gasComment start=/\/\*/ end=/\*\// syn region gasComment start=/\/\*/ end=/\*\//
syn region gasCommentSingle start=/#/ end=/$/ syn region gasCommentSingle start=/#/ end=/$/
syn region gasCommentSingle start=/@/ end=/$/ syn region gasCommentSingle start=/@/ end=/$/
if exists('g:gasCppComments')
syn region gasCommentSingle start=/\/\// end=/$/
endif
" ARM specific directives " ARM specific directives
syn keyword gasDirectiveStoreARM .2byte .4byte .8byte syn keyword gasDirectiveStoreARM .2byte .4byte .8byte