Mercurial > vim
comparison runtime/syntax/mix.vim @ 13100:656ab57d1ddc
update a few runtime files
commit https://github.com/vim/vim/commit/df980db69b831381c37c3e2973a6eefa10df305c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 24 13:22:00 2017 +0100
update a few runtime files
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 24 Dec 2017 13:30:05 +0100 |
parents | 0c37f66b4f3b |
children |
comparison
equal
deleted
inserted
replaced
13099:d1fcf9d1be47 | 13100:656ab57d1ddc |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: MIX (Donald Knuth's assembly language used in TAOCP) | 2 " Language: MIX (Donald Knuth's assembly language used in TAOCP) |
3 " Maintainer: Wu Yongwei <wuyongwei@gmail.com> | 3 " Maintainer: Wu Yongwei <wuyongwei@gmail.com> |
4 " Filenames: *.mixal *.mix | 4 " Filenames: *.mixal *.mix |
5 " Last Change: 2013 Nov 13 | 5 " Last Change: 2017-11-26 15:21:36 +0800 |
6 | 6 |
7 " Quit when a syntax file was already loaded | 7 " Quit when a syntax file was already loaded |
8 if exists("b:current_syntax") | 8 if exists("b:current_syntax") |
9 finish | 9 finish |
10 endif | 10 endif |
14 | 14 |
15 syn case ignore | 15 syn case ignore |
16 | 16 |
17 " Special processing of ALF directive: implementations vary whether quotation | 17 " Special processing of ALF directive: implementations vary whether quotation |
18 " marks are needed | 18 " marks are needed |
19 syn match mixAlfParam #\s\{1,2\}"\?[^"]\{,5\}"\?# contains=mixAlfDirective,mixString nextgroup=mixEndComment contained | 19 syn match mixAlfParam #\s\{1,2\}"\?[^"]\{,5\}"\?# contains=mixString nextgroup=mixEndComment contained |
20 | 20 |
21 " Region for parameters | 21 " Region for parameters |
22 syn match mixParam #[-+*/:=0-9a-z,()"]\+# contains=mixIdentifier,mixSpecial,mixNumber,mixString,mixLabel nextgroup=mixEndComment contained | 22 syn match mixParam #[-+*/:=0-9a-z,()"]\+# contains=mixIdentifier,mixSpecial,mixNumber,mixString,mixLabel nextgroup=mixEndComment contained |
23 | 23 |
24 " Comment at the line end | 24 " Comment at the line end |
44 syn keyword mixDirective ALF nextgroup=mixAlfParam contained | 44 syn keyword mixDirective ALF nextgroup=mixAlfParam contained |
45 | 45 |
46 " Opcodes | 46 " Opcodes |
47 syn keyword mixOpcode NOP HLT NUM CHAR FLOT FIX nextgroup=mixEndComment contained | 47 syn keyword mixOpcode NOP HLT NUM CHAR FLOT FIX nextgroup=mixEndComment contained |
48 syn keyword mixOpcode FADD FSUB FMUL FDIV FCMP MOVE ADD SUB MUL DIV IOC IN OUT JRED JBUS JMP JSJ JOV JNOV JL JE JG JLE JNE JGE SLA SRA SLAX SRAX SLC SRC nextgroup=mixParam contained skipwhite | 48 syn keyword mixOpcode FADD FSUB FMUL FDIV FCMP MOVE ADD SUB MUL DIV IOC IN OUT JRED JBUS JMP JSJ JOV JNOV JL JE JG JLE JNE JGE SLA SRA SLAX SRAX SLC SRC nextgroup=mixParam contained skipwhite |
49 syn keyword mixOpcode SLB SRB JAE JAO JXE JXO nextgroup=mixParam contained skipwhite | |
49 | 50 |
50 syn match mixOpcode "LD[AX1-6]N\?\>" nextgroup=mixParam contained skipwhite | 51 syn match mixOpcode "LD[AX1-6]N\?\>" nextgroup=mixParam contained skipwhite |
51 syn match mixOpcode "ST[AX1-6JZ]\>" nextgroup=mixParam contained skipwhite | 52 syn match mixOpcode "ST[AX1-6JZ]\>" nextgroup=mixParam contained skipwhite |
52 syn match mixOpcode "EN[TN][AX1-6]\>" nextgroup=mixParam contained skipwhite | 53 syn match mixOpcode "EN[TN][AX1-6]\>" nextgroup=mixParam contained skipwhite |
53 syn match mixOpcode "INC[AX1-6]\>" nextgroup=mixParam contained skipwhite | 54 syn match mixOpcode "INC[AX1-6]\>" nextgroup=mixParam contained skipwhite |
56 syn match mixOpcode "J[AX1-6]N\?[NZP]\>" nextgroup=mixParam contained skipwhite | 57 syn match mixOpcode "J[AX1-6]N\?[NZP]\>" nextgroup=mixParam contained skipwhite |
57 | 58 |
58 " Switch back to being case sensitive | 59 " Switch back to being case sensitive |
59 syn case match | 60 syn case match |
60 | 61 |
61 " Registers (only to used in comments now) | 62 " Registers (only to be used in comments now) |
62 syn keyword mixRegister rA rX rI1 rI2 rI3 rI4 rI5 rI6 rJ contained | 63 syn keyword mixRegister rA rX rI1 rI2 rI3 rI4 rI5 rI6 rJ contained |
63 | 64 |
64 " The default highlighting | 65 " The default highlighting |
65 hi def link mixRegister Special | 66 hi def link mixRegister Special |
66 hi def link mixLabel Define | 67 hi def link mixLabel Define |