File: stgnew.vim

package info (click to toggle)
stgit 0.19-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,748 kB
  • sloc: python: 10,558; sh: 5,739; lisp: 2,678; makefile: 142; perl: 42
file content (32 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (5)
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
29
30
31
32
" Vim syntax file
" Language:     StGit 'stg new' commit message file
" Author:       Zane Bitter <zane.bitter@alliedtelesis.co.nz>

if exists("b:current_syntax")
  finish
endif


syn case match
syn sync minlines=50


if has("spell")
  syn spell toplevel
endif


syn match    stgnewFirstLine    "\%^.*" nextgroup=stgnewSTG,stgnewComment,stgnewBlank skipnl
syn match    stgnewSummary      "^.\{0,50\}" contained containedin=stgnewFirstLine nextgroup=stgnewOverflow contains=@Spell
syn match    stgnewOverflow     ".*" contained contains=@Spell
syn match    stgnewBlank        "^.\+" contained contains=@Spell
syn match    stgnewSTG          "^STG:.*"
syn match    stgnewComment      "^#.*"

hi def link  stgnewSummary      Keyword
hi def link  stgnewComment      Comment
hi def link  stgnewSTG          Comment
hi def link  stgnewBlank        Error


let b:current_syntax = "stgnew"