Commit 706774950563df643dc39fb51601dba38b0f8dc9

Avi Aryan 2014-07-13T12:51:06

ini now also highlights value

diff --git a/components/prism-ini.js b/components/prism-ini.js
index ca40829..24f8625 100644
--- a/components/prism-ini.js
+++ b/components/prism-ini.js
@@ -1,5 +1,11 @@
 Prism.languages.ini= {
 	'comment': /^\s*;.*$/gm,
-	'selector': /\[.*?\]/gm,
-	'keyword': /^\s*[^\W]+?(?=\=)/gm
+	'important': /\[.*?\]/gm,
+	'constant': /^\s*[^\W]+?(?=\=)/gm,
+	'attr-value': {
+		pattern: /\=.*/gm, 
+		inside: {
+			'punctuation': /[\=]/g
+		}
+	}
 };
\ No newline at end of file
diff --git a/components/prism-ini.min.js b/components/prism-ini.min.js
index 6458c1e..d0b847b 100644
--- a/components/prism-ini.min.js
+++ b/components/prism-ini.min.js
@@ -1 +1 @@
-Prism.languages.ini={comment:/^\s*;.*$/gm,selector:/\[.*?\]/gm,keyword:/^\s*[^\W]+?(?=\=)/gm};
\ No newline at end of file
+Prism.languages.ini={comment:/^\s*;.*$/gm,important:/\[.*?\]/gm,constant:/^\s*[^\W]+?(?=\=)/gm,"attr-value":{pattern:/\=.*/gm,inside:{punctuation:/[\=]/g}}};
\ No newline at end of file