Skip to content

Commit fe8ad8b

Browse files
aviaryanLeaVerou
authored andcommitted
Remove important token in ini definition (#1047)
* rename prism-ini section token to selector * updated min file * use [ \t] instead of the more general \s
1 parent cba78f3 commit fe8ad8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/prism-ini.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Prism.languages.ini= {
22
'comment': /^[ \t]*;.*$/m,
3-
'important': /\[.*?\]/,
3+
'selector': /^[ \t]*\[.*?\]/m,
44
'constant': /^[ \t]*[^\s=]+?(?=[ \t]*=)/m,
55
'attr-value': {
66
pattern: /=.*/,

components/prism-ini.min.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Prism.languages.ini={comment:/^[ \t]*;.*$/m,important:/\[.*?\]/,constant:/^[ \t]*[^\s=]+?(?=[ \t]*=)/m,"attr-value":{pattern:/=.*/,inside:{punctuation:/^[=]/}}};
1+
Prism.languages.ini={comment:/^[ \t]*;.*$/m,selector:/^[ \t]*\[.*?\]/m,constant:/^[ \t]*[^\s=]+?(?=[ \t]*=)/m,"attr-value":{pattern:/=.*/,inside:{punctuation:/^[=]/}}};

0 commit comments

Comments
 (0)