From abd39744c6f3ed854500e423f5fabf952165161f Mon Sep 17 00:00:00 2001 From: Remy Suen Date: Sat, 5 Aug 2017 19:45:54 +0900 Subject: [PATCH] Update tmLanguage file to not be case sensitive While convention states that Dockerfile instructions should be written in uppercase, the engine allows them to be mixed case or in lowercase. The tmLanguage file should tolerate this and provide highlighting support even if instructions are not written in uppercase. Signed-off-by: Remy Suen --- .../textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage b/contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage index 5a273337f0..a4a7b7ae8d 100644 --- a/contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage +++ b/contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage @@ -25,7 +25,7 @@ match - ^\s*\b(FROM)\b.*?\b(AS)\b + ^\s*\b(?i:(FROM))\b.*?\b(?i:(AS))\b captures @@ -42,7 +42,7 @@ match - ^\s*(?:(ONBUILD)\s+)?(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)\s + ^\s*(?i:(ONBUILD)\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\s captures @@ -59,7 +59,7 @@ match - ^\s*(?:(ONBUILD)\s+)?(CMD|ENTRYPOINT)\s + ^\s*(?i:(ONBUILD)\s+)?(?i:(CMD|ENTRYPOINT))\s begin