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