From e46501b9ec11dae91cde32acc88167d68a5e1d73 Mon Sep 17 00:00:00 2001 From: Wei Ting <59229084+hoonweiting@users.noreply.github.com> Date: Mon, 24 Jan 2022 19:24:16 +0800 Subject: [PATCH] editorconfig: Change alias of `section` from `keyword` to `selector` (#3305) --- components/prism-editorconfig.js | 2 +- components/prism-editorconfig.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/prism-editorconfig.js b/components/prism-editorconfig.js index e4775e7a65..297b041769 100644 --- a/components/prism-editorconfig.js +++ b/components/prism-editorconfig.js @@ -4,7 +4,7 @@ Prism.languages.editorconfig = { 'section': { pattern: /(^[ \t]*)\[.+\]/m, lookbehind: true, - alias: 'keyword', + alias: 'selector', inside: { 'regex': /\\\\[\[\]{},!?.*]/, // Escape special characters with '\\' 'operator': /[!?]|\.\.|\*{1,2}/, diff --git a/components/prism-editorconfig.min.js b/components/prism-editorconfig.min.js index 435b900070..d98df1685d 100644 --- a/components/prism-editorconfig.min.js +++ b/components/prism-editorconfig.min.js @@ -1 +1 @@ -Prism.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"keyword",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}; \ No newline at end of file +Prism.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}; \ No newline at end of file