Skip to content

Commit

Permalink
Swap out operator for punctuation (#3306)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonweiting authored Jan 24, 2022
1 parent 3a20bdc commit 2eb89e1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion components/prism-systemd.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}
},

'operator': /=/
'punctuation': /=/
};

}(Prism));
2 changes: 1 addition & 1 deletion components/prism-systemd.min.js

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

12 changes: 6 additions & 6 deletions tests/languages/systemd/boolean_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,37 @@ foo=no

[
["key", "foo"],
["operator", "="],
["punctuation", "="],
["value", [
["boolean", "on"]
]],

["key", "foo"],
["operator", "="],
["punctuation", "="],
["value", [
["boolean", "true"]
]],

["key", "foo"],
["operator", "="],
["punctuation", "="],
["value", [
["boolean", "yes"]
]],

["key", "foo"],
["operator", "="],
["punctuation", "="],
["value", [
["boolean", "off"]
]],

["key", "foo"],
["operator", "="],
["punctuation", "="],
["value", [
["boolean", "false"]
]],

["key", "foo"],
["operator", "="],
["punctuation", "="],
["value", [
["boolean", "no"]
]]
Expand Down
4 changes: 2 additions & 2 deletions tests/languages/systemd/key_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ foo =
----------------------------------------------------

[
["key", "foo"], ["operator", "="],
["key", "foo"], ["operator", "="]
["key", "foo"], ["punctuation", "="],
["key", "foo"], ["punctuation", "="]
]
10 changes: 5 additions & 5 deletions tests/languages/systemd/value_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,33 @@ foo=value 3\
----------------------------------------------------

[
["key", "foo"], ["operator", "="], ["value", ["value 2"]],
["key", "foo"], ["punctuation", "="], ["value", ["value 2"]],

["key", "foo"],
["operator", "="],
["punctuation", "="],
["value", [
["quoted", "\"something\""],
["quoted", "\"some thing\""],
["quoted", "\"…\""]
]],

["key", "foo"],
["operator", "="],
["punctuation", "="],
["value", [
["quoted", "\"something\""],
["quoted", "\"some thing\""],
["quoted", "\"…\""]
]],

["key", "foo"],
["operator", "="],
["punctuation", "="],
["value", [
"value 2 ", ["punctuation", "\\"],
"\r\n value 2 continued"
]],

["key", "foo"],
["operator", "="],
["punctuation", "="],
["value", [
"value 3", ["punctuation", "\\"],
["comment", "# this line is ignored"],
Expand Down

0 comments on commit 2eb89e1

Please sign in to comment.