Skip to content

Commit deb3a97

Browse files
authored
INI: Swap out header for section (#3304)
1 parent e46501b commit deb3a97

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

components/prism-ini.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Prism.languages.ini = {
1010
pattern: /(^[ \f\t\v]*)[#;][^\n\r]*/m,
1111
lookbehind: true
1212
},
13-
'header': {
13+
'section': {
1414
pattern: /(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,
1515
lookbehind: true,
1616
inside: {

components/prism-ini.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/languages/ini/header_feature.test tests/languages/ini/section_feature.test

+12-12
Original file line numberDiff line numberDiff line change
@@ -13,66 +13,66 @@
1313
----------------------------------------------------
1414

1515
[
16-
["header", [
16+
["section", [
1717
["punctuation", "["],
1818
["section-name", "foo1"],
1919
["punctuation", "]"]
2020
]],
2121

22-
["header", [
22+
["section", [
2323
["punctuation", "["],
2424
["section-name", "\"foo2\""],
2525
["punctuation", "]"]
2626
]],
2727

28-
["header", [
28+
["section", [
2929
["punctuation", "["],
3030
["section-name", "foo3"],
3131
["punctuation", "]"]
3232
]],
3333

34-
["header", [
34+
["section", [
3535
["punctuation", "["],
3636
["section-name", "\" foo4 \""],
3737
["punctuation", "]"]
3838
]],
3939

40-
["header", [
40+
["section", [
4141
["punctuation", "["],
4242
["section-name", "\"foo5 bar5\""],
4343
["punctuation", "]"]
4444
]],
4545

46-
["header", [
46+
["section", [
4747
["punctuation", "["],
4848
["section-name", "\"foo6\""],
4949
["punctuation", "]"]
5050
]],
5151

52-
["header", [
52+
["section", [
5353
["punctuation", "["],
5454
["section-name", "foo7"]
5555
]],
5656

57-
["header", [
57+
["section", [
5858
["punctuation", "["],
5959
["section-name", "foo8 bar8"],
6060
["punctuation", "]"]
6161
]],
6262

63-
["header", [
63+
["section", [
6464
["punctuation", "["],
6565
["section-name", "foo9[bar9"],
6666
["punctuation", "]"]
6767
]],
6868

69-
["header", [
69+
["section", [
7070
["punctuation", "["],
7171
["section-name", "foo10"],
7272
["punctuation", "]"]
7373
]],
7474

75-
["header", [
75+
["section", [
7676
["punctuation", "["],
7777
["section-name", "foo11"],
7878
["punctuation", "]"]
@@ -83,4 +83,4 @@
8383

8484
----------------------------------------------------
8585

86-
Checks for headers (and section names).
86+
Checks for sections (and section names).

0 commit comments

Comments
 (0)