annotate runtime/syntax/xsd.vim @ 33988:7c30841c60a0 v9.0.2180

patch 9.0.2180: POSIX function name in exarg causes issues Commit: https://github.com/vim/vim/commit/6fdb6280821a822768df5689a5d727e37d38306c Author: Zoltan Arpadffy <zoltan.arpadffy@gmail.com> Date: Tue Dec 19 20:53:07 2023 +0100 patch 9.0.2180: POSIX function name in exarg causes issues Problem: POSIX function name in exarg struct causes issues on OpenVMS Solution: Rename getline member in exarg struct to ea_getline, remove isinf() workaround for VMS There are compilers that do not treat well POSIX functions - like getline - usage in the structs. Older VMS compilers could digest this... but the newer OpenVMS compilers ( like VSI C x86-64 X7.4-843 (GEM 50XB9) ) cannot deal with these structs. This could be limited to getline() that is defined via getdelim() and might not affect all POSIX functions in general - but avoiding POSIX function names usage in the structs is a "safe side" practice without compromising the functionality or the code readability. The previous OpenVMS X86 port used a workaround limiting the compiler capabilities using __CRTL_VER_OVERRIDE=80400000 In order to make the OpenVMS port future proof, this pull request proposes a possible solution. closes: #13704 Signed-off-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Dec 2023 21:00:04 +0100
parents 7bc41231fbc7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: XSD (XML Schema)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Johannes Zellner <johannes@zellner.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: Tue, 27 Apr 2004 14:54:59 CEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Filenames: *.xsd
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
6 " $Id: xsd.vim,v 1.1 2004/06/13 18:20:48 vimboss Exp $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " REFERENCES:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " [1] http://www.w3.org/TR/xmlschema-0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 runtime syntax/xml.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn cluster xmlTagHook add=xsdElement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match xsdElement '\%(xsd:\)\@<=all'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match xsdElement '\%(xsd:\)\@<=annotation'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match xsdElement '\%(xsd:\)\@<=any'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match xsdElement '\%(xsd:\)\@<=anyAttribute'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match xsdElement '\%(xsd:\)\@<=appInfo'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match xsdElement '\%(xsd:\)\@<=attribute'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match xsdElement '\%(xsd:\)\@<=attributeGroup'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match xsdElement '\%(xsd:\)\@<=choice'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match xsdElement '\%(xsd:\)\@<=complexContent'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match xsdElement '\%(xsd:\)\@<=complexType'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match xsdElement '\%(xsd:\)\@<=documentation'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match xsdElement '\%(xsd:\)\@<=element'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match xsdElement '\%(xsd:\)\@<=enumeration'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match xsdElement '\%(xsd:\)\@<=extension'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match xsdElement '\%(xsd:\)\@<=field'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match xsdElement '\%(xsd:\)\@<=group'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match xsdElement '\%(xsd:\)\@<=import'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match xsdElement '\%(xsd:\)\@<=include'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match xsdElement '\%(xsd:\)\@<=key'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match xsdElement '\%(xsd:\)\@<=keyref'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match xsdElement '\%(xsd:\)\@<=length'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match xsdElement '\%(xsd:\)\@<=list'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match xsdElement '\%(xsd:\)\@<=maxInclusive'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match xsdElement '\%(xsd:\)\@<=maxLength'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match xsdElement '\%(xsd:\)\@<=minInclusive'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match xsdElement '\%(xsd:\)\@<=minLength'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match xsdElement '\%(xsd:\)\@<=pattern'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match xsdElement '\%(xsd:\)\@<=redefine'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match xsdElement '\%(xsd:\)\@<=restriction'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match xsdElement '\%(xsd:\)\@<=schema'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match xsdElement '\%(xsd:\)\@<=selector'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match xsdElement '\%(xsd:\)\@<=sequence'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match xsdElement '\%(xsd:\)\@<=simpleContent'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match xsdElement '\%(xsd:\)\@<=simpleType'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match xsdElement '\%(xsd:\)\@<=union'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match xsdElement '\%(xsd:\)\@<=unique'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 hi def link xsdElement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " vim: ts=8