annotate runtime/syntax/dirpager.vim @ 34118:941f7dc1c7dd v9.1.0023

patch 9.1.0023: xxd: few problems with EBCDIC for z/OS (MVS) Commit: https://github.com/vim/vim/commit/48a75f3dfb906a2d333a7b1c3545e2eb359596db Author: Igor Todorovski <itodorov@ca.ibm.com> Date: Tue Jan 9 21:05:48 2024 +0000 patch 9.1.0023: xxd: few problems with EBCDIC for z/OS (MVS) Problem: xxd: few problems with EBCDIC for z/OS (MVS) Solution: Fix xxd build and support ASCII and UTF-8 on z/OS (MVS) natively, add MVS guard checks with __CHARSET_LIB, support $LIBS in the Makefile (Igor Todorovski) related: #13821 Signed-off-by: Igor Todorovski <itodorov@ca.ibm.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 12 Jan 2024 18:00:05 +0100
parents 1e9e9d89f0ee
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
2 " Maintainer: Thilo Six
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
3 " Contact: <vim-dev at vim dot org>
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
4 " http://www.vim.org/maillist.php#vim-dev
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
5 "
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
6 " Description: display directory content inside Vim with syntax
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
7 " highlighting
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
8 " File: runtime/syntax/dirpager.vim
29193
1e9e9d89f0ee Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3557
diff changeset
9 " Last Change: 2022 Jun 14
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
10 " Modeline: vim: ts=8:sw=2:sts=2:
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 "
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
12 " Credits: dirpager.vim is derived from Nikolai Weibulls dircolors.vim
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
13 "
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
14 " License: VIM License
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
15 " Vim is Charityware, see ":help Uganda"
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
16 "
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
17 " Usage: $ ls -la | view -c "set ft=dirpager" -
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 "
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
19 "
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
20 ",----[ ls(1posix) ]--------------------------------------------------
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
21 "
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
22 " The <entry type> character shall describe the type of file, as
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
23 " follows:
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
24 "
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
25 " d Directory.
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
26 " b Block special file.
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
27 " c Character special file.
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
28 " l (ell) Symbolic link.
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
29 " p FIFO.
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
30 " - Regular file.
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
31 "
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
33 if exists("b:current_syntax") || &compatible
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 finish
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 endif
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 setlocal nowrap
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 syn keyword DirPagerTodo contained FIXME TODO XXX NOTE
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 syn region DirPagerExe start='^...x\|^......x\|^.........x' end='$' contains=DirPagerTodo,@Spell
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 syn region DirPagerDir start='^d' end='$' contains=DirPagerTodo,@Spell
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 syn region DirPagerLink start='^l' end='$' contains=DirPagerTodo,@Spell
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
44 syn region DirPagerSpecial start='^b' end='$' contains=DirPagerTodo,@Spell
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
45 syn region DirPagerSpecial start='^c' end='$' contains=DirPagerTodo,@Spell
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
46 syn region DirPagerFifo start='^p' end='$' contains=DirPagerTodo,@Spell
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 hi def link DirPagerTodo Todo
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49 hi def DirPagerExe ctermfg=Green guifg=Green
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 hi def DirPagerDir ctermfg=Blue guifg=Blue
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 hi def DirPagerLink ctermfg=Cyan guifg=Cyan
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
52 hi def DirPagerSpecial ctermfg=Yellow guifg=Yellow
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
53 hi def DirPagerFifo ctermfg=Brown guifg=Brown
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 let b:current_syntax = "dirpager"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
56