From 03798aee763fa9b49b600871c074cd78ad1f96f1 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sun, 31 Mar 2013 20:21:41 -0400 Subject: [PATCH] DC syntax parsing --- Syntaxes/ORCA:M.tmLanguage | 121 +++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/Syntaxes/ORCA:M.tmLanguage b/Syntaxes/ORCA:M.tmLanguage index f1c0cbc..72161dd 100644 --- a/Syntaxes/ORCA:M.tmLanguage +++ b/Syntaxes/ORCA:M.tmLanguage @@ -118,6 +118,127 @@ name meta.path.directive + + begin + \b((?i)DC)\s+(\d*)([bB])(') + beginCaptures + + 1 + + name + keyword.directive + + 2 + + name + constant.numeric.decimal + + 3 + + name + storage.type + + + comment + DC nB'...' + end + (')$ + name + meta.dc.b + patterns + + + match + [0|1] + name + constant.numeric.binary + + + match + \S + name + invalid.illegal.binary + + + + + begin + \b((?i)DC)\s+(\d*)([hH])(') + beginCaptures + + 1 + + name + keyword.directive + + 2 + + name + constant.numeric.decimal + + 3 + + name + storage.type + + + comment + dc nH'...' + end + (')$ + name + meta.dc.h + patterns + + + match + [0-9A-Fa-f] + name + constant.numeric.hexidecimal + + + match + \S + name + invalid.illegal.hexidecimal + + + + + begin + \b((?i)DC)\s+(\d*)([A-Za-z])(\d*)(') + beginCaptures + + 1 + + name + keyword.directive + + 2 + + name + constant.numeric.decimal + + 3 + + name + storage.type + + 4 + + name + constant.numeric.decimal + + + comment + DC nIn'...', DC C'...' + contentName + string.quited.single + end + (')|$ + name + meta.dc.other + match \b(?i:ABSADDR|ALIGN|ANOP|APPEND|CASE|CODECHK|COPY|DATA|DATACHK|DC|DIRECT|DS|DYNCHK|EJECT|END|ENTRY|EQU|ERR|EXPAND|GEQU|IEEE|INSTIME|KEEP|KIND|LIST|LONGA|LONGI|MCOPY|MEM|MERR|MSB|NUMSEX|OBJ|OBJCASE|OBJEND|ORG|PRINTER|PRIVATE|PRIVDATA|RENAME|SETCOM|START|SYMBOL|TITLE|USING|65C02|65816)\b