Commit e46501b9ec11dae91cde32acc88167d68a5e1d73

Wei Ting 2022-01-24T19:24:16

editorconfig: Change alias of `section` from `keyword` to `selector` (#3305)

diff --git a/components/prism-editorconfig.js b/components/prism-editorconfig.js
index e4775e7..297b041 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 435b900..d98df16 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