diff runtime/syntax/ninja.vim @ 3513:1b584a6f446c

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Fri, 18 May 2012 13:46:39 +0200
parents ba708ee8d69d
children 11d40fc82f11
line wrap: on
line diff
--- a/runtime/syntax/ninja.vim
+++ b/runtime/syntax/ninja.vim
@@ -1,8 +1,8 @@
 " ninja build file syntax.
 " Language: ninja build file as described at
 "           http://martine.github.com/ninja/manual.html
-" Version: 1.0
-" Last Change: 2012 Jan 04
+" Version: 1.1
+" Last Change: 2012/05/13
 " Maintainer: Nicolas Weber <nicolasweber@gmx.de>
 
 " ninja lexer and parser are at
@@ -15,6 +15,8 @@ endif
 
 syn case match
 
+syn match ninjaComment /#.*/
+
 " Toplevel statements are the ones listed here and
 " toplevel variable assignments (ident '=' value).
 " lexer.in.cc, ReadToken() and parsers.cc, Parse()
@@ -53,6 +55,7 @@ syn match   ninjaVar       "\${[a-zA-Z0-
 " order-only dependency ||
 syn match ninjaOperator "\(=\|:\||\|||\)\ze\s"
 
+hi def link ninjaComment Comment
 hi def link ninjaKeyword Keyword
 hi def link ninjaRuleCommand Statement
 hi def link ninjaWrapLineOperator ninjaOperator