Mercurial > vim
annotate runtime/syntax/dirpager.vim @ 34349:835fc06c4547 v9.1.0107
patch 9.1.0107: CI: Fix MacOS-14 tests
Commit: https://github.com/vim/vim/commit/49f2ba6d41d3c6142deaa4a50b0b16e03969a904
Author: Yee Cheng Chin <ychin.git@gmail.com>
Date: Wed Feb 14 20:34:58 2024 +0100
patch 9.1.0107: CI: Fix MacOS-14 tests
Problem: CI: Fix MacOS-14 tests (after 9.1.0070)
Solution: Re-enable sound tests by granting Mic access,
disable Test_diff_screen because of buggy MacOS diff
(non GNU version), re-enable Test_term_gettitle()
(Yee Cheng Chin)
macos-14 runner was turned on in #13943, but it had to turn off a few
tests in order for CI to run. Re-enable them and fix the underlying
issues.
* `Test_diff_screen`: The test failure is due to a bug in Apple's diff
utility. Apple introduced a new diff tool based on FreeBSD in macOS 13
and it has buggy behaviors when using unified diff (`-U0`) and the
diff is on the first line of the file. Simply disable this test for
now if we detect Apple diff (instead of the old GNU diff). Can
re-enable this in the future if Apple fixes the issue.
* `Test_play_event` / `Test_play_silent`: GitHub Actions currently has
an issue with playing sound in CI in macos-14 runners. It for some
reason triggers a microphone permission dialog popup which blocks the
CI action (see https://github.com/actions/runner-images/issues/9330).
To fix this, add a temporary step in macos-14 to manually allow
microphone permissions in the runner.
* `Test_term_gettitle`: I could not reproduce the failure, so I just
turned it on and it seems to run just fine. Maybe it's a timing issue
and whatnot but either way that should be fixed when we can reproduce
the issue.
closes: #14032
Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 14 Feb 2024 20:45:07 +0100 |
parents | 1e9e9d89f0ee |
children |
rev | line source |
---|---|
2788 | 1 " Vim syntax file |
3557 | 2 " Maintainer: Thilo Six |
3 " Contact: <vim-dev at vim dot org> | |
4 " http://www.vim.org/maillist.php#vim-dev | |
5 " | |
6 " Description: display directory content inside Vim with syntax | |
7 " highlighting | |
8 " File: runtime/syntax/dirpager.vim | |
29193 | 9 " Last Change: 2022 Jun 14 |
3224 | 10 " Modeline: vim: ts=8:sw=2:sts=2: |
2788 | 11 " |
3557 | 12 " Credits: dirpager.vim is derived from Nikolai Weibulls dircolors.vim |
13 " | |
14 " License: VIM License | |
15 " Vim is Charityware, see ":help Uganda" | |
16 " | |
17 " Usage: $ ls -la | view -c "set ft=dirpager" - | |
2788 | 18 " |
3224 | 19 " |
20 ",----[ ls(1posix) ]-------------------------------------------------- | |
21 " | |
22 " The <entry type> character shall describe the type of file, as | |
23 " follows: | |
24 " | |
25 " d Directory. | |
26 " b Block special file. | |
27 " c Character special file. | |
28 " l (ell) Symbolic link. | |
29 " p FIFO. | |
30 " - Regular file. | |
31 " | |
2788 | 32 |
3224 | 33 if exists("b:current_syntax") || &compatible |
2788 | 34 finish |
35 endif | |
36 | |
37 setlocal nowrap | |
38 | |
39 syn keyword DirPagerTodo contained FIXME TODO XXX NOTE | |
40 | |
41 syn region DirPagerExe start='^...x\|^......x\|^.........x' end='$' contains=DirPagerTodo,@Spell | |
42 syn region DirPagerDir start='^d' end='$' contains=DirPagerTodo,@Spell | |
43 syn region DirPagerLink start='^l' end='$' contains=DirPagerTodo,@Spell | |
3224 | 44 syn region DirPagerSpecial start='^b' end='$' contains=DirPagerTodo,@Spell |
45 syn region DirPagerSpecial start='^c' end='$' contains=DirPagerTodo,@Spell | |
46 syn region DirPagerFifo start='^p' end='$' contains=DirPagerTodo,@Spell | |
2788 | 47 |
48 hi def link DirPagerTodo Todo | |
49 hi def DirPagerExe ctermfg=Green guifg=Green | |
50 hi def DirPagerDir ctermfg=Blue guifg=Blue | |
51 hi def DirPagerLink ctermfg=Cyan guifg=Cyan | |
3224 | 52 hi def DirPagerSpecial ctermfg=Yellow guifg=Yellow |
53 hi def DirPagerFifo ctermfg=Brown guifg=Brown | |
2788 | 54 |
55 let b:current_syntax = "dirpager" | |
56 |