From a3c24a4c8c2e7beb0c1dec3957940bb07817b2ef Mon Sep 17 00:00:00 2001 From: cn Date: Sat, 4 Feb 2017 23:41:34 +0100 Subject: [PATCH] New highligher for Dockerfile Very simple parser only recognizing comments and the COMMAND at beginning of a line. --- dockerfile.jsf | 27 +++++++++++++++++++++++++++ ftyperc | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 dockerfile.jsf diff --git a/dockerfile.jsf b/dockerfile.jsf new file mode 100644 index 0000000..4df3174 --- /dev/null +++ b/dockerfile.jsf @@ -0,0 +1,27 @@ +# JOE syntax highlight file for Dockerfile + +=Idle +=Comment green +=Instruction blue + +:idle Idle + * arguments + "a-zA-Z" instruction noeat + "#" comment recolor=-1 + "\n" idle + +:comment Comment + * comment + "\n" idle + +:instruction Instruction + * instruction + " \t" arguments noeat + +:arguments Idle + * arguments + "\n" idle + "#" comment + + + diff --git a/ftyperc b/ftyperc index 39302ba..777ed1d 100644 --- a/ftyperc +++ b/ftyperc @@ -1033,3 +1033,7 @@ -autoindent -syntax scheme -semi_comment + + Docker +*Dockerfile +-syntax dockerfile