Skip to content

Commit 1fcaabc

Browse files
committed
Limit 'comple.*Java' quickfix match to 'compile\w*Java'
Using .* in the quickfix match line would fail if 'java' was found later in the path becuase the '.*' is gready match. The change prevents the match from skipping over non-word characters like ':' and '/'.
1 parent a3125c9 commit 1fcaabc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/gradle.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ CompilerSet makeprg=gradle
1515
CompilerSet errorformat=
1616
\%E[ant:scalac]\ %f:%l:\ error:\ %m,
1717
\%W[ant:scalac]\ %f:%l:\ warning:\ %m,
18-
\%E%.%#:compile%.%#Java%f:%l:\ error:\ %m,%-Z%p^,%-C%.%#,
19-
\%W%.%#:compile%.%#Java%f:%l:\ warning:\ %m,%-Z%p^,%-C%.%#,
18+
\%E%.%#:compile%\\w%#Java%f:%l:\ error:\ %m,%-Z%p^,%-C%.%#,
19+
\%W%.%#:compile%\\w%#Java%f:%l:\ warning:\ %m,%-Z%p^,%-C%.%#,
2020
\%E%f:%l:\ error:\ %m,%-Z%p^,%-C%.%#,
2121
\%W%f:%l:\ warning:\ %m,%-Z%p^,%-C%.%#,
2222
\%E%f:\ %\\d%\\+:\ %m\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^,

compiler/gradlew.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ CompilerSet makeprg=./gradlew
1515
CompilerSet errorformat=
1616
\%E[ant:scalac]\ %f:%l:\ error:\ %m,
1717
\%W[ant:scalac]\ %f:%l:\ warning:\ %m,
18-
\%E%.%#:compile%.%#Java%f:%l:\ error:\ %m,%-Z%p^,%-C%.%#,
19-
\%W%.%#:compile%.%#Java%f:%l:\ warning:\ %m,%-Z%p^,%-C%.%#,
18+
\%E%.%#:compile%\\w%#Java%f:%l:\ error:\ %m,%-Z%p^,%-C%.%#,
19+
\%W%.%#:compile%\\w%#Java%f:%l:\ warning:\ %m,%-Z%p^,%-C%.%#,
2020
\%E%f:%l:\ error:\ %m,%-Z%p^,%-C%.%#,
2121
\%W%f:%l:\ warning:\ %m,%-Z%p^,%-C%.%#,
2222
\%E%f:\ %\\d%\\+:\ %m\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^,

0 commit comments

Comments
 (0)