Mercurial > dotfiles
comparison dot_config/nvim/syntax/qf.vim @ 616:08bb1c92e5e5
Add cleaner quickfix
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 24 Jul 2022 14:48:01 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
615:0cace1b99e77 | 616:08bb1c92e5e5 |
---|---|
1 if exists('b:current_syntax') | |
2 finish | |
3 endif | |
4 | |
5 syn match qfFileName /^[^│]*/ nextgroup=qfSeparatorLeft | |
6 syn match qfSeparatorLeft /│/ contained nextgroup=qfLineNr | |
7 syn match qfLineNr /[^│]*/ contained nextgroup=qfSeparatorRight | |
8 syn match qfSeparatorRight '│' contained nextgroup=qfError,qfWarning,qfInfo,qfNote | |
9 syn match qfError / E .*$/ contained | |
10 syn match qfWarning / W .*$/ contained | |
11 syn match qfInfo / I .*$/ contained | |
12 syn match qfNote / [NH] .*$/ contained | |
13 | |
14 hi def link qfFileName Directory | |
15 hi def link qfSeparatorLeft Delimiter | |
16 hi def link qfSeparatorRight Delimiter | |
17 hi def link qfLineNr LineNr | |
18 hi def link qfError DiagnosticSignError | |
19 hi def link qfWarning DiagnosticSignWarn | |
20 hi def link qfInfo DiagnosticSignInfo | |
21 hi def link qfNote DiagnosticSignNote | |
22 | |
23 let b:current_syntax = 'qf' |