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 3016e69 commit dae11b7Copy full SHA for dae11b7
antora-ui/src/js/vendor/cpp-highlight.js
@@ -76,7 +76,15 @@ const CppHighlight = (function () {
76
i += 2
77
let depth = 1
78
while (i < n && depth > 0) {
79
- if (code.slice(i, i + 2) === '[[') { depth++; i += 2 } else if (code.slice(i, i + 2) === ']]') { depth--; i += 2 } else i++
+ if (code.slice(i, i + 2) === '[[') {
80
+ depth++
81
+ i += 2
82
+ } else if (code.slice(i, i + 2) === ']]') {
83
+ depth--
84
85
+ } else {
86
+ i++
87
+ }
88
}
89
result.push(span('attribute', code.slice(start, i)))
90
continue
0 commit comments