Mercurial > vim
annotate runtime/syntax/ipfilter.vim @ 17470:d2a834aa7cc0 v8.1.1733
patch 8.1.1733: the man ftplugin leaves an empty buffer behind
commit https://github.com/vim/vim/commit/e5e6950193ddf365c6c507ddefcd7f9db939e5ac
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 22 22:09:21 2019 +0200
patch 8.1.1733: the man ftplugin leaves an empty buffer behind
Problem: The man ftplugin leaves an empty buffer behind.
Solution: Don't make new window and edit, use split. (Jason Franklin)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 22 Jul 2019 22:15:04 +0200 |
parents | 43efa4f5a8ea |
children | 1e9e9d89f0ee |
rev | line source |
---|---|
7 | 1 " ipfilter syntax file |
2 " Language: ipfilter configuration file | |
3 " Maintainer: Hendrik Scholz <hendrik@scholz.net> | |
146 | 4 " Last Change: 2005 Jan 27 |
7 | 5 " |
146 | 6 " http://www.wormulon.net/files/misc/ipfilter.vim |
7 | 7 " |
8 " This will also work for OpenBSD pf but there might be some tags that are | |
9 " not correctly identified. | |
10 " Please send comments to hendrik@scholz.net | |
11 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
146
diff
changeset
|
12 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
146
diff
changeset
|
13 if exists("b:current_syntax") |
7 | 14 finish |
15 endif | |
16 | |
146 | 17 " Comment |
18 syn match IPFComment /#.*$/ contains=ipfTodo | |
19 syn keyword IPFTodo TODO XXX FIXME contained | |
7 | 20 |
146 | 21 syn keyword IPFActionBlock block |
22 syn keyword IPFActionPass pass | |
23 syn keyword IPFProto tcp udp icmp | |
24 syn keyword IPFSpecial quick log first | |
25 " how could we use keyword for words with '-' ? | |
26 syn match IPFSpecial /return-rst/ | |
27 syn match IPFSpecial /dup-to/ | |
28 "syn match IPFSpecial /icmp-type unreach/ | |
29 syn keyword IPFAny all any | |
30 syn match IPFIPv4 /\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/ | |
31 syn match IPFNetmask /\/\d\+/ | |
7 | 32 |
146 | 33 " service name constants |
34 syn keyword IPFService auth bgp domain finger ftp http https ident | |
35 syn keyword IPFService imap irc isakmp kerberos mail nameserver nfs | |
36 syn keyword IPFService nntp ntp pop3 portmap pptp rpcbind rsync smtp | |
37 syn keyword IPFService snmp snmptrap socks ssh sunrpc syslog telnet | |
38 syn keyword IPFService tftp www | |
39 | |
40 " Comment | |
41 hi def link IPFComment Comment | |
42 hi def link IPFTodo Todo | |
43 | |
44 hi def link IPFService Constant | |
45 | |
46 hi def link IPFAction Type | |
7 | 47 hi def link ipfActionBlock String |
48 hi def link ipfActionPass Type | |
146 | 49 hi def link IPFSpecial Statement |
50 hi def link IPFIPv4 Label | |
51 hi def link IPFNetmask String | |
52 hi def link IPFAny Statement | |
53 hi def link IPFProto Identifier | |
7 | 54 |