mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-06-01 13:41:29 +00:00
updated syntax file for "joe" editor
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@295 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
parent
d59b45036d
commit
4901f44fdd
|
@ -8,7 +8,7 @@ If you destroy your system, don't come whining to me.
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
1) Copy the syntax file to the correct directory by typing:
|
1) Copy the syntax file to the correct directory by typing:
|
||||||
cp acme.jsf /etc/joe/syntax/
|
cp acme.jsf /usr/share/joe/syntax/
|
||||||
|
|
||||||
2) Add the following lines to the "SECOND SECTION" of "/etc/joe/joerc":
|
2) Add the following lines to the "SECOND SECTION" of "/etc/joe/joerc":
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,11 @@
|
||||||
# new in version 5: changed mnemo colors
|
# new in version 5: changed mnemo colors
|
||||||
# new in version 6: added !ifndef, !addr
|
# new in version 6: added !ifndef, !addr
|
||||||
# new in version 7: added !symbollist
|
# new in version 7: added !symbollist
|
||||||
|
# new in version 8: adjusted for ACME 0.97
|
||||||
|
# added backslash escaping,
|
||||||
|
# added "//" comments,
|
||||||
|
# added new mnemonics, keywords and pseudo opcodes,
|
||||||
|
# reduced colors for different instruction sets
|
||||||
|
|
||||||
# define colors
|
# define colors
|
||||||
#
|
#
|
||||||
|
@ -18,16 +23,13 @@
|
||||||
=Call bold
|
=Call bold
|
||||||
=Comment green
|
=Comment green
|
||||||
=Constant cyan
|
=Constant cyan
|
||||||
|
=Escape bold cyan
|
||||||
=Keyword bold
|
=Keyword bold
|
||||||
=Pseudo bold
|
=Pseudo bold
|
||||||
=Mnemo6502 bold yellow
|
=Mnemo6502 bold yellow
|
||||||
=PCMnemo6502 bold red
|
=PCMnemo6502 bold red
|
||||||
=Mnemo6510 bg_red bold yellow
|
=MnemoExt bg_blue bold yellow
|
||||||
=PCMnemo6510 bg_red bold red
|
=PCMnemoExt bg_blue bold red
|
||||||
=Mnemo65c02 bg_cyan bold yellow
|
|
||||||
=PCMnemo65c02 bg_cyan bold red
|
|
||||||
=Mnemo65816 bg_blue bold yellow
|
|
||||||
=PCMnemo65816 bg_blue bold red
|
|
||||||
|
|
||||||
:reset Idle
|
:reset Idle
|
||||||
* idle noeat
|
* idle noeat
|
||||||
|
@ -36,6 +38,7 @@
|
||||||
:idle Idle
|
:idle Idle
|
||||||
* idle
|
* idle
|
||||||
";" line_comment recolor=-1
|
";" line_comment recolor=-1
|
||||||
|
"//" line_comment recolor=-1
|
||||||
":{\n" reset
|
":{\n" reset
|
||||||
"!.a-zA-Z_€-" checkstring recolor=-1 buffer
|
"!.a-zA-Z_€-" checkstring recolor=-1 buffer
|
||||||
"+" anonf_or_macro recolor=-1
|
"+" anonf_or_macro recolor=-1
|
||||||
|
@ -101,10 +104,18 @@
|
||||||
:string Constant
|
:string Constant
|
||||||
* string
|
* string
|
||||||
"\"" idle
|
"\"" idle
|
||||||
|
"\\" string_escape recolor=-1
|
||||||
|
|
||||||
|
:string_escape Escape
|
||||||
|
* string
|
||||||
|
|
||||||
:char Constant
|
:char Constant
|
||||||
* char
|
* char
|
||||||
"'" idle
|
"'" idle
|
||||||
|
"\\" char_escape recolor=-1
|
||||||
|
|
||||||
|
:char_escape Escape
|
||||||
|
* char
|
||||||
|
|
||||||
:ident Idle
|
:ident Idle
|
||||||
* idle noeat
|
* idle noeat
|
||||||
|
@ -117,10 +128,16 @@
|
||||||
"!by" pseudo
|
"!by" pseudo
|
||||||
"!byte" pseudo
|
"!byte" pseudo
|
||||||
"!16" pseudo
|
"!16" pseudo
|
||||||
|
"!le16" pseudo
|
||||||
|
"!be16" pseudo
|
||||||
"!wo" pseudo
|
"!wo" pseudo
|
||||||
"!word" pseudo
|
"!word" pseudo
|
||||||
"!24" pseudo
|
"!24" pseudo
|
||||||
|
"!le24" pseudo
|
||||||
|
"!be24" pseudo
|
||||||
"!32" pseudo
|
"!32" pseudo
|
||||||
|
"!le32" pseudo
|
||||||
|
"!be32" pseudo
|
||||||
"!tx" pseudo
|
"!tx" pseudo
|
||||||
"!text" pseudo
|
"!text" pseudo
|
||||||
"!raw" pseudo
|
"!raw" pseudo
|
||||||
|
@ -148,10 +165,17 @@
|
||||||
"!set" pseudo
|
"!set" pseudo
|
||||||
"!macro" pseudo
|
"!macro" pseudo
|
||||||
"!if" pseudo
|
"!if" pseudo
|
||||||
"!do" pseudo
|
|
||||||
"!for" pseudo
|
|
||||||
"!ifdef" pseudo
|
"!ifdef" pseudo
|
||||||
"!ifndef" pseudo
|
"!ifndef" pseudo
|
||||||
|
"else" keyword
|
||||||
|
"if" keyword
|
||||||
|
"ifdef" keyword
|
||||||
|
"ifndef" keyword
|
||||||
|
"!for" pseudo
|
||||||
|
"!while" pseudo
|
||||||
|
"!do" pseudo
|
||||||
|
"until" keyword
|
||||||
|
"while" keyword
|
||||||
"!al" pseudo
|
"!al" pseudo
|
||||||
"!as" pseudo
|
"!as" pseudo
|
||||||
"!rl" pseudo
|
"!rl" pseudo
|
||||||
|
@ -162,6 +186,10 @@
|
||||||
"!serious" pseudo
|
"!serious" pseudo
|
||||||
"!addr" pseudo
|
"!addr" pseudo
|
||||||
"!address" pseudo
|
"!address" pseudo
|
||||||
|
"!h" pseudo
|
||||||
|
"!hex" pseudo
|
||||||
|
"!xor" pseudo
|
||||||
|
"!skip" pseudo
|
||||||
"ora" mnemo6502
|
"ora" mnemo6502
|
||||||
"asl" mnemo6502
|
"asl" mnemo6502
|
||||||
"and" mnemo6502
|
"and" mnemo6502
|
||||||
|
@ -205,9 +233,9 @@
|
||||||
"inx" mnemo6502
|
"inx" mnemo6502
|
||||||
"nop" mnemo6502
|
"nop" mnemo6502
|
||||||
"sed" mnemo6502
|
"sed" mnemo6502
|
||||||
|
"jsr" mnemo6502
|
||||||
"brk" pcmnemo6502
|
"brk" pcmnemo6502
|
||||||
"jmp" pcmnemo6502
|
"jmp" pcmnemo6502
|
||||||
"jsr" pcmnemo6502
|
|
||||||
"bpl" pcmnemo6502
|
"bpl" pcmnemo6502
|
||||||
"bmi" pcmnemo6502
|
"bmi" pcmnemo6502
|
||||||
"bvc" pcmnemo6502
|
"bvc" pcmnemo6502
|
||||||
|
@ -218,61 +246,149 @@
|
||||||
"beq" pcmnemo6502
|
"beq" pcmnemo6502
|
||||||
"rti" pcmnemo6502
|
"rti" pcmnemo6502
|
||||||
"rts" pcmnemo6502
|
"rts" pcmnemo6502
|
||||||
"phy" mnemo65c02
|
"phy" mnemoExt
|
||||||
"ply" mnemo65c02
|
"ply" mnemoExt
|
||||||
"phx" mnemo65c02
|
"phx" mnemoExt
|
||||||
"plx" mnemo65c02
|
"plx" mnemoExt
|
||||||
"tsb" mnemo65c02
|
"tsb" mnemoExt
|
||||||
"trb" mnemo65c02
|
"trb" mnemoExt
|
||||||
"stz" mnemo65c02
|
"stz" mnemoExt
|
||||||
"bra" pcmnemo65c02
|
"bra" pcmnemoExt
|
||||||
"wai" mnemo65816
|
"rmb0" mnemoExt
|
||||||
"pei" mnemo65816
|
"bbr0" mnemoExt
|
||||||
"per" mnemo65816
|
"smb0" mnemoExt
|
||||||
"mvp" mnemo65816
|
"bbs0" mnemoExt
|
||||||
"mvn" mnemo65816
|
"rmb1" mnemoExt
|
||||||
"rep" mnemo65816
|
"bbr1" mnemoExt
|
||||||
"sep" mnemo65816
|
"smb1" mnemoExt
|
||||||
"pea" mnemo65816
|
"bbs1" mnemoExt
|
||||||
"phd" mnemo65816
|
"rmb2" mnemoExt
|
||||||
"tcs" mnemo65816
|
"bbr2" mnemoExt
|
||||||
"pld" mnemo65816
|
"smb2" mnemoExt
|
||||||
"tsc" mnemo65816
|
"bbs2" mnemoExt
|
||||||
"wdm" mnemo65816
|
"rmb3" mnemoExt
|
||||||
"phk" mnemo65816
|
"bbr3" mnemoExt
|
||||||
"tcd" mnemo65816
|
"smb3" mnemoExt
|
||||||
"tdc" mnemo65816
|
"bbs3" mnemoExt
|
||||||
"phb" mnemo65816
|
"rmb4" mnemoExt
|
||||||
"txy" mnemo65816
|
"bbr4" mnemoExt
|
||||||
"plb" mnemo65816
|
"smb4" mnemoExt
|
||||||
"tyx" mnemo65816
|
"bbs4" mnemoExt
|
||||||
"xba" mnemo65816
|
"rmb5" mnemoExt
|
||||||
"xce" mnemo65816
|
"bbr5" mnemoExt
|
||||||
"brl" pcmnemo65816
|
"smb5" mnemoExt
|
||||||
"cop" pcmnemo65816
|
"bbs5" mnemoExt
|
||||||
"jml" pcmnemo65816
|
"rmb6" mnemoExt
|
||||||
"jsl" pcmnemo65816
|
"bbr6" mnemoExt
|
||||||
"rtl" pcmnemo65816
|
"smb6" mnemoExt
|
||||||
"stp" pcmnemo65816
|
"bbs6" mnemoExt
|
||||||
"slo" mnemo6510
|
"rmb7" mnemoExt
|
||||||
"rla" mnemo6510
|
"bbr7" mnemoExt
|
||||||
"sre" mnemo6510
|
"smb7" mnemoExt
|
||||||
"rra" mnemo6510
|
"bbs7" mnemoExt
|
||||||
"sax" mnemo6510
|
"wai" mnemoExt
|
||||||
"lax" mnemo6510
|
"pei" mnemoExt
|
||||||
"dcp" mnemo6510
|
"per" mnemoExt
|
||||||
"isc" mnemo6510
|
"mvp" mnemoExt
|
||||||
"anc" mnemo6510
|
"mvn" mnemoExt
|
||||||
"asr" mnemo6510
|
"rep" mnemoExt
|
||||||
"arr" mnemo6510
|
"sep" mnemoExt
|
||||||
"sbx" mnemo6510
|
"pea" mnemoExt
|
||||||
"dop" mnemo6510
|
"phd" mnemoExt
|
||||||
"top" mnemo6510
|
"tcs" mnemoExt
|
||||||
"lxa" mnemo6510
|
"pld" mnemoExt
|
||||||
"jam" pcmnemo6510
|
"tsc" mnemoExt
|
||||||
"else" keyword
|
"wdm" mnemoExt
|
||||||
"until" keyword
|
"phk" mnemoExt
|
||||||
"while" keyword
|
"tcd" mnemoExt
|
||||||
|
"tdc" mnemoExt
|
||||||
|
"phb" mnemoExt
|
||||||
|
"txy" mnemoExt
|
||||||
|
"plb" mnemoExt
|
||||||
|
"tyx" mnemoExt
|
||||||
|
"xba" mnemoExt
|
||||||
|
"xce" mnemoExt
|
||||||
|
"brl" pcmnemoExt
|
||||||
|
"cop" mnemoExt
|
||||||
|
"jml" pcmnemoExt
|
||||||
|
"jsl" mnemoExt
|
||||||
|
"rtl" pcmnemoExt
|
||||||
|
"stp" pcmnemoExt
|
||||||
|
"slo" mnemoExt
|
||||||
|
"rla" mnemoExt
|
||||||
|
"sre" mnemoExt
|
||||||
|
"rra" mnemoExt
|
||||||
|
"sax" mnemoExt
|
||||||
|
"lax" mnemoExt
|
||||||
|
"dcp" mnemoExt
|
||||||
|
"isc" mnemoExt
|
||||||
|
"anc" mnemoExt
|
||||||
|
"ane" mnemoExt
|
||||||
|
"asr" mnemoExt
|
||||||
|
"arr" mnemoExt
|
||||||
|
"alr" mnemoExt
|
||||||
|
"sbx" mnemoExt
|
||||||
|
"sha" mnemoExt
|
||||||
|
"shx" mnemoExt
|
||||||
|
"shy" mnemoExt
|
||||||
|
"las" mnemoExt
|
||||||
|
"tas" mnemoExt
|
||||||
|
"dop" mnemoExt
|
||||||
|
"top" mnemoExt
|
||||||
|
"lxa" mnemoExt
|
||||||
|
"jam" pcmnemoExt
|
||||||
|
"map" mnemoExt
|
||||||
|
"eom" mnemoExt
|
||||||
|
"aug" mnemoExt
|
||||||
|
"sac" mnemoExt
|
||||||
|
"sir" mnemoExt
|
||||||
|
"orq" mnemoExt
|
||||||
|
"aslq" mnemoExt
|
||||||
|
"inq" mnemoExt
|
||||||
|
"bitq" mnemoExt
|
||||||
|
"andq" mnemoExt
|
||||||
|
"rolq" mnemoExt
|
||||||
|
"deq" mnemoExt
|
||||||
|
"asrq" mnemoExt
|
||||||
|
"eorq" mnemoExt
|
||||||
|
"lsrq" mnemoExt
|
||||||
|
"adcq" mnemoExt
|
||||||
|
"rorq" mnemoExt
|
||||||
|
"stq" mnemoExt
|
||||||
|
"ldq" mnemoExt
|
||||||
|
"cpq" mnemoExt
|
||||||
|
"sbcq" mnemoExt
|
||||||
|
"cle" mnemoExt
|
||||||
|
"see" mnemoExt
|
||||||
|
"tsy" mnemoExt
|
||||||
|
"inz" mnemoExt
|
||||||
|
"tys" mnemoExt
|
||||||
|
"dez" mnemoExt
|
||||||
|
"neg" mnemoExt
|
||||||
|
"taz" mnemoExt
|
||||||
|
"tab" mnemoExt
|
||||||
|
"bsr" mnemoExt
|
||||||
|
"tza" mnemoExt
|
||||||
|
"tba" mnemoExt
|
||||||
|
"ldz" mnemoExt
|
||||||
|
"cpz" mnemoExt
|
||||||
|
"dew" mnemoExt
|
||||||
|
"asw" mnemoExt
|
||||||
|
"phz" mnemoExt
|
||||||
|
"inw" mnemoExt
|
||||||
|
"row" mnemoExt
|
||||||
|
"phw" mnemoExt
|
||||||
|
"plz" mnemoExt
|
||||||
|
"lbpl" pcmnemoExt
|
||||||
|
"lbmi" pcmnemoExt
|
||||||
|
"lbvc" pcmnemoExt
|
||||||
|
"lbvs" pcmnemoExt
|
||||||
|
"lbra" pcmnemoExt
|
||||||
|
"lbcc" pcmnemoExt
|
||||||
|
"lbcs" pcmnemoExt
|
||||||
|
"lbne" pcmnemoExt
|
||||||
|
"lbeq" pcmnemoExt
|
||||||
|
"rtn" pcmnemoExt
|
||||||
done
|
done
|
||||||
"!a-zA-Z0-9" checkstring
|
"!a-zA-Z0-9" checkstring
|
||||||
# " \t" idle noeat
|
# " \t" idle noeat
|
||||||
|
@ -283,17 +399,9 @@ done
|
||||||
* idle noeat
|
* idle noeat
|
||||||
:pcmnemo6502 PCMnemo6502
|
:pcmnemo6502 PCMnemo6502
|
||||||
* idle noeat
|
* idle noeat
|
||||||
:mnemo65c02 Mnemo65c02
|
:mnemoExt MnemoExt
|
||||||
* idle noeat
|
* idle noeat
|
||||||
:pcmnemo65c02 PCMnemo65c02
|
:pcmnemoExt PCMnemoExt
|
||||||
* idle noeat
|
|
||||||
:mnemo65816 Mnemo65816
|
|
||||||
* idle noeat
|
|
||||||
:pcmnemo65816 PCMnemo65816
|
|
||||||
* idle noeat
|
|
||||||
:mnemo6510 Mnemo6510
|
|
||||||
* idle noeat
|
|
||||||
:pcmnemo6510 PCMnemo6510
|
|
||||||
* idle noeat
|
* idle noeat
|
||||||
:keyword Keyword
|
:keyword Keyword
|
||||||
* idle noeat
|
* idle noeat
|
||||||
|
|
|
@ -1,27 +1,22 @@
|
||||||
;ACME 0.91 ; comments are green
|
;ACME 0.97 ; comments are green
|
||||||
!serious "This file is not meant to be assembled."
|
!serious "This file is not meant to be assembled."
|
||||||
|
|
||||||
binary1=%00001000 ; label names are grey, constants are cyan
|
binary1 = %00001000 ; label names are grey, constants are cyan
|
||||||
binary2=%....#...
|
binary2 = %....#...
|
||||||
octal=&0123456789 ; bad constants are bold red
|
octal = &0123456789 ; bad constants are bold red
|
||||||
decimal=63
|
decimal = 63
|
||||||
hex1=0xcd
|
hex1 = 0xcd
|
||||||
hex2=$ef
|
hex2 = $ef
|
||||||
!sl "labeldump.l" ; strings are cyan
|
!sl "labeldump.l" ; strings are cyan
|
||||||
*=$1300
|
* = $1300
|
||||||
+dings ; macro calls are bold
|
+dings ; macro calls are bold
|
||||||
else ; keyword: bold
|
else ; keyword: bold
|
||||||
!eof ; pseudo: bold
|
!eof ; pseudo: bold
|
||||||
-- ; anonymous labels should be bold (white)
|
-- ; anonymous labels should be bold (white)
|
||||||
; 6502 mnemonics
|
; base 6502 mnemonics:
|
||||||
nop ; normal ones are yellow
|
inx ; normal ones are yellow,
|
||||||
rts ; PC-changing ones are red
|
beq -- ; all that break sequential flow are red
|
||||||
; illegals
|
rts
|
||||||
dop ; most of them are yellow on red
|
; all extended instruction sets:
|
||||||
jam ; this single one's red on red. Guess why.
|
stz ; normal ones are yellow on blue
|
||||||
; 65c02 extensions
|
bra ; flow-breaking ones are red
|
||||||
stz ; normal ones are yellow on cyan
|
|
||||||
bra ; PC-changing ones (just "BRA") are red
|
|
||||||
; 65816 extensions
|
|
||||||
xce ; yellow on blue
|
|
||||||
cop ; PC-changing ones are red
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user