From 5d04e13661e96caf8c702eddd09386a5aa4bf5d1 Mon Sep 17 00:00:00 2001 From: Po Chen Date: Thu, 14 Jul 2022 11:21:34 +1000 Subject: [PATCH] Update Dockerfile-bash.sublime-syntax --- Syntaxes/Dockerfile-bash.sublime-syntax | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/Syntaxes/Dockerfile-bash.sublime-syntax b/Syntaxes/Dockerfile-bash.sublime-syntax index b0b7b50..43071db 100644 --- a/Syntaxes/Dockerfile-bash.sublime-syntax +++ b/Syntaxes/Dockerfile-bash.sublime-syntax @@ -29,23 +29,14 @@ contexts: 3: constant.numeric.dockerfile pop: true - optional-as: - - match: (?i)\s*as\b - scope: keyword.control.dockerfile - set: - - match: \S+ - scope: variable.stage-name.dockerfile - pop: true - - match: $ - pop: true - - match: "" - pop: true - from: - - match: ^\s*(?i:(from))\b + - match: ^{{from_directive}} captures: 1: keyword.control.dockerfile - set: [body, optional-as, expect-container-tag] + 2: entity.name.enum.tag-digest + 3: keyword.control.dockerfile + 4: variable.stage-name + push: body body: - include: comments