From 9c719abf9109ceb566fe06a0dc3f46cff0de121e Mon Sep 17 00:00:00 2001 From: Nick Kocharhook Date: Sat, 25 Jun 2022 03:33:33 +0100 Subject: [PATCH] Improvements to Sublime syntax file (#1250) --- extras/just.sublime-syntax | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/extras/just.sublime-syntax b/extras/just.sublime-syntax index 424fdbae..8b0442cb 100644 --- a/extras/just.sublime-syntax +++ b/extras/just.sublime-syntax @@ -12,32 +12,46 @@ contexts: - include: strings - include: assignments - include: recipeDefinition + - include: recipeContent + - include: functions - include: keywords assignments: - - match: '^(export[\s]?)?([a-zA-Z_][a-zA-Z0-9_-]*)=' + - match: '^(export\s+)?([a-zA-Z_][a-zA-Z0-9_-]*)\s*(:=)' captures: - 1: storage.type.just - 2: variable.name.just + 1: storage.modifier.just + 2: variable.other.just + 3: keyword.operator.assignment.just comments: - - match: '^#[^!].*' + - match: '#[^!].*' scope: comment.line.just interpolate: - - match: '\{\{' + - match: '(?