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
This commit is contained in:
MTDL9
2019-11-24 08:25:20 +01:00
parent f573e36cd0
commit f9be11a822

View File

@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Generic log file
" Maintainer: MTDL9 <https://github.com/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