diff --git a/syntax/Syntax b/syntax/Syntax index f45d320f4..ceded6272 100644 --- a/syntax/Syntax +++ b/syntax/Syntax @@ -130,6 +130,9 @@ include sql.syntax file ..\*\\.(spec|spec\.in)$ RPM\sSpecfile include spec.syntax +file ..\*\\.repo$ YUM\sRepo File +include yum.repo.syntax + file ..\*\\.(awk)$ AWK\sFile include awk.syntax diff --git a/syntax/yum.repo.syntax b/syntax/yum.repo.syntax new file mode 100644 index 000000000..9664842d8 --- /dev/null +++ b/syntax/yum.repo.syntax @@ -0,0 +1,15 @@ +# Yum repo syntax highlighting +# +# Author: Andy Shevchenko + +context default + keyword whole enabled=0 brightred + keyword whole gpgcheck=0 brightred + keyword whole enabled=1 brightgreen + keyword whole gpgcheck=1 brightgreen + +context # \n brown + spellcheck + +context [ ] brightcyan +context exclusive = \n green