annotate runtime/syntax/asmh8300.vim @ 34571:fdd232ab72ea v9.1.0184

patch 9.1.0184: Cursor pos wrong when clicking with conceal and wrap Commit: https://github.com/vim/vim/commit/d0c1b7723f7e73763597af2f97a53d94ab7ed020 Author: zeertzjq <zeertzjq@outlook.com> Date: Sat Mar 16 15:03:33 2024 +0100 patch 9.1.0184: Cursor pos wrong when clicking with conceal and wrap Problem: Cursor position wrong when clicking with conceal and wrap. Solution: Use the virtual column of the last char for ScreenCols[] in boguscols. Remove use of MAXCOL in ScreenCols[]. Rename third argument of wlv_screen_line() to "clear_end" as that's clearer what it does (zeertzjq). related: 14192 closes: #14200 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Mar 2024 15:15:04 +0100
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: Hitachi H-8300h specific syntax for 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 Maintainer: Kevin Dahlhausen <kdahlhaus@yahoo.com>
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
5 " Last Change: 2020 Oct 31
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
11 runtime! syntax/asm.vim
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
12
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
15 syn match asmDirective "\.h8300[hs]n\="
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 "h8300[h] registers
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
18 syn match asmRegister "e\=r\o[lh]\="
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 "h8300[h] opcodes - order is important!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match asmOpcode "add\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match asmOpcode "add[sx :]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match asmOpcode "and\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match asmOpcode "bl[deots]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match asmOpcode "cmp\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match asmOpcode "dec\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match asmOpcode "divx[us].[bw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match asmOpcode "ext[su]\.[lw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match asmOpcode "inc\.[lw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match asmOpcode "mov\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match asmOpcode "mulx[su]\.[bw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match asmOpcode "neg\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match asmOpcode "not\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match asmOpcode "or\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match asmOpcode "pop\.[wl]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match asmOpcode "push\.[wl]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match asmOpcode "rotx\=[lr]\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match asmOpcode "sha[lr]\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match asmOpcode "shl[lr]\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match asmOpcode "sub\.[lbw]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match asmOpcode "xor\.[lbw]"
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
42
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
43 syn keyword asmOpcode andc band bcc bclr bcs beq bf bge bgt
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
44 syn keyword asmOpcode bhi bhs biand bild bior bist bixor bmi
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
45 syn keyword asmOpcode bne bnot bnp bor bpl bpt bra brn bset
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
46 syn keyword asmOpcode bsr btst bst bt bvc bvs bxor cmp daa
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
47 syn keyword asmOpcode das eepmov eepmovw inc jmp jsr ldc movfpe
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
48 syn keyword asmOpcode movtpe mov nop orc rte rts sleep stc
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
49 syn keyword asmOpcode sub trapa xorc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
53 hi def link asmOpcode Statement
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
54 hi def link asmRegister Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 let b:current_syntax = "asmh8300"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
58 " vim: nowrap sw=2 sts=2 ts=8 noet