15b779d328
- enabling mixed linking to compile only non-system libs statically - lots of packaging updates to be able to build on RHEL4,5, Fedora9+ and be parallel-installable with rsyslog and/or sysklogd on those platforms - removing BR for flex & byacc to try to prevent files from being regenerated - fixing build error with cfg-lex.l and flex 2.5.4 - Fixed a possible DoS condition triggered by a destination port unreachable ICMP packet received from a UDP destination. syslog-ng started eating all available memory and CPU until it crashed if this happened. - Fixed the rate at which files regular were read using the file() source. - Report connection breaks as a write error instead of reporting POLLERR as the write error path reports more sensible information in the logs.
53 lines
1.6 KiB
VimL
53 lines
1.6 KiB
VimL
" Vim syntax file
|
|
" Language: syslog-ng: syslog-ng main configuration file (1.5.5a)
|
|
" Maintainer: --
|
|
" Last change: 2001 Apr 13
|
|
" URL: --
|
|
" syslog-ng's home: http://www.balabit.hu
|
|
" Something like this in filetype.vim would be helpful
|
|
" au BufNewFile,BufRead syslog-ng.conf setf syslog-ng
|
|
|
|
|
|
" Remove any old syntax stuff hanging around
|
|
syn clear
|
|
syn case match
|
|
set iskeyword=a-z,A-Z,48-57,_,-,.
|
|
|
|
syn keyword sysngStatement source destination filter log options
|
|
syn match sysngComment "#.*$"
|
|
syn match sysngString +"[^"]*"+
|
|
syn match sysngOctNumber "\<0\o\+\>"
|
|
syn match sysngDecNumber "\<\d\+\>"
|
|
syn match sysngHexNumber "\<0x\x\+\>"
|
|
syn keyword sysngBool yes no on off
|
|
syn match sysngIdentifier "\<[sdf]_\+\>"
|
|
|
|
syn keyword sysngDriver internal remote_control
|
|
syn keyword sysngDriver file fifo pipe door
|
|
syn keyword sysngDriver udp tcp udp6 tcp6
|
|
syn keyword sysngDriver sun_stream sun_streams sun-stream sun-streams
|
|
syn keyword sysngDriver unix_dgram unix_stream unix-dgram unix-stream
|
|
syn keyword sysngDriver usertty program
|
|
|
|
syn keyword sysngFilter not and or .. level priority facility
|
|
syn keyword sysngFilter program host match DEFAULT
|
|
|
|
if !exists("did_sysng_syntax_inits")
|
|
let did_sysng_syntax_inits = 1
|
|
|
|
hi link sysngStatement Statement
|
|
hi link sysngComment Comment
|
|
hi link sysngString String
|
|
hi link sysngOctNumber Number
|
|
hi link sysngDecNumber Number
|
|
hi link sysngHexNumber Number
|
|
hi link sysngBool Constant
|
|
hi link sysngIdentifier Identifier
|
|
|
|
hi link sysngDriver Type
|
|
hi link sysngFilter Operator
|
|
endif
|
|
|
|
let b:current_syntax = "syslog-ng"
|
|
|