blob: ce6af4989fbfe3695488091c6d4e017c4ce0169b [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
Doug Kearnsf30eb4a2025-02-09 18:40:05 +01002" Language: Quickfix window
3" Maintainer: The Vim Project <https://github.com/vim/vim>
4" Last Change: 2025 Feb 07
Christian Brabandte978b452023-08-13 10:33:05 +02005" Former Maintainer: Bram Moolenaar <Bram@vim.org>
Bram Moolenaar071d4272004-06-13 20:20:40 +00006
7" Quit when a syntax file was already loaded
8if exists("b:current_syntax")
9 finish
10endif
11
Doug Kearnsf30eb4a2025-02-09 18:40:05 +010012syn match qfFileName "^[^|]*" nextgroup=qfSeparator1
13syn match qfSeparator1 "|" contained nextgroup=qfLineNr
14syn match qfLineNr "[^|]*" contained nextgroup=qfSeparator2 contains=@qfType
15syn match qfSeparator2 "|" contained nextgroup=qfText
16syn match qfText ".*" contained
17
18syn match qfError "error" contained
19syn cluster qfType contains=qfError
Bram Moolenaar071d4272004-06-13 20:20:40 +000020
21" The default highlighting.
Doug Kearnsf30eb4a2025-02-09 18:40:05 +010022hi def link qfFileName Directory
23hi def link qfLineNr LineNr
24hi def link qfSeparator1 Delimiter
25hi def link qfSeparator2 Delimiter
26hi def link qfText Normal
27
28hi def link qfError Error
Bram Moolenaar071d4272004-06-13 20:20:40 +000029
30let b:current_syntax = "qf"
31
32" vim: ts=8