File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -628,7 +628,7 @@ public struct HtmlRenderer: MarkupWalker {
628
628
highlighted = highlighted. replacingOccurrences (
629
629
of: commentPattern,
630
630
with: " <span class= \" hl-comment \" >$0</span> " ,
631
- options: [ . regularExpression, . anchorsMatchLines ]
631
+ options: [ . regularExpression]
632
632
)
633
633
634
634
// Highlight strings (single and double quotes)
@@ -661,7 +661,7 @@ public struct HtmlRenderer: MarkupWalker {
661
661
highlighted = highlighted. replacingOccurrences (
662
662
of: pattern,
663
663
with: " $1<span class= \" hl-command \" >$2</span> " ,
664
- options: [ . regularExpression, . anchorsMatchLines ]
664
+ options: [ . regularExpression]
665
665
)
666
666
}
667
667
@@ -703,7 +703,7 @@ public struct HtmlRenderer: MarkupWalker {
703
703
highlighted = highlighted. replacingOccurrences (
704
704
of: commentPattern,
705
705
with: " <span class= \" hl-comment \" >$0</span> " ,
706
- options: [ . regularExpression, . anchorsMatchLines ]
706
+ options: [ . regularExpression]
707
707
)
708
708
709
709
// Highlight string literals with better regex
You can’t perform that action at this time.
0 commit comments