Skip to content

Commit 2eb89e1

Browse files
authored
Swap out operator for punctuation (#3306)
1 parent 3a20bdc commit 2eb89e1

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

components/prism-systemd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
}
6969
},
7070

71-
'operator': /=/
71+
'punctuation': /=/
7272
};
7373

7474
}(Prism));

components/prism-systemd.min.js

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

tests/languages/systemd/boolean_feature.test

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,37 @@ foo=no
99

1010
[
1111
["key", "foo"],
12-
["operator", "="],
12+
["punctuation", "="],
1313
["value", [
1414
["boolean", "on"]
1515
]],
1616

1717
["key", "foo"],
18-
["operator", "="],
18+
["punctuation", "="],
1919
["value", [
2020
["boolean", "true"]
2121
]],
2222

2323
["key", "foo"],
24-
["operator", "="],
24+
["punctuation", "="],
2525
["value", [
2626
["boolean", "yes"]
2727
]],
2828

2929
["key", "foo"],
30-
["operator", "="],
30+
["punctuation", "="],
3131
["value", [
3232
["boolean", "off"]
3333
]],
3434

3535
["key", "foo"],
36-
["operator", "="],
36+
["punctuation", "="],
3737
["value", [
3838
["boolean", "false"]
3939
]],
4040

4141
["key", "foo"],
42-
["operator", "="],
42+
["punctuation", "="],
4343
["value", [
4444
["boolean", "no"]
4545
]]

tests/languages/systemd/key_feature.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ foo =
44
----------------------------------------------------
55

66
[
7-
["key", "foo"], ["operator", "="],
8-
["key", "foo"], ["operator", "="]
7+
["key", "foo"], ["punctuation", "="],
8+
["key", "foo"], ["punctuation", "="]
99
]

tests/languages/systemd/value_feature.test

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,33 @@ foo=value 3\
1313
----------------------------------------------------
1414

1515
[
16-
["key", "foo"], ["operator", "="], ["value", ["value 2"]],
16+
["key", "foo"], ["punctuation", "="], ["value", ["value 2"]],
1717

1818
["key", "foo"],
19-
["operator", "="],
19+
["punctuation", "="],
2020
["value", [
2121
["quoted", "\"something\""],
2222
["quoted", "\"some thing\""],
2323
["quoted", "\"…\""]
2424
]],
2525

2626
["key", "foo"],
27-
["operator", "="],
27+
["punctuation", "="],
2828
["value", [
2929
["quoted", "\"something\""],
3030
["quoted", "\"some thing\""],
3131
["quoted", "\"…\""]
3232
]],
3333

3434
["key", "foo"],
35-
["operator", "="],
35+
["punctuation", "="],
3636
["value", [
3737
"value 2 ", ["punctuation", "\\"],
3838
"\r\n value 2 continued"
3939
]],
4040

4141
["key", "foo"],
42-
["operator", "="],
42+
["punctuation", "="],
4343
["value", [
4444
"value 3", ["punctuation", "\\"],
4545
["comment", "# this line is ignored"],

0 commit comments

Comments
 (0)