From e32b7c5490e95dbd6bd7b8019496174d24d57c6f Mon Sep 17 00:00:00 2001 From: tomkyle <412560+tomkyle@users.noreply.github.com> Date: Mon, 5 Feb 2024 01:39:37 +0800 Subject: [PATCH] feat(brewfile): Add Brewfile support https://github.com/tomkyle/nanorc-brewfile --- Brewfile.nanorc | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Brewfile.nanorc diff --git a/Brewfile.nanorc b/Brewfile.nanorc new file mode 100644 index 0000000..a4421a2 --- /dev/null +++ b/Brewfile.nanorc @@ -0,0 +1,28 @@ +# Brewfile.nanorc +## Syntax highlighting for Homebrew Brewfiles +## Author: tomkyle (https://github.com/tomkyle) + +syntax "Brewfile" "Brewfile$" + +## Keywords +icolor red "^(tap)[[:space:]]" +icolor green "^(brew)[[:space:]]" +icolor blue "^(cask)[[:space:]]" +icolor brightblue "^(cask_args)[[:space:]]" +icolor magenta "^(mas)[[:space:]]" + + +## Brackets & parenthesis +color brightblack "(\(|\)|\[|\]|\{|\})" + + +## Strings and quotes +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color yellow "('|\")" + + +## comments +color brightblack "^#.*" +color white "^##.*" +color cyan "^###.*" +