Skip to content

Commit 7fd2b1f

Browse files
committed
add dockerfile highlight data
1 parent 7091047 commit 7fd2b1f

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

source/highlightData.c

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,23 @@ static char *DefaultPatternSets[] = {
354354
Built In Cmds:\"(^|\\|&|[\\|`;()])[ ]*(alias|bg|break|breaksw|case|cd|chdir|continue|default|echo|eval|exec|exit|fg|goto|glob|hashstat|history|jobs|kill|limit|login|logout|nohup|notify|nice|onintr|popd|pushd|printenv|read|rehash|repeat|set|setenv|shift|source|suspend|time|umask|unalias|unhash|unlimit|unset|unsetenv|wait)>\":::Keyword::D\n\
355355
Tcsh Built In Cmds:\"(^|\\|&|[\\|`;()])[ ]*(alloc|bindkey|builtins|complete|echotc|filetest|hup|log|sched|settc|setty|stop|telltc|uncomplete|where|which|dirs|ls-F)>\":::Keyword::D\n\
356356
Special Chars:\"([-{};.,<>&~=!|^%[\\]\\+\\*\\|()])\":::Keyword::D}",
357-
"Fortran:2:0{\n\
357+
"Dockerfile:1:0{\n\
358+
comment:\"^[ \\t]*#\":\"$\"::Text Comment::\n\
359+
single quoted string:\"'\":\"'\"::String::\n\
360+
double quoted string:\"\"\"\":\"\"\"\"::String1::\n\
361+
keywords:\"(add|ADD|arg|ARG|cmd|CMD|copy|COPY|entrypoint|ENTRYPOINT|env|ENV|expose|EXPOSE|from|FROM|healthcheck|HEALTHCHECK|label|LABEL|maintainer|MAINTAINER|onbuild|ONBUILD|shell|SHELL|stopsignal|STOPSIGNAL|user|USER|volume|VOLUME|workdir|WORKDIR)\":::Header::\n\
362+
runcmd:\"^(RUN|run) ([^ \\t]*[ \\t]*)\":\"[^\\\\]$\"::Plain::\n\
363+
run:\"\\1\":\" \"::Header:runcmd:C\n\
364+
runprog:\"\\2\":\"\"::Subroutine1:runcmd:C\n\
365+
run single quoted string:\"'\":\"'\"::String1:runcmd:\n\
366+
run double quoted string:\"\"\"\":\"\"\"\"::String1:runcmd:\n\
367+
runop:\"(&&|\\|\\||;)[ \\t]*([^ \\t]*[ \\t]*)\":::Plain:runcmd:\n\
368+
runop operator:\"\\1\":\"\"::Operator:runop:C\n\
369+
runop prog:\"\\2\":\"\"::Subroutine1:runop:C\n\
370+
variables:\"\\$([-*@#?$!0-9_]|[a-zA-Z_][0-9a-zA-Z_]*)\":::Identifier::\n\
371+
dq variables:\"\\$([-*@#?$!0-9]|[a-zA-Z_][0-9a-zA-Z_]*)\":::Identifier:double quoted string:\n\
372+
run dq variables:\"\\$([-*@#?$!0-9]|[a-zA-Z_][0-9a-zA-Z_]*)\":::Identifier:run double quoted string:}",
373+
"Fortran:2:0{\n\
358374
Comment:\"^[Cc*!]\":\"$\"::Comment::\n\
359375
Bang Comment:\"!\":\"$\"::Comment::\n\
360376
Debug Line:\"^D\":\"$\"::Preprocessor::\n\

source/preferences.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ static PrefDescripRec PrefDescrip[] = {
822822
C:Default\n\
823823
CSS:Default\n\
824824
Csh:Default\n\
825+
Dockerfile:Default\n\
825826
Fortran:Default\n\
826827
Java:Default\n\
827828
JavaScript:Default\n\
@@ -855,6 +856,7 @@ static PrefDescripRec PrefDescrip[] = {
855856
C:.c .h::::::\".,/\\`'!|@#%^&*()-=+{}[]\"\":;<>?~\":\n\
856857
CSS:css::Auto:None:::\".,/\\`'!|@#%^&*()=+{}[]\"\":;<>?~\":\n\
857858
Csh:.csh .cshrc .tcshrc .login .logout:\"^[ \\t]*#[ \\t]*![ \\t]*/bin/t?csh\"::::::\n\
859+
Dockerfile::::::::\n\
858860
Fortran:.f .f77 .for:::::::\n\
859861
Java:.java:::::::\n\
860862
JavaScript:.js:::::::\n\

0 commit comments

Comments
 (0)