mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-07 15:40:24 +09:00
* Adds new syntax groups and docs * Large refactor of syntax highlighting files * Changed keybindings for changing tabs. * Improved the documentation. * Added F3 for find to default bindings. * Massive overhaul of the syntax files * Phase 1 color-scheme updates. * The new colorschemes. * Colorscheme and syntax updates. * Tiny fix to the cmc theme. * Another phase of colorschemes and testing gitconfig. * Fixed haskell error * Fortran fix * Delete test.txt Heh, sorry about forgetting to do this again.
21 lines
785 B
Docker
21 lines
785 B
Docker
## Syntax highlighting for Dockerfiles
|
|
syntax "dockerfile" "Dockerfile[^/]*$" "\.dockerfile$"
|
|
|
|
## Keywords
|
|
color statement "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD|ARG|HEALTHCHECK|STOPSIGNAL|SHELL)[[:space:]]"
|
|
|
|
## Brackets & parenthesis
|
|
color symbol.brackets "(\(|\)|\[|\])"
|
|
|
|
## Double ampersand
|
|
color special "&&"
|
|
|
|
## Comments
|
|
color comment "^[[:space:]]*#.*$"
|
|
|
|
## Strings, single-quoted
|
|
color constant.string "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
|
|
|
|
## Strings, double-quoted
|
|
color constant.string ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
|