Skip to content

Commit 38a5ed5

Browse files
authored
Make output sub-modes end with parent; use non-0-width begins (#10)
1 parent 1ed5e58 commit 38a5ed5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

javascripts/discourse/api-initializers/theme-initializer.gjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,11 +668,13 @@ function juliaRepl(hljs) {
668668
begin: /\s+@?code_llvm/,
669669
end: /^(?![ ]{6})/,
670670
subLanguage: "julia",
671+
endsWithParent: true,
671672
},
672673
{
673674
// The LLVM IR output that follows
674-
end: /^(?=julia>)/,
675+
begin: /^./,
675676
subLanguage: "llvm",
677+
endsWithParent: true,
676678
},
677679
],
678680
},
@@ -690,11 +692,13 @@ function juliaRepl(hljs) {
690692
begin: /\s+@?code_native/,
691693
end: /^(?![ ]{6})/,
692694
subLanguage: "julia",
695+
endsWithParent: true,
693696
},
694697
{
695698
// The assembly that follows
696-
end: /^(?=julia>)/,
699+
begin: /^./,
697700
subLanguage: ["armasm", "x86asm"],
701+
endsWithParent: true,
698702
},
699703
],
700704
},

0 commit comments

Comments
 (0)