Skip to content

Commit c2afa59

Browse files
authoredDec 3, 2021
IO: Simplified comment token (#3214)
1 parent 7b72e0a commit c2afa59

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed
 

‎components/prism-io.js

+5-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
Prism.languages.io = {
2-
'comment': [
3-
{
4-
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
5-
lookbehind: true
6-
},
7-
{
8-
pattern: /(^|[^\\])\/\/.*/,
9-
lookbehind: true
10-
},
11-
{
12-
pattern: /(^|[^\\])#.*/,
13-
lookbehind: true
14-
}
15-
],
2+
'comment': {
3+
pattern: /(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,
4+
lookbehind: true,
5+
greedy: true
6+
},
167
'triple-quoted-string': {
178
pattern: /"""(?:\\[\s\S]|(?!""")[^\\])*"""/,
189
greedy: true,

‎components/prism-io.min.js

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

0 commit comments

Comments
 (0)
Please sign in to comment.