Skip to content

Commit

Permalink
IO: Simplified comment token (#3214)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Dec 3, 2021
1 parent 7b72e0a commit c2afa59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
19 changes: 5 additions & 14 deletions components/prism-io.js
@@ -1,18 +1,9 @@
Prism.languages.io = {
'comment': [
{
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
lookbehind: true
},
{
pattern: /(^|[^\\])\/\/.*/,
lookbehind: true
},
{
pattern: /(^|[^\\])#.*/,
lookbehind: true
}
],
'comment': {
pattern: /(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,
lookbehind: true,
greedy: true
},
'triple-quoted-string': {
pattern: /"""(?:\\[\s\S]|(?!""")[^\\])*"""/,
greedy: true,
Expand Down
2 changes: 1 addition & 1 deletion components/prism-io.min.js

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

0 comments on commit c2afa59

Please sign in to comment.