From d3d18e15ace0b398e6018999d172b9cd6f36bfdf Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Thu, 21 Sep 2017 10:51:15 -0400 Subject: [PATCH] orca-m - add snippets, add GEQUs to symbol list. --- Preferences/ORCA-M Symbol Lists.tmPreferences | 16 ++++++++++++++++ Snippets/ORCA-M Data.sublime-snippet | 10 ++++++++++ Snippets/ORCA-M Private.sublime-snippet | 10 ++++++++++ Snippets/ORCA-M Privdata.sublime-snippet | 10 ++++++++++ Snippets/ORCA-M Start.sublime-snippet | 10 ++++++++++ Syntaxes/ORCA-M.sublime-syntax | 7 +++++++ 6 files changed, 63 insertions(+) create mode 100644 Preferences/ORCA-M Symbol Lists.tmPreferences create mode 100644 Snippets/ORCA-M Data.sublime-snippet create mode 100644 Snippets/ORCA-M Private.sublime-snippet create mode 100644 Snippets/ORCA-M Privdata.sublime-snippet create mode 100644 Snippets/ORCA-M Start.sublime-snippet diff --git a/Preferences/ORCA-M Symbol Lists.tmPreferences b/Preferences/ORCA-M Symbol Lists.tmPreferences new file mode 100644 index 0000000..30a14f3 --- /dev/null +++ b/Preferences/ORCA-M Symbol Lists.tmPreferences @@ -0,0 +1,16 @@ + + + + + name + Symbol List + scope + source.asm.65816.orcam entity.name.constant, source.asm.65816.orcam entity.name.function + settings + + showInSymbolList + 1 + + + + diff --git a/Snippets/ORCA-M Data.sublime-snippet b/Snippets/ORCA-M Data.sublime-snippet new file mode 100644 index 0000000..dbbb2bd --- /dev/null +++ b/Snippets/ORCA-M Data.sublime-snippet @@ -0,0 +1,10 @@ + + + data + source.asm.65816.orcam entity.name.label + data … end + \ No newline at end of file diff --git a/Snippets/ORCA-M Private.sublime-snippet b/Snippets/ORCA-M Private.sublime-snippet new file mode 100644 index 0000000..d9fda1c --- /dev/null +++ b/Snippets/ORCA-M Private.sublime-snippet @@ -0,0 +1,10 @@ + + + private + source.asm.65816.orcam entity.name.label + private … end + \ No newline at end of file diff --git a/Snippets/ORCA-M Privdata.sublime-snippet b/Snippets/ORCA-M Privdata.sublime-snippet new file mode 100644 index 0000000..6e795ce --- /dev/null +++ b/Snippets/ORCA-M Privdata.sublime-snippet @@ -0,0 +1,10 @@ + + + privdata + source.asm.65816.orcam entity.name.label + privdata … end + \ No newline at end of file diff --git a/Snippets/ORCA-M Start.sublime-snippet b/Snippets/ORCA-M Start.sublime-snippet new file mode 100644 index 0000000..9377514 --- /dev/null +++ b/Snippets/ORCA-M Start.sublime-snippet @@ -0,0 +1,10 @@ + + + start + source.asm.65816.orcam entity.name.label + start … end + \ No newline at end of file diff --git a/Syntaxes/ORCA-M.sublime-syntax b/Syntaxes/ORCA-M.sublime-syntax index 026710a..04edaf0 100644 --- a/Syntaxes/ORCA-M.sublime-syntax +++ b/Syntaxes/ORCA-M.sublime-syntax @@ -26,6 +26,13 @@ contexts: 2: keyword.directive push: operand-segname + - match: '^({{ident}}){{ws}}((?i)GEQU)\b' + captures: + 1: entity.name.constant + 2: keyword.directive + push: operand + + - match: '^{{ident}}' scope: entity.name.label