annotate runtime/syntax/a2ps.vim @ 11010:c004e17fa36b v8.0.0394

patch 8.0.0394: tabs are not aligned when scrolling horizontally commit https://github.com/vim/vim/commit/abc39ab642791ae3d22a524516eeedb673a95d9d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 1 18:04:05 2017 +0100 patch 8.0.0394: tabs are not aligned when scrolling horizontally Problem: Tabs are not aligned when scrolling horizontally and a Tab doesn't fit. (Axel Bender) Solution: Handle a Tab as a not fitting character. (Christian Brabandt) Also fix that ":redraw" does not scroll horizontally to show the cursor. And fix the test that depended on the old behavior.
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Mar 2017 18:15:04 +0100
parents 1f3b1021f002
children 1218c5353e2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
1 " Vim syntax file
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
2 " Language: a2ps(1) configuration file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
4 " Latest Revision: 2006-04-19
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
5
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
7 finish
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
8 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
9
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
10 let s:cpo_save = &cpo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
11 set cpo&vim
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
12
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
13 syn keyword a2psPreProc Include
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14 \ nextgroup=a2psKeywordColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
15
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
16 syn keyword a2psMacro UserOption
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17 \ nextgroup=a2psKeywordColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
18
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
19 syn keyword a2psKeyword LibraryPath AppendLibraryPath PrependLibraryPath
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20 \ Options Medium Printer UnknownPrinter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
21 \ DefaultPrinter OutputFirstLine
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
22 \ PageLabelFormat Delegation FileCommand
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
23 \ nextgroup=a2psKeywordColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25 syn match a2psKeywordColon contained display ':'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27 syn keyword a2psKeyword Variable nextgroup=a2psVariableColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
29 syn match a2psVariableColon contained display ':'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
30 \ nextgroup=a2psVariable skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
31
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
32 syn match a2psVariable contained display '[^ \t:(){}]\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
33 \ contains=a2psVarPrefix
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
34
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
35 syn match a2psVarPrefix contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36 \ '\<\%(del\|pro\|ps\|pl\|toc\|user\|\)\ze\.'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38 syn match a2psLineCont display '\\$'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40 syn match a2psSubst display '$\%(-\=.\=\d\+\)\=\h\d\='
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41 syn match a2psSubst display '#[?!]\=\w\d\='
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42 syn match a2psSubst display '#{[^}]\+}'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44 syn region a2psString display oneline start=+'+ end=+'+
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
45 \ contains=a2psSubst
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
46
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
47 syn region a2psString display oneline start=+"+ end=+"+
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
48 \ contains=a2psSubst
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
49
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
50 syn keyword a2psTodo contained TODO FIXME XXX NOTE
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
51
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
52 syn region a2psComment display oneline start='^\s*#' end='$'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
53 \ contains=a2psTodo,@Spell
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
54
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
55 hi def link a2psTodo Todo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
56 hi def link a2psComment Comment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
57 hi def link a2psPreProc PreProc
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
58 hi def link a2psMacro Macro
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
59 hi def link a2psKeyword Keyword
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
60 hi def link a2psKeywordColon Delimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
61 hi def link a2psVariableColon Delimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
62 hi def link a2psVariable Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
63 hi def link a2psVarPrefix Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
64 hi def link a2psLineCont Special
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
65 hi def link a2psSubst PreProc
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
66 hi def link a2psString String
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
67
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
68 let b:current_syntax = "a2ps"
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
69
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
70 let &cpo = s:cpo_save
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
71 unlet s:cpo_save