From f9be11a822fb225b1473bebf40f68c92fe001d96 Mon Sep 17 00:00:00 2001 From: MTDL9 <40929090+MTDL9@users.noreply.github.com> Date: Sun, 24 Nov 2019 08:25:20 +0100 Subject: [PATCH] Update logFilePath matching to avoid matching a/b patterns This applies only when there is a slash between words which do not start with a leading slash --- syntax/log.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/log.vim b/syntax/log.vim index a8a90d5..670d89f 100644 --- a/syntax/log.vim +++ b/syntax/log.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Generic log file " Maintainer: MTDL9 -" Latest Revision: 2019-04-16 +" Latest Revision: 2019-11-24 if exists('b:current_syntax') finish @@ -64,7 +64,7 @@ syn match logIPV4 '\<\d\{1,3}\(\.\d\{1,3}\)\{3}\>' syn match logIPV6 '\<\x\{1,4}\(:\x\{1,4}\)\{7}\>' syn match logMacAddress '\<\x\{2}\(:\x\{2}\)\{5}' syn match logFilePath '\<\w:\\[^\n|,; ()'"\]{}]\+' -syn match logFilePath '\/\w[^\n|,; ()'"\]{}]\+' +syn match logFilePath '[^a-zA-Z0-9"']\@<=\/\w[^\n|,; ()'"\]{}]\+' " Syslog Columns