Skip to content

Commit f9be11a

Browse files
committed
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
1 parent f573e36 commit f9be11a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/log.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file
22
" Language: Generic log file
33
" Maintainer: MTDL9 <https://github.com/MTDL9>
4-
" Latest Revision: 2019-04-16
4+
" Latest Revision: 2019-11-24
55

66
if exists('b:current_syntax')
77
finish
@@ -64,7 +64,7 @@ syn match logIPV4 '\<\d\{1,3}\(\.\d\{1,3}\)\{3}\>'
6464
syn match logIPV6 '\<\x\{1,4}\(:\x\{1,4}\)\{7}\>'
6565
syn match logMacAddress '\<\x\{2}\(:\x\{2}\)\{5}'
6666
syn match logFilePath '\<\w:\\[^\n|,; ()'"\]{}]\+'
67-
syn match logFilePath '\/\w[^\n|,; ()'"\]{}]\+'
67+
syn match logFilePath '[^a-zA-Z0-9"']\@<=\/\w[^\n|,; ()'"\]{}]\+'
6868

6969

7070
" Syslog Columns

0 commit comments

Comments
 (0)