mirror of
https://github.com/joshdick/onedark.vim.git
synced 2025-11-15 22:43:49 -05:00
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
```
This commit is contained in:
committed by
Josh Dick
parent
2a6155a255
commit
77c7b00eb1
@@ -283,6 +283,10 @@ call s:h("cssSelectorOp", { "fg": s:purple })
|
|||||||
call s:h("cssSelectorOp2", { "fg": s:purple })
|
call s:h("cssSelectorOp2", { "fg": s:purple })
|
||||||
call s:h("cssTagName", { "fg": s:red })
|
call s:h("cssTagName", { "fg": s:red })
|
||||||
|
|
||||||
|
" Fish Shell
|
||||||
|
call s:h("fishKeyword", { "fg": s:purple })
|
||||||
|
call s:h("fishConditional", { "fg": s:purple })
|
||||||
|
|
||||||
" Go
|
" Go
|
||||||
call s:h("goDeclaration", { "fg": s:purple })
|
call s:h("goDeclaration", { "fg": s:purple })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user