Skip to content

Commit

Permalink
Update Dockerfile-bash.sublime-syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
princemaple authored Jul 14, 2022
1 parent 4da4c8b commit 5d04e13
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions Syntaxes/Dockerfile-bash.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d04e13

Please sign in to comment.