From 33f6849373975268a5b0d3e87a1db5cc0190adc0 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 25 Mar 2013 21:23:49 -0400 Subject: [PATCH] generic 65816, ninjaforce asm --- .../NinjaForce Mac Folding.tmPreferences | 21 +++ Syntaxes/65816.tmLanguage | 23 ++++ Syntaxes/NinjaForce assembler.tmLanguage | 128 ++++++++++++++++++ info.plist | 21 +++ 4 files changed, 193 insertions(+) create mode 100644 Preferences/NinjaForce Mac Folding.tmPreferences create mode 100644 Syntaxes/65816.tmLanguage create mode 100644 Syntaxes/NinjaForce assembler.tmLanguage create mode 100644 info.plist diff --git a/Preferences/NinjaForce Mac Folding.tmPreferences b/Preferences/NinjaForce Mac Folding.tmPreferences new file mode 100644 index 0000000..43246a1 --- /dev/null +++ b/Preferences/NinjaForce Mac Folding.tmPreferences @@ -0,0 +1,21 @@ + + + + + name + NinjaForce Folding + scope + source.asm.65816.ninjaforce + settings + + comment + MAC ... ^^^ / LOP ... <<< This shows the markers but can't fold because the indentation doesn't match. + foldingStartMarker + \b(?i:MAC|LOP)\b + foldingStopMarker + (\^\^\^|\<\<\<) + + uuid + 042A211A-28AD-4D52-8AB3-8E5A64F27B86 + + diff --git a/Syntaxes/65816.tmLanguage b/Syntaxes/65816.tmLanguage new file mode 100644 index 0000000..dd4d5d0 --- /dev/null +++ b/Syntaxes/65816.tmLanguage @@ -0,0 +1,23 @@ + + + + + fileTypes + + name + 65816 + patterns + + + match + \b(?i:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRA|BRK|BRL|BVC|BVS|CLC|CLD|CLI|CLV|CMP|COP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JML|JMP|JSL|JSR|LDA|LDX|LDY|LSR|MVN|MVP|NOP|ORA|PEA|PEI|PER|PHA|PHB|PHD|PHK|PHP|PHX|PHY|PLA|PLB|PLD|PLP|PLX|PLY|REP|ROL|ROR|RTI|RTL|RTS|SBC|SEC|SED|SEI|SEP|STA|STP|STX|STY|STZ|TAX|TAY|TCD|TCS|TDC|TRB|TSB|TSC|TSX|TXA|TXS|TXY|TYA|TYX|WAI|WDM|XBA|XCE)\b + name + keyword.mnemonic.65816 + + + scopeName + source.asm.65816 + uuid + 9CD14531-F337-4CB9-AB6C-8FD61F2C0CCC + + diff --git a/Syntaxes/NinjaForce assembler.tmLanguage b/Syntaxes/NinjaForce assembler.tmLanguage new file mode 100644 index 0000000..f8b2dcf --- /dev/null +++ b/Syntaxes/NinjaForce assembler.tmLanguage @@ -0,0 +1,128 @@ + + + + + fileTypes + + s + + name + NinjaForce assembler + patterns + + + include + source.asm.65816 + + + match + \b(?i:BLT|BGT|BGE)\b + name + keyword.mnemonic.65816.alt + + + match + ^[A-Za-z][A-Za-z0-9_]* + name + entity.name.function + + + match + ^\][A-Za-z][A-Za-z0-9_]* + name + entity.name.local + + + begin + " + end + " + name + string.quoted.double + + + begin + ' + end + ' + name + string.quoted.single + + + begin + \b(?i:MAC)\b + comment + enable &# macro parameters w/in a MAC ... ^^^ definition. + end + \^\^\^ + name + support.macro + patterns + + + include + $self + + + match + &\d+ + name + variable.parameter + + + + + match + (?<=,)([xXyYsS])\b + name + variable.language.register + + + match + \b(?i:ORG|EQU|DLW|DW|DFB|HEX|DS|MSB|COD|ASC|STR|TYP|IMP|INS|LNK|SHT|LNG|M08|M16|X08|X16|MAC|\^\^\^|LOP|<<<|LST)\b + name + keyword.directive + + + match + ^[;*].* + name + comment.line + + + match + ;.* + name + comment.line + + + match + \$[A-Za-z0-9]+ + name + constant.numeric.hex + + + match + %[01]+ + name + constant.numeric.binary + + + match + \b[0-9]+\b + name + constant.numeric.decimal + + + match + [-+/*^><|#\[\](),=] + name + keyword.operator + + + scopeName + source.asm.65816.ninjaforce + uuid + F7ECC958-1B4C-4818-A28A-371799146151 + + diff --git a/info.plist b/info.plist new file mode 100644 index 0000000..a326e4f --- /dev/null +++ b/info.plist @@ -0,0 +1,21 @@ + + + + + contactEmailRot13 + xfureybpx@tznvy.pbz + contactName + Kelvin Sherlock + description + Myriad 65816 assemblers + +Currently supported: +- NinjaForce Assembler + + + name + 65816 + uuid + CBDD61FC-3FBC-4DA1-A2CB-EDD2ACBD80DD + +