annotate runtime/colors/industry.vim @ 21072:42e2fb7ec6e1

patch 8.2.1087: possible memory leak when file expansion fails Commit: https://github.com/vim/vim/commit/566cc8c72bb8036f015a435800f28ef9f6a9a3b6 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 29 21:14:51 2020 +0200 patch 8.2.1087: possible memory leak when file expansion fails Problem: Possible memory leak when file expansion fails. Solution: Clear the grow array when returning FAIL. Use an error message instead of an empty string.
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Jun 2020 21:15:03 +0200
parents 657ade71d395
children 82244cfc4694
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5734
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim color file
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Maintainer: Shian Lee
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 " Last Change: 2014 Mar 6 (for vim 7.4)
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 " Remark: "industry" stands for 'industrial' color scheme. In industrial
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 " HMI (Human-Machine-Interface) programming, using a standard color
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 " scheme is mandatory in many cases (in traffic-lights for example):
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 " LIGHT_RED is 'Warning'
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 " LIGHT_YELLOW is 'Attention'
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 " LIGHT_GREEN is 'Normal'
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 " LIGHT_MAGENTA is 'Warning-Attention' (light RED-YELLOW)
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 " LIGHT_CYAN is 'Attention-Normal' (light YELLOW-GREEN).
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 " BLACK is Dark-High-Contrast Background for maximum safety.
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 " BLUE is Shade of BLACK (not supposed to get attention).
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 "
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 " Industrial color scheme is by nature clear, safe and productive.
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 " Yet, depends on the file type's syntax, it might appear incorrect.
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 " Reset to dark background, then reset everything to defaults:
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 set background=dark
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 highlight clear
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 if exists("syntax_on")
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 syntax reset
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 endif
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 let colors_name = "industry"
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 " First set Normal to regular white on black text colors:
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 hi Normal ctermfg=LightGray ctermbg=Black guifg=#dddddd guibg=Black
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 " Syntax highlighting (other color-groups using default, see :help group-name):
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 hi Comment cterm=NONE ctermfg=DarkCyan gui=NONE guifg=#00aaaa
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 hi Constant cterm=NONE ctermfg=LightCyan gui=NONE guifg=#00ffff
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 hi Identifier cterm=NONE ctermfg=LightMagenta gui=NONE guifg=#ff00ff
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 hi Function cterm=NONE ctermfg=LightGreen gui=NONE guifg=#00ff00
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 hi Statement cterm=NONE ctermfg=White gui=bold guifg=#ffffff
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 hi PreProc cterm=NONE ctermfg=Yellow gui=NONE guifg=#ffff00
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 hi Type cterm=NONE ctermfg=LightGreen gui=bold guifg=#00ff00
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 hi Special cterm=NONE ctermfg=LightRed gui=NONE guifg=#ff0000
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 hi Delimiter cterm=NONE ctermfg=Yellow gui=NONE guifg=#ffff00
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40