Mercurial > vim
annotate runtime/syntax/syncolor.vim @ 34217:0f125612fd33 v9.1.0057
patch 9.1.0057: MS-Windows: Key event test still fails
Commit: https://github.com/vim/vim/commit/6a02eb073e1c801a5a92837d4b2d44b6a80afddd
Author: Christian Brabandt <cb@256bit.org>
Date: Thu Jan 25 22:28:37 2024 +0100
patch 9.1.0057: MS-Windows: Key event test still fails
Problem: MS-Windows: Key event test still fails
Solution: Skip testing CTRL-C, since it causes an Interrupt
which causes a test failure (after 9.1.0053)
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 25 Jan 2024 22:45:02 +0100 |
parents | d6b9d567433f |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax support file |
32770
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
19404
diff
changeset
|
2 " Maintainer: The Vim Project <https://github.com/vim/vim> |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
19404
diff
changeset
|
3 " Last Change: 2023 Aug 10 |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
19404
diff
changeset
|
4 " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
7 | 5 |
6 " This file sets up the default methods for highlighting. | |
7 " It is loaded from "synload.vim" and from Vim for ":syntax reset". | |
8 " Also used from init_highlight(). | |
9 | |
10 if !exists("syntax_cmd") || syntax_cmd == "on" | |
11 " ":syntax on" works like in Vim 5.7: set colors but keep links | |
12 command -nargs=* SynColor hi <args> | |
13 command -nargs=* SynLink hi link <args> | |
14 else | |
15 if syntax_cmd == "enable" | |
16 " ":syntax enable" keeps any existing colors | |
17 command -nargs=* SynColor hi def <args> | |
18 command -nargs=* SynLink hi def link <args> | |
19 elseif syntax_cmd == "reset" | |
20 " ":syntax reset" resets all colors to the default | |
21 command -nargs=* SynColor hi <args> | |
22 command -nargs=* SynLink hi! link <args> | |
23 else | |
24 " User defined syncolor file has already set the colors. | |
25 finish | |
26 endif | |
27 endif | |
28 | |
29 " Many terminals can only use six different colors (plus black and white). | |
30 " Therefore the number of colors used is kept low. It doesn't look nice with | |
31 " too many colors anyway. | |
32 " Careful with "cterm=bold", it changes the color to bright for some terminals. | |
33 " There are two sets of defaults: for a dark and a light background. | |
34 if &background == "dark" | |
35 SynColor Comment term=bold cterm=NONE ctermfg=Cyan ctermbg=NONE gui=NONE guifg=#80a0ff guibg=NONE | |
36 SynColor Constant term=underline cterm=NONE ctermfg=Magenta ctermbg=NONE gui=NONE guifg=#ffa0a0 guibg=NONE | |
37 SynColor Special term=bold cterm=NONE ctermfg=LightRed ctermbg=NONE gui=NONE guifg=Orange guibg=NONE | |
38 SynColor Identifier term=underline cterm=bold ctermfg=Cyan ctermbg=NONE gui=NONE guifg=#40ffff guibg=NONE | |
39 SynColor Statement term=bold cterm=NONE ctermfg=Yellow ctermbg=NONE gui=bold guifg=#ffff60 guibg=NONE | |
40 SynColor PreProc term=underline cterm=NONE ctermfg=LightBlue ctermbg=NONE gui=NONE guifg=#ff80ff guibg=NONE | |
41 SynColor Type term=underline cterm=NONE ctermfg=LightGreen ctermbg=NONE gui=bold guifg=#60ff60 guibg=NONE | |
42 SynColor Underlined term=underline cterm=underline ctermfg=LightBlue gui=underline guifg=#80a0ff | |
43 SynColor Ignore term=NONE cterm=NONE ctermfg=black ctermbg=NONE gui=NONE guifg=bg guibg=NONE | |
34099
d6b9d567433f
patch 9.1.0016: default diff highlighting is too noisy
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
44 SynColor Added term=NONE cterm=NONE ctermfg=Green ctermbg=NONE gui=NONE guifg=LimeGreen guibg=NONE |
d6b9d567433f
patch 9.1.0016: default diff highlighting is too noisy
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
45 SynColor Changed term=NONE cterm=NONE ctermfg=Blue ctermbg=NONE gui=NONE guifg=DodgerBlue guibg=NONE |
d6b9d567433f
patch 9.1.0016: default diff highlighting is too noisy
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
46 SynColor Removed term=NONE cterm=NONE ctermfg=Red ctermbg=NONE gui=NONE guifg=Red guibg=NONE |
7 | 47 else |
48 SynColor Comment term=bold cterm=NONE ctermfg=DarkBlue ctermbg=NONE gui=NONE guifg=Blue guibg=NONE | |
49 SynColor Constant term=underline cterm=NONE ctermfg=DarkRed ctermbg=NONE gui=NONE guifg=Magenta guibg=NONE | |
19404 | 50 " #6a5acd is SlateBlue |
51 SynColor Special term=bold cterm=NONE ctermfg=DarkMagenta ctermbg=NONE gui=NONE guifg=#6a5acd guibg=NONE | |
7 | 52 SynColor Identifier term=underline cterm=NONE ctermfg=DarkCyan ctermbg=NONE gui=NONE guifg=DarkCyan guibg=NONE |
53 SynColor Statement term=bold cterm=NONE ctermfg=Brown ctermbg=NONE gui=bold guifg=Brown guibg=NONE | |
19404 | 54 " #6a0dad is Purple |
55 SynColor PreProc term=underline cterm=NONE ctermfg=DarkMagenta ctermbg=NONE gui=NONE guifg=#6a0dad guibg=NONE | |
7 | 56 SynColor Type term=underline cterm=NONE ctermfg=DarkGreen ctermbg=NONE gui=bold guifg=SeaGreen guibg=NONE |
57 SynColor Underlined term=underline cterm=underline ctermfg=DarkMagenta gui=underline guifg=SlateBlue | |
58 SynColor Ignore term=NONE cterm=NONE ctermfg=white ctermbg=NONE gui=NONE guifg=bg guibg=NONE | |
34099
d6b9d567433f
patch 9.1.0016: default diff highlighting is too noisy
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
59 SynColor Added term=NONE cterm=NONE ctermfg=DarkGreen ctermbg=NONE gui=NONE guifg=SeaGreen guibg=NONE |
d6b9d567433f
patch 9.1.0016: default diff highlighting is too noisy
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
60 SynColor Changed term=NONE cterm=NONE ctermfg=Blue ctermbg=NONE gui=NONE guifg=DodgerBlue guibg=NONE |
d6b9d567433f
patch 9.1.0016: default diff highlighting is too noisy
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
61 SynColor Removed term=NONE cterm=NONE ctermfg=Red ctermbg=NONE gui=NONE guifg=Red guibg=NONE |
7 | 62 endif |
63 SynColor Error term=reverse cterm=NONE ctermfg=White ctermbg=Red gui=NONE guifg=White guibg=Red | |
64 SynColor Todo term=standout cterm=NONE ctermfg=Black ctermbg=Yellow gui=NONE guifg=Blue guibg=Yellow | |
65 | |
66 " Common groups that link to default highlighting. | |
67 " You can specify other highlighting easily. | |
68 SynLink String Constant | |
69 SynLink Character Constant | |
70 SynLink Number Constant | |
71 SynLink Boolean Constant | |
72 SynLink Float Number | |
73 SynLink Function Identifier | |
74 SynLink Conditional Statement | |
75 SynLink Repeat Statement | |
76 SynLink Label Statement | |
77 SynLink Operator Statement | |
78 SynLink Keyword Statement | |
79 SynLink Exception Statement | |
80 SynLink Include PreProc | |
81 SynLink Define PreProc | |
82 SynLink Macro PreProc | |
83 SynLink PreCondit PreProc | |
84 SynLink StorageClass Type | |
85 SynLink Structure Type | |
86 SynLink Typedef Type | |
87 SynLink Tag Special | |
88 SynLink SpecialChar Special | |
89 SynLink Delimiter Special | |
90 SynLink SpecialComment Special | |
91 SynLink Debug Special | |
92 | |
93 delcommand SynColor | |
94 delcommand SynLink |