~.vimsyntax
2 itemsDownload ./*


..
4c.vim
apache.vim


syntaxapache.vim
3 years agoDownloadRawClose


" Vim syntax file
" Language:	Apache log files
" Maintainer:	Ignacio Javier (ignacio.javier.igjav@gmail.com)
" Last change:	2008 May 12

" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
    syntax clear
elseif exists("b:current_syntax")
    finish
endif


" shut case off
syn case ignore

syn match   embraced  "\[[^\]]*\]" contains=ip,time
syn match   errorlv   "\[error\]\|\[warn\]\|\[notice\]"
syn match   errorlver "\[error\]"
syn match   time      contained "[^0-9a-z]\([0-9]\{2}:\)\{2}[0-9]\{2}[^0-9a-z]" 
syn match   ip        contained "[^0-9a-z]\([0-9]\{1,3}\.\)\{3}[0-9]\{1,3}[^0-9a-z]"
syn match   refer     "referer: http://.*"

if version >= 508 || !exists("did_apachelogs_syntax_inits")
  if version < 508
    let did_apachelogs_syntax_inits = 1
    command -nargs=+ HiLink hi link <args>
  else
    command -nargs=+ HiLink hi def link <args>
  endif

  HiLink embraced   String
  HiLink errorlv    Comment 
  HiLink errorlver  Error
  HiLink time       Identifier
  HiLink ip         Special 
  HiLink refer      Keyword 

  delcommand HiLink
endif


let b:current_syntax = "apachelogs"

" vim: ts=8 sw=2


Top
amalie at twily dot info
©twily.info 2013 - 2018



1 051 078 visits
... ^ v