aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/make.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-02 15:10:04 +0200
committerGitHub <noreply@github.com>2019-08-02 15:10:04 +0200
commit7cf0119c6857846fd1f254feb237f6137f140856 (patch)
tree1fb4d7c43a6cd86d7758bc0dc2d2aa23240b5947 /runtime/syntax/make.vim
parentb92a5bc3c4bdfddfc21638556ace6ef3fd90155c (diff)
parent532ee54a42a294073e8b441f3ce5a050d16963a2 (diff)
downloadrneovim-7cf0119c6857846fd1f254feb237f6137f140856.tar.gz
rneovim-7cf0119c6857846fd1f254feb237f6137f140856.tar.bz2
rneovim-7cf0119c6857846fd1f254feb237f6137f140856.zip
Merge #10666 from justinmk/vim-runtime
vim-patch: runtime updates
Diffstat (limited to 'runtime/syntax/make.vim')
-rw-r--r--runtime/syntax/make.vim27
1 files changed, 14 insertions, 13 deletions
diff --git a/runtime/syntax/make.vim b/runtime/syntax/make.vim
index 7072bab988..377e4450d9 100644
--- a/runtime/syntax/make.vim
+++ b/runtime/syntax/make.vim
@@ -1,8 +1,9 @@
" Vim syntax file
" Language: Makefile
-" Maintainer: Claudio Fleiner <claudio@fleiner.com>
-" URL: http://www.fleiner.com/vim/syntax/make.vim
-" Last Change: 2015 Feb 28
+" Maintainer: Roland Hieber <rohieb+vim-iR0jGdkV@rohieb.name>
+" Previous Maintainer: Claudio Fleiner <claudio@fleiner.com>
+" URL: https://github.com/vim/vim/syntax/make.vim
+" Last Change: 2019 Apr 02
" quit when a syntax file was already loaded
if exists("b:current_syntax")
@@ -18,7 +19,7 @@ syn match makeSpecial "^\s*[@+-]\+"
syn match makeNextLine "\\\n\s*"
" some directives
-syn match makePreCondit "^ *\(ifeq\>\|else\>\|endif\>\|ifneq\>\|ifdef\>\|ifndef\>\)"
+syn match makePreCondit "^ *\(ifn\=\(eq\|def\)\>\|else\(\s\+ifn\=\(eq\|def\)\)\=\>\|endif\>\)"
syn match makeInclude "^ *[-s]\=include"
syn match makeStatement "^ *vpath"
syn match makeExport "^ *\(export\|unexport\)\>"
@@ -31,8 +32,8 @@ syn region makeDefine start="^\s*define\s" end="^\s*endef\s*\(#.*\)\?$" contains
" Microsoft Makefile specials
syn case ignore
-syn match makeInclude "^! *include"
-syn match makePreCondit "! *\(cmdswitches\|error\|message\|include\|if\|ifdef\|ifndef\|else\|elseif\|else if\|else\s*ifdef\|else\s*ifndef\|endif\|undef\)\>"
+syn match makeInclude "^!\s*include"
+syn match makePreCondit "^!\s*\(cmdswitches\|error\|message\|include\|if\|ifdef\|ifndef\|else\|else\s*if\|else\s*ifdef\|else\s*ifndef\|endif\|undef\)\>"
syn case match
" identifiers
@@ -64,7 +65,7 @@ syn match makeCmdNextLine "\\\n."he=e-1 contained
" Statements / Functions (GNU make)
-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
+syn match makeStatement contained "(\(abspath\|addprefix\|addsuffix\|and\|basename\|call\|dir\|error\|eval\|file\|filter-out\|filter\|findstring\|firstword\|flavor\|foreach\|guile\|if\|info\|join\|lastword\|notdir\|or\|origin\|patsubst\|realpath\|shell\|sort\|strip\|subst\|suffix\|value\|warning\|wildcard\|word\|wordlist\|words\)\>"ms=s+1
" Comment
if exists("make_microsoft")
@@ -100,17 +101,17 @@ syn sync match makeCommandSync groupthere makeCommands "^[A-Za-z0-9_./$()%-][A-Z
" Define the default highlighting.
" Only when an item doesn't have highlighting yet
-hi def link makeNextLine makeSpecial
+hi def link makeNextLine makeSpecial
hi def link makeCmdNextLine makeSpecial
-hi def link makeSpecTarget Statement
+hi def link makeSpecTarget Statement
if !exists("make_no_commands")
-hi def link makeCommands Number
+hi def link makeCommands Number
endif
-hi def link makeImplicit Function
+hi def link makeImplicit Function
hi def link makeTarget Function
hi def link makeInclude Include
-hi def link makePreCondit PreCondit
-hi def link makeStatement Statement
+hi def link makePreCondit PreCondit
+hi def link makeStatement Statement
hi def link makeIdent Identifier
hi def link makeSpecial Special
hi def link makeComment Comment