rizin/librz/cons/d
Rot127 c009f8d7a3
Tokenize and colorize asm strings (#2417)
This introduces the ability to split asm strings into tokens and assign a type to them.

This means:
* Each asm strings is assigned a list of tokens. Each token points to a sub-string.
* A token has a type attached which describes it (e.g. register token, operator token, mnemonic token etc.)
* A generic parsing method is introduced which splits an asm string into tokens. The pattern it parses is `<mnem> <op> <op> ...`.
* Instead of the generic method, plugins can create the token strings on their own.
* An API method was introduced to help plugins implement their own parsing methods via regex patterns.
* Custom token strings are stored in `RzAsmOp.asm_toks`

Additionally the coloring of asm strings is now exclusively done via the token strings.
* For this a function was added to colorize tokenized asm strings according to their token types.
2022-07-27 08:52:01 -04:00
..
ayu Add hexview on rz-diff (#1148) 2021-05-22 02:13:20 +08:00
basic
behelit
bold
bright Add hexview on rz-diff (#1148) 2021-05-22 02:13:20 +08:00
cga
consonance
cutter
dark
darkda
defragger
durian Add durian color theme based on summerfruit.vim (#2489) 2022-04-02 18:43:55 +02:00
focus
gb
gentoo
lima
matrix
meson.build
monokai
ogray
onedark
pink
rasta
sepia Tokenize and colorize asm strings (#2417) 2022-07-27 08:52:01 -04:00
smyck
solarized Add hexview on rz-diff (#1148) 2021-05-22 02:13:20 +08:00
tango
twilight
white
white2 Add hexview on rz-diff (#1148) 2021-05-22 02:13:20 +08:00
xvilka
zenburn