Added Dockerfile.tmLanguage to contrib
This commit is contained in:
parent
ffc850244f
commit
85a5139665
4 changed files with 83 additions and 0 deletions
23
contrib/Dockerfile.tmLanguage/Dockerfile.YAML-tmLanguage
Normal file
23
contrib/Dockerfile.tmLanguage/Dockerfile.YAML-tmLanguage
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# [PackageDev] target_format: plist, ext: tmLanguage
|
||||||
|
---
|
||||||
|
name: Dockerfile
|
||||||
|
scopeName: source.dockerfile
|
||||||
|
uuid: a39d8795-59d2-49af-aa00-fe74ee29576e
|
||||||
|
|
||||||
|
patterns:
|
||||||
|
# Keywords
|
||||||
|
- name: keyword.control.dockerfile
|
||||||
|
match: ^\s*(FROM|MAINTAINER|RUN|CMD|EXPOSE|ENV|ADD)\s
|
||||||
|
- name: keyword.operator.dockerfile
|
||||||
|
match: ^\s*(ENTRYPOINT|VOLUME|USER|WORKDIR)\s
|
||||||
|
# String
|
||||||
|
- name: string.quoted.double.dockerfile
|
||||||
|
begin: "\""
|
||||||
|
end: "\""
|
||||||
|
patterns:
|
||||||
|
- name: constant.character.escaped.dockerfile
|
||||||
|
match: \\.
|
||||||
|
# Comment
|
||||||
|
- name: comment.block.dockerfile
|
||||||
|
match: ^\s*#.*$
|
||||||
|
...
|
50
contrib/Dockerfile.tmLanguage/Dockerfile.tmLanguage
Normal file
50
contrib/Dockerfile.tmLanguage/Dockerfile.tmLanguage
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>Dockerfile</string>
|
||||||
|
<key>patterns</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>^\s*(FROM|MAINTAINER|RUN|CMD|EXPOSE|ENV|ADD)\s</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>keyword.control.dockerfile</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>^\s*(ENTRYPOINT|VOLUME|USER|WORKDIR)\s</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>keyword.operator.dockerfile</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>begin</key>
|
||||||
|
<string>"</string>
|
||||||
|
<key>end</key>
|
||||||
|
<string>"</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>string.quoted.double.dockerfile</string>
|
||||||
|
<key>patterns</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>\\.</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.character.escaped.dockerfile</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>^\s*#.*$</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>comment.block.dockerfile</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
<key>scopeName</key>
|
||||||
|
<string>source.dockerfile</string>
|
||||||
|
<key>uuid</key>
|
||||||
|
<string>a39d8795-59d2-49af-aa00-fe74ee29576e</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
1
contrib/Dockerfile.tmLanguage/MAINTAINERS
Normal file
1
contrib/Dockerfile.tmLanguage/MAINTAINERS
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Asbjorn Enge <asbjorn@hanafjedle.net> (@asbjornenge)
|
9
contrib/Dockerfile.tmLanguage/README.md
Normal file
9
contrib/Dockerfile.tmLanguage/README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Dockerfile.tmLanguage
|
||||||
|
|
||||||
|
Pretty basic Dockerfile.tmLanguage for Sublime Text syntax highlighting.
|
||||||
|
|
||||||
|
PR's with syntax updates, suggestions etc. are all very much appreciated!
|
||||||
|
|
||||||
|
I'll get to making this installable via Package Control soon!
|
||||||
|
|
||||||
|
enjoy.
|
Loading…
Reference in a new issue