Commit 5b3f31daf52824139aacced448021c94220e8737

Lea Verou 2014-07-11T12:30:40

Merge pull request #289 from aviaryan/c-ini fixed some bugs in INI highlighting

diff --git a/components/prism-ini.js b/components/prism-ini.js
index 9288385..ca40829 100644
--- a/components/prism-ini.js
+++ b/components/prism-ini.js
@@ -1,6 +1,5 @@
-// by Avi Aryan (http://aviaryan.github.io)
 Prism.languages.ini= {
 	'comment': /^\s*;.*$/gm,
 	'selector': /\[.*?\]/gm,
-	'keyword': /^.+?(?=\=)/gm
+	'keyword': /^\s*[^\W]+?(?=\=)/gm
 };
\ No newline at end of file
diff --git a/components/prism-ini.min.js b/components/prism-ini.min.js
index bab9534..6458c1e 100644
--- a/components/prism-ini.min.js
+++ b/components/prism-ini.min.js
@@ -1,2 +1 @@
-// by Avi Aryan (http://aviaryan.github.io)
-Prism.languages.ini={comment:/^\s*;.*$/gm,selector:/\[.*?\]/gm,keyword:/^.+?(?=\=)/gm};
\ No newline at end of file
+Prism.languages.ini={comment:/^\s*;.*$/gm,selector:/\[.*?\]/gm,keyword:/^\s*[^\W]+?(?=\=)/gm};
\ No newline at end of file