Browse Source

Merge branch '2126_ini_syntax'

* 2126_ini_syntax:
  Some fixies of ini.syntax (added default color)
  Ticket #2126: DOS style INI files syntax
Yury V. Zaytsev 15 years ago
parent
commit
bfd0b2c995
3 changed files with 22 additions and 0 deletions
  1. 1 0
      misc/syntax/Makefile.am
  2. 3 0
      misc/syntax/Syntax
  3. 18 0
      misc/syntax/ini.syntax

+ 1 - 0
misc/syntax/Makefile.am

@@ -26,6 +26,7 @@ SYNTAXFILES =			\
 	haskell.syntax		\
 	html.syntax		\
 	idl.syntax		\
+	ini.syntax		\
 	j.syntax		\
 	java.syntax		\
 	js.syntax		\

+ 3 - 0
misc/syntax/Syntax

@@ -175,6 +175,9 @@ include lua.syntax
 file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
 include idl.syntax
 
+file ..\*\\.([iI][nN][iI])$ INI\sFile
+include ini.syntax
+
 file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s
 include mail.syntax
 

+ 18 - 0
misc/syntax/ini.syntax

@@ -0,0 +1,18 @@
+# DOS / Windows INI files
+
+context default cyan
+    keyword = brightred
+
+# groups
+context [ ] yellow
+
+# comments:
+context # \n brown
+    spellcheck
+
+context ; \n brown
+    spellcheck
+
+context exclusive = \n brightcyan
+
+