comparison runtime/syntax/make.vim @ 34:e170173ecb68 current-release

before ack base protocol.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 26 Nov 2008 15:02:10 +0900
parents 76efa0be13f1
children
comparison
equal deleted inserted replaced
33:7d0d8b831f5a 34:e170173ecb68
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Makefile 2 " Language: Makefile
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com> 3 " Maintainer: Claudio Fleiner <claudio@fleiner.com>
4 " URL: http://www.fleiner.com/vim/syntax/make.vim 4 " URL: http://www.fleiner.com/vim/syntax/make.vim
5 " Last Change: 2007 Apr 30 5 " Last Change: 2008 Aug 04
6 6
7 " For version 5.x: Clear all syntax items 7 " For version 5.x: Clear all syntax items
8 " For version 6.x: Quit when a syntax file was already loaded 8 " For version 6.x: Quit when a syntax file was already loaded
9 if version < 600 9 if version < 600
10 syntax clear 10 syntax clear
61 syn region makeCommands start=";"hs=s+1 start="^\t" end="^[^\t#]"me=e-1,re=e-1 end="^$" contained contains=makeCmdNextLine,makeSpecial,makeComment,makeIdent,makePreCondit,makeDefine,makeDString,makeSString nextgroup=makeCommandError 61 syn region makeCommands start=";"hs=s+1 start="^\t" end="^[^\t#]"me=e-1,re=e-1 end="^$" contained contains=makeCmdNextLine,makeSpecial,makeComment,makeIdent,makePreCondit,makeDefine,makeDString,makeSString nextgroup=makeCommandError
62 syn match makeCmdNextLine "\\\n."he=e-1 contained 62 syn match makeCmdNextLine "\\\n."he=e-1 contained
63 63
64 64
65 " Statements / Functions (GNU make) 65 " Statements / Functions (GNU make)
66 syn match makeStatement contained "(\(subst\|addprefix\|addsuffix\|basename\|call\|dir\|error\|eval\|filter-out\|filter\|findstring\|firstword\|foreach\|if\|join\|notdir\|origin\|patsubst\|shell\|sort\|strip\|suffix\|warning\|wildcard\|word\|wordlist\|words\)\>"ms=s+1 66 syn match makeStatement contained "(\(subst\|abspath\|addprefix\|addsuffix\|and\|basename\|call\|dir\|error\|eval\|filter-out\|filter\|findstring\|firstword\|flavor\|foreach\|if\|info\|join\|lastword\|notdir\|or\|origin\|patsubst\|realpath\|shell\|sort\|strip\|suffix\|value\|warning\|wildcard\|word\|wordlist\|words\)\>"ms=s+1
67 67
68 " Comment 68 " Comment
69 if exists("make_microsoft") 69 if exists("make_microsoft")
70 syn match makeComment "#.*" contains=@Spell,makeTodo 70 syn match makeComment "#.*" contains=@Spell,makeTodo
71 elseif !exists("make_no_comments") 71 elseif !exists("make_no_comments")