|
1 | 1 | " Vim syntax file |
2 | | -" Language: Quickfix window |
3 | | -" Maintainer: The Vim Project <https://github.com/vim/vim> |
4 | | -" Last Change: 2023 Aug 10 |
| 2 | +" Language: Quickfix window |
| 3 | +" Maintainer: The Vim Project <https://github.com/vim/vim> |
| 4 | +" Last Change: 2025 Feb 07 |
5 | 5 | " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
6 | 6 |
|
7 | 7 | " Quit when a syntax file was already loaded |
8 | 8 | if exists("b:current_syntax") |
9 | 9 | finish |
10 | 10 | endif |
11 | 11 |
|
12 | | -" A bunch of useful C keywords |
13 | | -syn match qfFileName "^[^|]*" nextgroup=qfSeparator |
14 | | -syn match qfSeparator "|" nextgroup=qfLineNr contained |
15 | | -syn match qfLineNr "[^|]*" contained contains=qfError |
16 | | -syn match qfError "error" contained |
| 12 | +syn match qfFileName "^[^|]*" nextgroup=qfSeparator1 |
| 13 | +syn match qfSeparator1 "|" contained nextgroup=qfLineNr |
| 14 | +syn match qfLineNr "[^|]*" contained nextgroup=qfSeparator2 contains=@qfType |
| 15 | +syn match qfSeparator2 "|" contained nextgroup=qfText |
| 16 | +syn match qfText ".*" contained |
| 17 | + |
| 18 | +syn match qfError "error" contained |
| 19 | +syn cluster qfType contains=qfError |
17 | 20 |
|
18 | 21 | " The default highlighting. |
19 | | -hi def link qfFileName Directory |
20 | | -hi def link qfLineNr LineNr |
21 | | -hi def link qfError Error |
| 22 | +hi def link qfFileName Directory |
| 23 | +hi def link qfLineNr LineNr |
| 24 | +hi def link qfSeparator1 Delimiter |
| 25 | +hi def link qfSeparator2 Delimiter |
| 26 | +hi def link qfText Normal |
| 27 | + |
| 28 | +hi def link qfError Error |
22 | 29 |
|
23 | 30 | let b:current_syntax = "qf" |
24 | 31 |
|
|
0 commit comments