File: env.vim

package info (click to toggle)
vim 2%3A9.2.0218-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 96,428 kB
  • sloc: ansic: 435,795; cpp: 6,445; makefile: 4,644; sh: 2,569; java: 2,488; xml: 2,099; python: 1,716; perl: 1,419; awk: 730; lisp: 501; cs: 458; objc: 369; sed: 35; csh: 9; haskell: 1
file content (28 lines) | stat: -rw-r--r-- 848 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
" Vim syntax file
" Language:    env
" Maintainer:  DuckAfire <duckafire@gmail.com>
" Last Change: 2026 Jan 27
" Version:     2
" Changelog:
" 0. Create syntax file.
" 1. Remove unused variable (g:main_syntax).
" 2. Apply changes required by github@dkearns

if exists("b:current_syntax")
  finish
endif

syn match   envField   nextgroup=envValue         /^\h\%(\w\|\.\)*/
syn region  envValue   matchgroup=Operator        start=/=/ end=/$/
syn match   envComment contains=envTodo,envTitles /^#.*$/
syn keyword envTodo    contained                  CAUTION NOTE TODO WARN WARNING
syn match   envTitle   contained                  /^\s*#\s*\zs[A-Z0-9][A-Z0-9 ]*:/

hi def link envField   Identifier
hi def link envValue   String
hi def link envComment Comment
hi def link envTodo    Todo
hi def link envTitle   PreProc

let b:current_syntax = "env"