Skip to content

Commit d79bbf9

Browse files
committed
add contains attribute
1 parent 7395f5d commit d79bbf9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/languages/systemd.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ Contributors: Lee Yunjin <[email protected]>
55
Category: common, config
66
Website: https://www.freedesktop.org/
77
*/
8-
98
export default function(hljs) {
109
const LITERALS = {
11-
className: 'literal',
12-
begin: /=(true|false|Application|Link|Directory|forking|oneshot|OneShot)\b/,
10+
begin: /=/,
11+
end: /$/,
12+
contains: [
13+
{
14+
className: 'literal',
15+
begin: /\b(true|false|Application|Link|Directory|forking|oneshot|OneShot)\b/,
16+
relevance: 0
17+
}
18+
],
1319
relevance: 0
1420
};
1521

@@ -77,4 +83,3 @@ export default function(hljs) {
7783
]
7884
};
7985
}
80-

0 commit comments

Comments
 (0)