annotate runtime/syntax/asm.vim @ 32816:939396a5711c v9.0.1722

patch 9.0.1722: wrong error messages when passing wrong types to count() Commit: https://github.com/vim/vim/commit/4f389e7c0fe7dfeccfa512a72fa36f9028d57159 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Aug 17 22:10:40 2023 +0200 patch 9.0.1722: wrong error messages when passing wrong types to count() Problem: wrong error messages when passing wrong types to count() Solution: fix it This fixes two problems: 1. When passing wrong type to {ic} argument of count(), two error messages are given, the second of which is misleading. 2. When passing wrong type to {comp} argument of count(), the error message doesn't mention that {comp} may be a String. closes: #12825 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author Christian Brabandt <cb@256bit.org>
date Thu, 17 Aug 2023 22:15:03 +0200
parents 8dad79c661d1
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
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
2 " Language: GNU Assembler
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
3 " Maintainer: Doug Kearns dougkearns@gmail.com
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
4 " Previous Maintainers: Erik Wognsen <erik.wognsen@gmail.com>
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
5 " Kevin Dahlhausen <kdahlhaus@yahoo.com>
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
6 " Contributors: Ori Avtalion, Lakshay Garg
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
7 " Last Change: 2020 Oct 31
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5663
diff changeset
9 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5663
diff changeset
10 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
14 let s:cpo_save = &cpo
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
15 set cpo&vim
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
16
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " storage types
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match asmType "\.long"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match asmType "\.ascii"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match asmType "\.asciz"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match asmType "\.byte"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match asmType "\.double"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match asmType "\.float"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match asmType "\.hword"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match asmType "\.int"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match asmType "\.octa"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match asmType "\.quad"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match asmType "\.short"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match asmType "\.single"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match asmType "\.space"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match asmType "\.string"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match asmType "\.word"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
36 syn match asmIdentifier "[a-z_][a-z0-9_]*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match asmLabel "[a-z_][a-z0-9_]*:"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " Various #'s as defined by GAS ref manual sec 3.6.2.1
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
40 " Technically, the first asmDecimal def is actually octal,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " since the value of 0-7 octal is the same as 0-7 decimal,
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
42 " I (Kevin) prefer to map it as decimal:
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
43 syn match asmDecimal "\<0\+[1-7]\=\>" display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
44 syn match asmDecimal "\<[1-9]\d*\>" display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
45 syn match asmOctal "\<0[0-7][0-7]\+\>" display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
46 syn match asmHexadecimal "\<0[xX][0-9a-fA-F]\+\>" display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
47 syn match asmBinary "\<0[bB][0-1]\+\>" display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
48
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
49 syn match asmFloat "\<\d\+\.\d*\%(e[+-]\=\d\+\)\=\>" display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
50 syn match asmFloat "\.\d\+\%(e[+-]\=\d\+\)\=\>" display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
51 syn match asmFloat "\<\d\%(e[+-]\=\d\+\)\>" display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
52 syn match asmFloat "[+-]\=Inf\>\|\<NaN\>" display
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
54 syn match asmFloat "\%(0[edfghprs]\)[+-]\=\d*\%(\.\d\+\)\%(e[+-]\=\d\+\)\=" display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
55 syn match asmFloat "\%(0[edfghprs]\)[+-]\=\d\+\%(\.\d\+\)\=\%(e[+-]\=\d\+\)\=" display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
56 " Avoid fighting the hexadecimal match for unicorn-like '0x' prefixed floats
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
57 syn match asmFloat "\%(0x\)[+-]\=\d*\%(\.\d\+\)\%(e[+-]\=\d\+\)\=" display
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2042
diff changeset
58
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
59 " Allow all characters to be escaped (and in strings) as these vary across
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
60 " architectures [See sec 3.6.1.1 Strings]
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
61 syn match asmCharacterEscape "\\." contained
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
62 syn match asmCharacter "'\\\=." contains=asmCharacterEscape
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
63
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
64 syn match asmStringEscape "\\\_." contained
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
65 syn match asmStringEscape "\\\%(\o\{3}\|00[89]\)" contained display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
66 syn match asmStringEscape "\\x\x\+" contained display
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
67
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
68 syn region asmString start="\"" end="\"" skip="\\\\\|\\\"" contains=asmStringEscape
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
69
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
70 syn keyword asmTodo contained TODO FIXME XXX NOTE
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
71
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
72 " GAS supports one type of multi line comments:
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
73 syn region asmComment start="/\*" end="\*/" contains=asmTodo,@Spell
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
74
3465
161d01cbb165 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
75 " GAS (undocumentedly?) supports C++ style comments. Unlike in C/C++ however,
161d01cbb165 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
76 " a backslash ending a C++ style comment does not extend the comment to the
161d01cbb165 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
77 " next line (hence the syntax region does not define 'skip="\\$"')
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
78 syn region asmComment start="//" end="$" keepend contains=asmTodo,@Spell
3465
161d01cbb165 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
79
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
80 " Line comment characters depend on the target architecture and command line
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
81 " options and some comments may double as logical line number directives or
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
82 " preprocessor commands. This situation is described at
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
83 " http://sourceware.org/binutils/docs-2.22/as/Comments.html
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
84 " Some line comment characters have other meanings for other targets. For
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
85 " example, .type directives may use the `@' character which is also an ARM
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
86 " comment marker.
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
87 " As a compromise to accommodate what I arbitrarily assume to be the most
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
88 " frequently used features of the most popular architectures (and also the
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
89 " non-GNU assembly languages that use this syntax file because their asm files
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
90 " are also named *.asm), the following are used as line comment characters:
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
91 syn match asmComment "[#;!|].*" contains=asmTodo,@Spell
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
92
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
93 " Side effects of this include:
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
94 " - When `;' is used to separate statements on the same line (many targets
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
95 " support this), all statements except the first get highlighted as
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
96 " comments. As a remedy, remove `;' from the above.
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
97 " - ARM comments are not highlighted correctly. For ARM, uncomment the
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
98 " following two lines and comment the one above.
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
99 "syn match asmComment "@.*" contains=asmTodo
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
100 "syn match asmComment "^#.*" contains=asmTodo
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
101
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
102 " Advanced users of specific architectures will probably want to change the
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
103 " comment highlighting or use a specific, more comprehensive syntax file.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn match asmInclude "\.include"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn match asmCond "\.if"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn match asmCond "\.else"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn match asmCond "\.endif"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn match asmMacro "\.macro"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn match asmMacro "\.endm"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
5663
1dea14d4c738 Update runtime files. Add support for systemverilog.
Bram Moolenaar <bram@vim.org>
parents: 3465
diff changeset
112 " Assembler directives start with a '.' and may contain upper case (e.g.,
1dea14d4c738 Update runtime files. Add support for systemverilog.
Bram Moolenaar <bram@vim.org>
parents: 3465
diff changeset
113 " .ABORT), numbers (e.g., .p2align), dash (e.g., .app-file) and underscore in
1dea14d4c738 Update runtime files. Add support for systemverilog.
Bram Moolenaar <bram@vim.org>
parents: 3465
diff changeset
114 " CFI directives (e.g., .cfi_startproc). This will also match labels starting
1dea14d4c738 Update runtime files. Add support for systemverilog.
Bram Moolenaar <bram@vim.org>
parents: 3465
diff changeset
115 " with '.', including the GCC auto-generated '.L' labels.
1dea14d4c738 Update runtime files. Add support for systemverilog.
Bram Moolenaar <bram@vim.org>
parents: 3465
diff changeset
116 syn match asmDirective "\.[A-Za-z][0-9A-Za-z-_]*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5663
diff changeset
121 " Only when an item doesn't have highlighting yet
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5663
diff changeset
122
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5663
diff changeset
123 " The default methods for highlighting. Can be overridden later
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
124 hi def link asmSection Special
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
125 hi def link asmLabel Label
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
126 hi def link asmComment Comment
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
127 hi def link asmTodo Todo
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
128 hi def link asmDirective Statement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
130 hi def link asmInclude Include
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
131 hi def link asmCond PreCondit
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
132 hi def link asmMacro Macro
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
134 if exists('g:asm_legacy_syntax_groups')
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
135 hi def link hexNumber Number
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
136 hi def link decNumber Number
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
137 hi def link octNumber Number
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
138 hi def link binNumber Number
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
139 hi def link asmHexadecimal hexNumber
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
140 hi def link asmDecimal decNumber
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
141 hi def link asmOctal octNumber
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
142 hi def link asmBinary binNumber
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
143 else
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
144 hi def link asmHexadecimal Number
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
145 hi def link asmDecimal Number
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
146 hi def link asmOctal Number
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
147 hi def link asmBinary Number
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
148 endif
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
149 hi def link asmFloat Float
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
150
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
151 hi def link asmString String
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
152 hi def link asmStringEscape Special
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
153 hi def link asmCharacter Character
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
154 hi def link asmCharacterEscape Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
156 hi def link asmIdentifier Identifier
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
157 hi def link asmType Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 let b:current_syntax = "asm"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
161 let &cpo = s:cpo_save
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
162 unlet s:cpo_save
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
163
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
164 " vim: nowrap sw=2 sts=2 ts=8 noet