Skip to content

Instantly share code, notes, and snippets.

@geermc4
Created March 5, 2013 21:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geermc4/5094632 to your computer and use it in GitHub Desktop.
Save geermc4/5094632 to your computer and use it in GitHub Desktop.
work in progress, colors for a rails production log
" Vim syntax file
" Language: railslog
" Maintainer: German Garcia <geermc4@gmail.com>
" Last Change: 5 March 2013
if exists("b:current_syntax")
finish
endif
syn match controller "Processing by.*"
syn match redirect "Redirected to.*"
syn match errors ".*Internal Server Error.*"
syn match request "Started.*"
syn match gateway_params contained ' *.*: '
syn region gateway_err start="Gateway Error" end="^\n" contains=gateway_params
hi controller ctermfg=magenta guifg=magenta
hi redirect ctermfg=Yellow guifg=Yellow
hi errors ctermfg=Red guifg=Black guibg=Red
hi request ctermfg=Green guifg=Green
hi gateway_params ctermfg=Cyan guifg=Cyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment