From 6c1ef89aa8d446aed2bce1fe8d0e894f6c81c067 Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Tue, 11 May 2021 09:35:05 -0600 Subject: [PATCH] Update highlights --- queries/highlights.scm | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/queries/highlights.scm b/queries/highlights.scm index 606d12a..5a945fb 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -1,4 +1,4 @@ -[ +[ "FROM" "AS" "RUN" @@ -17,6 +17,8 @@ "STOPSIGNAL" "HEALTHCHECK" "SHELL" + "MAINTAINER" + "CROSS_BUILD" ] @keyword [ @@ -25,3 +27,25 @@ ] @operator (comment) @comment + + +(image_spec + (image_tag + ":" @punctuation.special) + (image_digest + "@" @punctuation.special)) + +(double_quoted_string) @string + +(expansion + [ + "$" + "{" + "}" + ] @punctuation.special +) @none + +((variable) @constant + (#match? @constant "^[A-Z][A-Z_0-9]*$")) + +