On 5-Apr-08, at 9:08 AM, Luke Daley wrote:
On 05/04/2008, at 11:06 PM, Edward K. Chew wrote:
I was wondering what the prevailing wisdom is regarding pattern naming conventions for assembly languages. I'm working on a bundle for an obscure chip (the long-discontinued Motorola DSP96002 which we still use in a variety instruments on account of it being one of the few DSPs which supports extended precision floats). So far, I've got patterns like "assembly.opcode", "assembly.directive", and "assembly.directive.macro", but I'm not sure this is the way to go. Should these all be under "keyword", for example?
Hi Ted,
There is a page in the manual on this.
http://macromates.com/textmate/manual/language_grammars#naming_conventions
LD.
Thanks, Luke. I have looked at that page, and the existing conventions seem to cater mostly to compiled or scripted languages. Assembly languages are certainly varied, but do tend to share some common elements that could use their own naming scheme.
I notice under some of themes that shipped with TextMate, there are sub-categories not listed in the manual. For example, there was one called "meta.preprocessor" in the Mac Classic theme. For the time being, I am putting my directives there. It's not a perfect fit, maybe, but at least it keeps them in a separate area from the opcodes, which I have under "keyword".
-Ted