From 53d58390296fece4b06b9de56259cc0190b3e719 Mon Sep 17 00:00:00 2001 From: Golmote Date: Mon, 24 Aug 2015 07:59:39 +0200 Subject: [PATCH] Ini: Fix some regexps + remove unused flags --- components/prism-ini.js | 20 ++++++++++---------- components/prism-ini.min.js | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/components/prism-ini.js b/components/prism-ini.js index 1f6cb1251b..e6a3852203 100644 --- a/components/prism-ini.js +++ b/components/prism-ini.js @@ -1,11 +1,11 @@ -Prism.languages.ini= { - 'comment': /^\s*;.*$/m, - 'important': /\[.*?\]/m, - 'constant': /^\s*[^\s=]+?(?=[ \t]*=)/m, - 'attr-value': { - pattern: /=.*/m, - inside: { - 'punctuation': /^[=]/ - } - } +Prism.languages.ini= { + 'comment': /^[ \t]*;.*$/m, + 'important': /\[.*?\]/, + 'constant': /^[ \t]*[^\s=]+?(?=[ \t]*=)/m, + 'attr-value': { + pattern: /=.*/, + inside: { + 'punctuation': /^[=]/ + } + } }; \ No newline at end of file diff --git a/components/prism-ini.min.js b/components/prism-ini.min.js index 9f0fb2fa94..b78bc95188 100644 --- a/components/prism-ini.min.js +++ b/components/prism-ini.min.js @@ -1 +1 @@ -Prism.languages.ini={comment:/^\s*;.*$/m,important:/\[.*?\]/m,constant:/^\s*[^\s=]+?(?=[ \t]*=)/m,"attr-value":{pattern:/=.*/m,inside:{punctuation:/^[=]/}}}; \ No newline at end of file +Prism.languages.ini={comment:/^[ \t]*;.*$/m,important:/\[.*?\]/,constant:/^[ \t]*[^\s=]+?(?=[ \t]*=)/m,"attr-value":{pattern:/=.*/,inside:{punctuation:/^[=]/}}}; \ No newline at end of file