From a6f23cc030b9ed81e3290114c1618ffe7c7fad54 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Thu, 15 Jul 2021 19:59:44 -0400 Subject: [PATCH] local identifiers --- Syntaxes/Merlin.sublime-syntax | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Syntaxes/Merlin.sublime-syntax b/Syntaxes/Merlin.sublime-syntax index 159b56c..270f369 100644 --- a/Syntaxes/Merlin.sublime-syntax +++ b/Syntaxes/Merlin.sublime-syntax @@ -7,6 +7,7 @@ scope: source.asm.65816.merlin variables: ws: '[ \t]+' ident: '[:-~][0-~]*' + lident: '[\]:][0-~]*' contexts: prototype: @@ -27,7 +28,7 @@ contexts: - match: '^({{ident}}){{ws}}((?i)MAC)\b' captures: - 1: entity.name.macro + 1: entity.name.function 2: keyword.directive push: operand @@ -50,10 +51,12 @@ contexts: 2: keyword.directive push: operand + - match: '^{{lident}}' + scope: entity.name.label.local - match: '^{{ident}}' - scope: entity.name.label + scope: entity.name.function opcode: