annotate runtime/syntax/xslt.vim @ 31184:6b218e595d9f v9.0.0926

patch 9.0.0926: Coverity warns for not using return value of dict_add() Commit: https://github.com/vim/vim/commit/bc222152d8dea252aa5f1fa24b5536ed269feb92 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 23 11:34:01 2022 +0000 patch 9.0.0926: Coverity warns for not using return value of dict_add() Problem: Coverity warns for not using return value of dict_add(). Solution: When dict_add() fails then don't call hash_remove().
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Nov 2022 12:45:04 +0100
parents 63beef1ca62c
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: XSLT
19163
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
3 " Maintainer: Bogdan Barbu <l4b.bogdan.barbu@gmail.com>
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
4 " Previous Maintainer: Johannes Zellner <johannes@zellner.org>
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
5 " Last Change: Fri, 17 Jan 2020 07:15:37 +0200
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Filenames: *.xsl
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
7 " $Id: xslt.vim,v 1.1 2004/06/13 15:52:10 vimboss Exp $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " REFERENCES:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " [1] http://www.w3.org/TR/xslt
19163
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
11 " [2] http://www.w3.org/TR/xslt20
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 runtime syntax/xml.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn cluster xmlTagHook add=xslElement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
19163
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
23 syn match xslElement '\%(xsl:\)\@<=analyze-string'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match xslElement '\%(xsl:\)\@<=apply-imports'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match xslElement '\%(xsl:\)\@<=apply-templates'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match xslElement '\%(xsl:\)\@<=attribute'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match xslElement '\%(xsl:\)\@<=attribute-set'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match xslElement '\%(xsl:\)\@<=call-template'
19163
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
29 syn match xslElement '\%(xsl:\)\@<=character-map'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match xslElement '\%(xsl:\)\@<=choose'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match xslElement '\%(xsl:\)\@<=comment'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match xslElement '\%(xsl:\)\@<=copy'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match xslElement '\%(xsl:\)\@<=copy-of'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match xslElement '\%(xsl:\)\@<=decimal-format'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match xslElement '\%(xsl:\)\@<=document'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match xslElement '\%(xsl:\)\@<=element'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match xslElement '\%(xsl:\)\@<=fallback'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match xslElement '\%(xsl:\)\@<=for-each'
19163
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
39 syn match xslElement '\%(xsl:\)\@<=for-each-group'
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
40 syn match xslElement '\%(xsl:\)\@<=function'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match xslElement '\%(xsl:\)\@<=if'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match xslElement '\%(xsl:\)\@<=include'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match xslElement '\%(xsl:\)\@<=import'
19163
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
44 syn match xslElement '\%(xsl:\)\@<=import-schema'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match xslElement '\%(xsl:\)\@<=key'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match xslElement '\%(xsl:\)\@<=message'
19163
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
47 syn match xslElement '\%(xsl:\)\@<=namespace'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match xslElement '\%(xsl:\)\@<=namespace-alias'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match xslElement '\%(xsl:\)\@<=number'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match xslElement '\%(xsl:\)\@<=otherwise'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match xslElement '\%(xsl:\)\@<=output'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match xslElement '\%(xsl:\)\@<=param'
19163
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
53 syn match xslElement '\%(xsl:\)\@<=perform-sort'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match xslElement '\%(xsl:\)\@<=processing-instruction'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match xslElement '\%(xsl:\)\@<=preserve-space'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match xslElement '\%(xsl:\)\@<=script'
19163
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
57 syn match xslElement '\%(xsl:\)\@<=sequence'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match xslElement '\%(xsl:\)\@<=sort'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match xslElement '\%(xsl:\)\@<=strip-space'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn match xslElement '\%(xsl:\)\@<=stylesheet'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match xslElement '\%(xsl:\)\@<=template'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match xslElement '\%(xsl:\)\@<=transform'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match xslElement '\%(xsl:\)\@<=text'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match xslElement '\%(xsl:\)\@<=value-of'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match xslElement '\%(xsl:\)\@<=variable'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match xslElement '\%(xsl:\)\@<=when'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn match xslElement '\%(xsl:\)\@<=with-param'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 hi def link xslElement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 " vim: ts=8