We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdef708 commit 064b2e5Copy full SHA for 064b2e5
src/languages/systemd.js
@@ -38,6 +38,18 @@ export default function(hljs) {
38
relevance: 10
39
};
40
41
+ const VALUE_MODE = {
42
+ begin: /(?==)/,
43
+ end: /$/,
44
+ contains: [
45
+ LITERALS,
46
+ QUOTED_STRING,
47
+ FIELD_CODES,
48
+ COMMENT_MODE
49
+ ],
50
+ relevance: 0
51
+ };
52
+
53
const KEY_VALUE_PAIR = {
54
begin: /^[A-Za-z0-9_-]+(\[[A-Za-z0-9_@.]+\])?\s*=/,
55
end: /$/,
@@ -53,22 +65,7 @@ export default function(hljs) {
65
match: /=/,
66
relevance: 0
67
},
56
- COMMENT_MODE,
57
- {
58
- begin: /(?==)/,
59
- end: /$/,
60
- contains: [
61
- LITERALS,
62
- QUOTED_STRING,
63
- FIELD_CODES
64
- ],
- relevance: 0
- },
68
- className: 'punctuation',
69
- match: /;/,
70
71
- }
+ VALUE_MODE
72
]
73
74
0 commit comments