Skip to content

Commit 70d7db8

Browse files
committed
it is a better idea to name it as a systemd format
1 parent 871b819 commit 70d7db8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/languages/desktop.js renamed to src/languages/systemd.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
2-
Language: XDGDesktop
3-
Description: XDG Desktop Entry Specification file format.
2+
Language: Systemd
3+
Description: Systemd/XDG Entry Specification file format.
44
Contributors: Lee Yunjin <[email protected]>
55
Category: common, config
6-
Website: https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/
6+
Website: https://www.freedesktop.org/
77
*/
88

99
export default function(hljs) {
@@ -35,7 +35,7 @@ export default function(hljs) {
3535

3636
const SECTION_HEADER = {
3737
className: 'section',
38-
begin: /^\[(Desktop Entry|Unit|Service|Install|Socket|Mount|Automount|Swap|Path|Timer|Slice|Scope|Manager|Journak|Bridge|Desktop Action\s+[A-Za-z0-9_-]+)\]/,
38+
begin: /^\[(Desktop Entry|Unit|Service|Install|Socket|Mount|Automount|Swap|Path|Timer|Slice|Scope|Manager|connection|ipv4|ipv6|802-3-ethernet|802-11-wireless|802-11-wireless-security|vpn|Journal|Bridge|Desktop Action\s+[A-Za-z0-9_-]+)\]/,
3939
relevance: 10
4040
};
4141

@@ -67,8 +67,8 @@ export default function(hljs) {
6767
};
6868

6969
return {
70-
name: 'Desktop',
71-
aliases: ['desktop'],
70+
name: 'Systemd',
71+
aliases: ['desktop', 'service', 'mount', 'socket', 'timer', 'nmconnection','systemd'],
7272
case_insensitive: false,
7373
contains: [
7474
COMMENT_MODE,

0 commit comments

Comments
 (0)