From 77c7b00eb15d9b886e19d491cb44a96284cf0466 Mon Sep 17 00:00:00 2001 From: Michael Jarvis Date: Mon, 24 Dec 2018 14:56:19 -0600 Subject: [PATCH] Add a tweak for fish shell scripts (#135) In the fish shell, the keyword 'end' is used both as a keyword and for ending conditional logic. For example, in the trivial function below, the word `end` is used to terminate the "if" conditional, and it's also used as a keyword to indicate the end of the function. This tweak makes the word the same color in both places. I selected purple to match the Onedark scheme in Atom. ```fish function foo if not string length $argv echo "I got nothing." end end ``` --- colors/onedark.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/colors/onedark.vim b/colors/onedark.vim index 96d8099..81df7f6 100644 --- a/colors/onedark.vim +++ b/colors/onedark.vim @@ -283,6 +283,10 @@ call s:h("cssSelectorOp", { "fg": s:purple }) call s:h("cssSelectorOp2", { "fg": s:purple }) call s:h("cssTagName", { "fg": s:red }) +" Fish Shell +call s:h("fishKeyword", { "fg": s:purple }) +call s:h("fishConditional", { "fg": s:purple }) + " Go call s:h("goDeclaration", { "fg": s:purple })