File: survex-err.vim

package info (click to toggle)
survex 1.4.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,376 kB
  • sloc: ansic: 21,700; cpp: 18,177; sh: 5,942; javascript: 832; perl: 755; makefile: 614; python: 83; xml: 35
file content (36 lines) | stat: -rw-r--r-- 1,297 bytes parent folder | download | duplicates (2)
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
33
34
35
36
" Vim syntax file
" Language:     Survex loop closure errors
"
" Copyright (C) 2006 Thomas Holder
"
" This program is free software; you can redistribute it and/or modify
" it under the terms of the GNU General Public License as published by
" the Free Software Foundation; either version 2 of the License, or
" (at your option) any later version.
"
" This program is distributed in the hope that it will be useful,
" but WITHOUT ANY WARRANTY; without even the implied warranty of
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
" GNU General Public License for more details.
"
" You should have received a copy of the GNU General Public License
" along with this program; if not, see
" <https://www.gnu.org/licenses/>.

syn match svxPErrSmall	/Error\s\+\d\.\d\{2\}%/
syn match svxPErrBig	/Error\s\+\d\{2,\}\.\d\{2\}%/
syn match svxErrSmall	/^\d\.\d*$/
syn match svxErrBig	/^\d\{2,\}\.\d*$/
syn match svxHVErrSmall	/\<[HV]: \d\.\d*\>/
syn match svxHVErrBig	/\<[HV]: \d\{2,\}\.\d*\>/
syn match svxPolygon	/^[-_.a-zA-Z0-9]\+\( [-=] [-_.a-zA-Z0-9]\+\)\+$/

hi link svxPErrSmall	Statement
hi link svxErrSmall	Statement
hi link svxHVErrSmall	Statement
hi link svxPErrBig	Error
hi link svxErrBig	Error
hi link svxHVErrBig	Error
hi link svxPolygon	Identifier

map <buffer> <F9> :quit<CR>