Skip to content

Commit 1ed5e58

Browse files
authored
add assembly too? (#9)
1 parent 9aa4e73 commit 1ed5e58

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,28 @@ function juliaRepl(hljs) {
677677
],
678678
},
679679
},
680+
{
681+
className: "meta.prompt",
682+
begin: /^julia>(?=\s+@?code_native\b)/,
683+
relevance: 15,
684+
starts: {
685+
end: /^(?=julia>)/,
686+
returnBegin: true,
687+
contains: [
688+
{
689+
// The Julia command line itself
690+
begin: /\s+@?code_native/,
691+
end: /^(?![ ]{6})/,
692+
subLanguage: "julia",
693+
},
694+
{
695+
// The assembly that follows
696+
end: /^(?=julia>)/,
697+
subLanguage: ["armasm", "x86asm"],
698+
},
699+
],
700+
},
701+
},
680702
{
681703
className: "meta.prompt",
682704
begin: /^julia>/,

0 commit comments

Comments
 (0)