Skip to content

Commit

Permalink
INI: Swap out header for section (#3304)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonweiting authored Jan 24, 2022
1 parent e46501b commit deb3a97
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion components/prism-ini.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Prism.languages.ini = {
pattern: /(^[ \f\t\v]*)[#;][^\n\r]*/m,
lookbehind: true
},
'header': {
'section': {
pattern: /(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,
lookbehind: true,
inside: {
Expand Down
2 changes: 1 addition & 1 deletion components/prism-ini.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -13,66 +13,66 @@
----------------------------------------------------

[
["header", [
["section", [
["punctuation", "["],
["section-name", "foo1"],
["punctuation", "]"]
]],

["header", [
["section", [
["punctuation", "["],
["section-name", "\"foo2\""],
["punctuation", "]"]
]],

["header", [
["section", [
["punctuation", "["],
["section-name", "foo3"],
["punctuation", "]"]
]],

["header", [
["section", [
["punctuation", "["],
["section-name", "\" foo4 \""],
["punctuation", "]"]
]],

["header", [
["section", [
["punctuation", "["],
["section-name", "\"foo5 bar5\""],
["punctuation", "]"]
]],

["header", [
["section", [
["punctuation", "["],
["section-name", "\"foo6\""],
["punctuation", "]"]
]],

["header", [
["section", [
["punctuation", "["],
["section-name", "foo7"]
]],

["header", [
["section", [
["punctuation", "["],
["section-name", "foo8 bar8"],
["punctuation", "]"]
]],

["header", [
["section", [
["punctuation", "["],
["section-name", "foo9[bar9"],
["punctuation", "]"]
]],

["header", [
["section", [
["punctuation", "["],
["section-name", "foo10"],
["punctuation", "]"]
]],

["header", [
["section", [
["punctuation", "["],
["section-name", "foo11"],
["punctuation", "]"]
Expand All @@ -83,4 +83,4 @@

----------------------------------------------------

Checks for headers (and section names).
Checks for sections (and section names).

0 comments on commit deb3a97

Please sign in to comment.