Skip to content

Commit 35b712b

Browse files
committed
logs can also end on *.log*
1 parent c090930 commit 35b712b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Basic syntax highlighting for [lager](https://github.com/basho/lager) log files
66
Features
77
--------
88

9-
* highlights log level in different colors
9+
* highlights log levels in different colors
1010
* display timestamps gray
1111
* highlights module and function names
1212
* highlights PIDs and nodes

ftdetect/lagerLog.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
" Language: Erlang lager log files
22
" Maintainer: Mr. Pi <mrpi@mr-pi.de>
3-
" Last Change: 2013-11-10
4-
" Version: 1.0.0-r1
3+
" Last Change: 2013-12-10
4+
" Version: 1.0.1-r1
55

66
if did_filetype()
77
finish
88
endif
99

10-
au BufNewFile,BufRead *.log if getline(1) =~ '^\d\{4}-\d\{2}-\d\{2} [0-9:]\{8}\.\d\{3} \(\[debug\]\|\[info\]\|\[notice\]\|\[warning\]\|\[error\]\|\[critical\]\|\[alert\]\|\[emergency\]\).*$' | setf lagerLog | endif
10+
au BufNewFile,BufRead *.log* if getline(1) =~ '^\d\{4}-\d\{2}-\d\{2} [0-9:]\{8}\.\d\{3} \(\[debug\]\|\[info\]\|\[notice\]\|\[warning\]\|\[error\]\|\[critical\]\|\[alert\]\|\[emergency\]\).*$' | setf lagerLog | endif

0 commit comments

Comments
 (0)