# HG changeset patch # User Oleksandr Gavenko # Date 1488355350 -7200 # Node ID d64d7d3699b98fe8428fdd699edd842c9d9a346d # Parent e8ad022540d4ba0982382d9f0ef47dd582284b18 Highlight optional year and milliseconds parts. diff -r e8ad022540d4 -r d64d7d3699b9 log4-hi-mode.el --- a/log4-hi-mode.el Mon Feb 27 21:24:10 2017 +0200 +++ b/log4-hi-mode.el Wed Mar 01 10:02:30 2017 +0200 @@ -34,7 +34,7 @@ '(("at [[:alnum:].]+\\.\\([[:alnum:]$]+\\.[[:alnum:]$<>]+\\)([[:alnum:]]+\\.java:[0-9]+)" 1 'log4-hi-func-face) )) (defvar log4-hi-time-keywords - '(("\\<[0-9]?[0-9]:[0-9][0-9]:[0-9][0-9]\\>" . 'log4-hi-time-face))) + '(("\\(:?[0-9]\\{2\\}?[0-9]\\{2\\}.[0-9]\\{2\\}.[0-9]\\{2\\}.\\|\\<\\)[0-9]?[0-9]:[0-9][0-9]:[0-9][0-9]\\>\\(:?\\.[0-9]\\{3\\}\\)?" . 'log4-hi-time-face))) (defvar log4-hi-func t "Mark to use hilighting of function names in stacktraces. Currently only Java supported.")