Mercurial > vim
annotate runtime/syntax/sgmldecl.vim @ 28813:3626ca6a20ea v8.2.4930
patch 8.2.4930: interpolated string expression requires escaping
Commit: https://github.com/vim/vim/commit/0abc2871c105882ed1c1effb9a7757fad8a395bd
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 10 13:24:30 2022 +0100
patch 8.2.4930: interpolated string expression requires escaping
Problem: Interpolated string expression requires escaping.
Solution: Do not require escaping in the expression.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 10 May 2022 14:30:04 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: SGML (SGML Declaration <!SGML ...>) | |
3 " Last Change: jueves, 28 de diciembre de 2000, 13:51:44 CLST | |
4 " Maintainer: "Daniel A. Molina W." <sickd@linux-chile.org> | |
5 " You can modify and maintain this file, in other case send comments | |
6 " the maintainer email address. | |
7 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3496
diff
changeset
|
8 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3496
diff
changeset
|
9 if exists("b:current_syntax") |
7 | 10 finish |
11 endif | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
12 let s:keepcpo= &cpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
13 set cpo&vim |
7 | 14 |
15 syn case ignore | |
16 | |
17 syn region sgmldeclDeclBlock transparent start=+<!SGML+ end=+>+ | |
18 syn region sgmldeclTagBlock transparent start=+<+ end=+>+ | |
19 \ contains=ALLBUT, | |
20 \ @sgmlTagError,@sgmlErrInTag | |
21 syn region sgmldeclComment contained start=+--+ end=+--+ | |
22 | |
23 syn keyword sgmldeclDeclKeys SGML CHARSET CAPACITY SCOPE SYNTAX | |
24 \ FEATURES | |
25 | |
26 syn keyword sgmldeclTypes BASESET DESCSET DOCUMENT NAMING DELIM | |
27 \ NAMES QUANTITY SHUNCHAR DOCTYPE | |
28 \ ELEMENT ENTITY ATTLIST NOTATION | |
29 \ TYPE | |
30 | |
31 syn keyword sgmldeclStatem CONTROLS FUNCTION NAMECASE MINIMIZE | |
32 \ LINK OTHER APPINFO REF ENTITIES | |
33 | |
34 syn keyword sgmldeclVariables TOTALCAP GRPCAP ENTCAP DATATAG OMITTAG RANK | |
35 \ SIMPLE IMPLICIT EXPLICIT CONCUR SUBDOC FORMAL ATTCAP | |
36 \ ATTCHCAP AVGRPCAP ELEMCAP ENTCHCAP IDCAP IDREFCAP | |
37 \ SHORTTAG | |
38 | |
39 syn match sgmldeclNConst contained +[0-9]\++ | |
40 | |
41 syn region sgmldeclString contained start=+"+ end=+"+ | |
42 | |
43 syn keyword sgmldeclBool YES NO | |
44 | |
45 syn keyword sgmldeclSpecial SHORTREF SGMLREF UNUSED NONE GENERAL | |
46 \ SEEALSO ANY | |
47 | |
48 syn sync lines=250 | |
49 | |
50 | |
51 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3496
diff
changeset
|
52 " Only when an item doesn't have highlighting yet |
7 | 53 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
54 hi def link sgmldeclDeclKeys Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
55 hi def link sgmldeclTypes Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
56 hi def link sgmldeclConst Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
57 hi def link sgmldeclNConst Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
58 hi def link sgmldeclString String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
59 hi def link sgmldeclDeclBlock Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
60 hi def link sgmldeclBool Boolean |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
61 hi def link sgmldeclSpecial Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
62 hi def link sgmldeclComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
63 hi def link sgmldeclStatem Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
64 hi def link sgmldeclVariables Type |
7 | 65 |
66 | |
67 let b:current_syntax = "sgmldecl" | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
68 |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
69 let &cpo = s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
70 unlet s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
71 |
7 | 72 " vim:set tw=78 ts=4: |