13xforever / x86-assembly-textmate-bundle

A bundle for TextMate/Sublime Text providing syntax highlighting for x86 assembly code.
MIT License
82 stars 24 forks source link

[Feature] objdump format highlighting #18

Open davidhcefx opened 4 years ago

davidhcefx commented 4 years ago

Motivation

I usually use objdump to analyze binary files and view the dumped Assembly through Sublime Text. However, the format objdump generated by default is ugly under this syntax highlighting. Considering that quite a few others also use objdump + Sublime, I think it will be valuable to support the highlighting of the Assembly generated by objdump.

By ugly, I mean the address where each instruction resides and the hex value of each instruction have not been highlighted properly. (see below)

Possible Modifications

https://github.com/13xforever/x86-assembly-textmate-bundle/blob/f1bb62f77b776d87d0fd85b0276d4237ff72c43c/x86_64%20Assembly.tmbundle/Syntaxes/x86_64%20Assembly.YAML-tmLanguage#L47-L57

13xforever commented 4 years ago

The proper way would be to create an objdump grammar that would parse the offset and binary dump parts, and then import this (or some other) assembly highlighter to the end of the line