Add more syntax files and include syntax highlighter in the repo

This commit is contained in:
Zachary Yedidia
2017-02-25 17:02:39 -05:00
parent e6e190942c
commit bd0c5c655e
14 changed files with 807 additions and 6 deletions

View File

@@ -0,0 +1,33 @@
filetype: dockerfile
detect:
filename: "(Dockerfile[^/]*$|\\.dockerfile$)"
rules:
## Keywords
- keyword: "(?i)^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD|ARG|HEALTHCHECK|STOPSIGNAL|SHELL)[[:space:]]"
## Brackets & parenthesis
- statement: "(\\(|\\)|\\[|\\])"
## Double ampersand
- special: "&&"
## Comments
- comment:
start: "#"
end: "$"
rules:
- todo: "(TODO|XXX|FIXME):?"
- constant.string:
start: "\""
end: "\""
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
end: "'"
rules:
- constant.specialChar: "\\\\."