Browse Source

Some enhancements of branch:

 * rename repo.syntax into yum.repo.syntax
 * add more syntax highlight rules.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Slava Zanko 15 years ago
parent
commit
097d57d6d3
3 changed files with 16 additions and 10 deletions
  1. 1 1
      syntax/Syntax
  2. 0 9
      syntax/repo.syntax
  3. 15 0
      syntax/yum.repo.syntax

+ 1 - 1
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

+ 0 - 9
syntax/repo.syntax

@@ -1,9 +0,0 @@
-# Yum repo syntax highlighting
-#
-# Author: Andy Shevchenko <andy.shevchenko@gmail.com>
-
-context default
-
-context # \n brown
-	spellcheck
-

+ 15 - 0
syntax/yum.repo.syntax

@@ -0,0 +1,15 @@
+# Yum repo syntax highlighting
+#
+# Author: Andy Shevchenko <andy.shevchenko@gmail.com>
+
+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