update nano syntax
This commit is contained in:
parent
a8a0c57c2d
commit
c7cfeb8d18
31
tal.nanorc
31
tal.nanorc
|
@ -13,32 +13,39 @@ syntax tal ".*\.tal"
|
|||
comment "( | )"
|
||||
|
||||
# raw values
|
||||
color pink "\"[^ ]+"
|
||||
color pink "'[^ ]"
|
||||
color pink "\<[0-9a-f]{2}{1,2}\>"
|
||||
color green "\B\"\S+"
|
||||
color green "\<[0-9a-f]{2}{1,2}\>"
|
||||
color green "\<_\S+"
|
||||
color green "\B-\S+"
|
||||
color green "\B=\S+"
|
||||
|
||||
# literals
|
||||
color bold,green "#[0-9a-f]{2}{1,2}\>"
|
||||
color bold,green "\B#[0-9a-f]{2}{1,2}\>"
|
||||
|
||||
# absolute addresses
|
||||
color bold,yellow "(;&?|\.)\S+"
|
||||
color bold,orange ",&?\S+"
|
||||
color bold,orange "/\S+"
|
||||
color yellow "\B;\S+"
|
||||
color yellow "\B,\S+"
|
||||
color yellow "\B\.\S+"
|
||||
|
||||
# relative pads
|
||||
color yellow "\$[0-9a-f]{1,4}\>"
|
||||
color yellow "\B\$[0-9a-f]{1,4}\>\>"
|
||||
|
||||
# instructions
|
||||
color bold,cyan "\<(BRK|LIT|INC|POP|DUP|NIP|SWP|OVR|ROT|EQU|NEQ|GTH|LTH|JMP|JCN|JSR|STH|LDZ|STZ|LDR|STR|LDA|STA|DEI|DEO|ADD|SUB|MUL|DIV|AND|ORA|EOR|SFT)2?k?r?\>"
|
||||
color cyan "\<(BRK|LIT|INC|POP|DUP|NIP|SWP|OVR|ROT|EQU|NEQ|GTH|LTH|JMP|JCN|JSR|STH|LDZ|STZ|LDR|STR|LDA|STA|DEI|DEO|ADD|SUB|MUL|DIV|AND|ORA|EOR|SFT)2?k?r?\>"
|
||||
|
||||
# label definitions
|
||||
color bold,blue "(^|\s)(@|&)\S+"
|
||||
|
||||
# macros
|
||||
color bold,magenta "%\S+"
|
||||
color bold,magenta "\B%\S+"
|
||||
|
||||
# absolute pads
|
||||
color yellow "\|[0-9a-f]{2}{1,2}\>"
|
||||
color yellow "\B\|[0-9a-f]{1,4}\>"
|
||||
|
||||
# immediate
|
||||
color bold,yellow "\?\S+"
|
||||
color bold,yellow "!\S+"
|
||||
color bold,yellow "\B}\B"
|
||||
|
||||
# comments
|
||||
color red start="\(\s" end="\s\)"
|
||||
color red start="\B\(\s" end="\s\)\B"
|
||||
|
|
Loading…
Reference in New Issue