Mercurial > vim
annotate runtime/syntax/asmh8300.vim @ 30217:e0cb5fb44859 v9.0.0444
patch 9.0.0444: trying to declare g:variable gives confusing error
Commit: https://github.com/vim/vim/commit/9510d22463055f56548ff461ccbc54caa1ba1a2f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 11 15:14:05 2022 +0100
patch 9.0.0444: trying to declare g:variable gives confusing error
Problem: Trying to declare g:variable gives confusing error.
Solution: Give a better error message. (closes https://github.com/vim/vim/issues/11108)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 11 Sep 2022 16:15:04 +0200 |
parents | 8dad79c661d1 |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
22824 | 2 " Language: Hitachi H-8300h specific syntax for GNU Assembler |
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> | |
4 " Previous Maintainer: Kevin Dahlhausen <kdahlhaus@yahoo.com> | |
5 " Last Change: 2020 Oct 31 | |
7 | 6 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
7 if exists("b:current_syntax") |
7 | 8 finish |
9 endif | |
10 | |
22824 | 11 runtime! syntax/asm.vim |
12 | |
7 | 13 syn case ignore |
14 | |
22824 | 15 syn match asmDirective "\.h8300[hs]n\=" |
7 | 16 |
17 "h8300[h] registers | |
22824 | 18 syn match asmRegister "e\=r\o[lh]\=" |
7 | 19 |
20 "h8300[h] opcodes - order is important! | |
21 syn match asmOpcode "add\.[lbw]" | |
22 syn match asmOpcode "add[sx :]" | |
23 syn match asmOpcode "and\.[lbw]" | |
24 syn match asmOpcode "bl[deots]" | |
25 syn match asmOpcode "cmp\.[lbw]" | |
26 syn match asmOpcode "dec\.[lbw]" | |
27 syn match asmOpcode "divx[us].[bw]" | |
28 syn match asmOpcode "ext[su]\.[lw]" | |
29 syn match asmOpcode "inc\.[lw]" | |
30 syn match asmOpcode "mov\.[lbw]" | |
31 syn match asmOpcode "mulx[su]\.[bw]" | |
32 syn match asmOpcode "neg\.[lbw]" | |
33 syn match asmOpcode "not\.[lbw]" | |
34 syn match asmOpcode "or\.[lbw]" | |
35 syn match asmOpcode "pop\.[wl]" | |
36 syn match asmOpcode "push\.[wl]" | |
37 syn match asmOpcode "rotx\=[lr]\.[lbw]" | |
38 syn match asmOpcode "sha[lr]\.[lbw]" | |
39 syn match asmOpcode "shl[lr]\.[lbw]" | |
40 syn match asmOpcode "sub\.[lbw]" | |
41 syn match asmOpcode "xor\.[lbw]" | |
22824 | 42 |
43 syn keyword asmOpcode andc band bcc bclr bcs beq bf bge bgt | |
44 syn keyword asmOpcode bhi bhs biand bild bior bist bixor bmi | |
45 syn keyword asmOpcode bne bnot bnp bor bpl bpt bra brn bset | |
46 syn keyword asmOpcode bsr btst bst bt bvc bvs bxor cmp daa | |
47 syn keyword asmOpcode das eepmov eepmovw inc jmp jsr ldc movfpe | |
48 syn keyword asmOpcode movtpe mov nop orc rte rts sleep stc | |
49 syn keyword asmOpcode sub trapa xorc | |
7 | 50 |
51 syn case match | |
52 | |
22824 | 53 hi def link asmOpcode Statement |
54 hi def link asmRegister Identifier | |
7 | 55 |
56 let b:current_syntax = "asmh8300" | |
57 | |
22824 | 58 " vim: nowrap sw=2 sts=2 ts=8 noet |