Mercurial > vim
annotate runtime/compiler/mipspro_c89.vim @ 35792:f4b25cf637e7 v9.1.0616
patch 9.1.0616: filetype: Make syntax highlighting off for MS Makefiles
Commit: https://github.com/vim/vim/commit/eb4b903c9b238ebcc1d14cfcb207129b4931a33d
Author: Ken Takata <kentkt@csc.jp>
Date: Thu Jul 25 21:07:13 2024 +0200
patch 9.1.0616: filetype: Make syntax highlighting off for MS Makefiles
Problem: filetype: Make syntax highlighting off for MS Makefiles
Solution: Try to detect MS Makefiles and adjust syntax rules to it.
(Ken Takata)
Highlighting of variable expansion in Microsoft Makefile can be broken.
E.g.:
https://github.com/vim/vim/blob/2979cfc2627d76a9c09cad46a1647dcd4aa73f5f/src/Make_mvc.mak#L1331
Don't use backslash as escape characters if `make_microsoft` is set.
Also fix that `make_no_comments` was not considered if `make_microsoft`
was set.
Also add description for `make_microsoft` and `make_no_comments` to the
documentation and include a very simple filetype test
closes: #15341
Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Ken Takata <kentkt@csc.jp>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 25 Jul 2024 21:30:04 +0200 |
parents | e1df51f68736 |
children |
rev | line source |
---|---|
7 | 1 " Vim compiler file |
2 " Compiler: SGI IRIX 6.5 MIPSPro C (c89) | |
3 " Maintainer: David Harrison <david_jr@users.sourceforge.net> | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
4 " Last Change: 2012 Apr 30 |
34778
e1df51f68736
runtime: Remove fallback :CompilerSet definition from compiler plugins
Christian Brabandt <cb@256bit.org>
parents:
3496
diff
changeset
|
5 " 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) |
7 | 6 |
7 if exists("current_compiler") | |
8 finish | |
9 endif | |
10 let current_compiler = "mipspro_c89" | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
11 let s:keepcpo= &cpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
12 set cpo&vim |
7 | 13 |
14 CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l, | |
15 \%Wcc\-%n\ %.%#:\ WARNING\ File\ =\ %f\%\\,\ Line\ =\ %l, | |
16 \%Icc\-%n\ %.%#:\ REMARK\ File\ =\ %f\%\\,\ Line\ =\ %l, | |
17 \%-Z%p%^, | |
18 \%+C\ %\\{10}%m%., | |
19 \%+C\ \ %m, | |
20 \%-G\\s%#, | |
21 \%-G%.%# | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
22 |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
23 let &cpo = s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
24 unlet s:keepcpo |