summaryrefslogtreecommitdiff
path: root/runtime/syntax/asm.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-04-13 23:04:47 +0200
committerBram Moolenaar <Bram@vim.org>2012-04-13 23:04:47 +0200
commit53bfca22f1f67934defa5f9c62ae5a6d5cf9f198 (patch)
tree99509c9b58f5f10912f19b8179c4743d4c205835 /runtime/syntax/asm.vim
parent09210ac93cacd4552593604066a86b2e7036a636 (diff)
downloadvim-git-53bfca22f1f67934defa5f9c62ae5a6d5cf9f198.tar.gz
Updated runtime files.
Diffstat (limited to 'runtime/syntax/asm.vim')
-rw-r--r--runtime/syntax/asm.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/syntax/asm.vim b/runtime/syntax/asm.vim
index 0ce8d2399..f208245ab 100644
--- a/runtime/syntax/asm.vim
+++ b/runtime/syntax/asm.vim
@@ -3,7 +3,7 @@
" Maintainer: Erik Wognsen <erik.wognsen@gmail.com>
" Previous maintainer:
" Kevin Dahlhausen <kdahlhaus@yahoo.com>
-" Last Change: 2012 Jan 5
+" Last Change: 2012 Apr 09
" Thanks to Ori Avtalion for feedback on the comment markers!
@@ -56,6 +56,11 @@ syn keyword asmTodo contained TODO
" GAS supports one type of multi line comments:
syn region asmComment start="/\*" end="\*/" contains=asmTodo
+" GAS (undocumentedly?) supports C++ style comments. Unlike in C/C++ however,
+" a backslash ending a C++ style comment does not extend the comment to the
+" next line (hence the syntax region does not define 'skip="\\$"')
+syn region asmComment start="//" end="$" keepend contains=asmTodo
+
" Line comment characters depend on the target architecture and command line
" options and some comments may double as logical line number directives or
" preprocessor commands. This situation is described at