diff --git a/syntax/Syntax b/syntax/Syntax index 66a08de45..ceded6272 100644 --- a/syntax/Syntax +++ b/syntax/Syntax @@ -131,7 +131,7 @@ file ..\*\\.(spec|spec\.in)$ RPM\sSpecfile include spec.syntax file ..\*\\.repo$ YUM\sRepo File -include repo.syntax +include yum.repo.syntax file ..\*\\.(awk)$ AWK\sFile include awk.syntax diff --git a/syntax/repo.syntax b/syntax/repo.syntax deleted file mode 100644 index 004e7c704..000000000 --- a/syntax/repo.syntax +++ /dev/null @@ -1,9 +0,0 @@ -# Yum repo syntax highlighting -# -# Author: Andy Shevchenko - -context default - -context # \n brown - spellcheck - 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