Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[
  (block)
  (arguments)
  (parameter)
  (class_definition)
  (trait_definition)
  (object_definition)
  (function_definition)
  (val_definition)
  (import_declaration)
  (while_expression)
  (do_while_expression)
  (for_expression)
  (try_expression)
  (match_expression)
] @indent

[
  "}"
  "]"
  ")"
] @outdent
mport { createHighlighter } from 'https://esm.sh/[email protected]'; const t = Object.freeze((await fetch("/icons/theme.json")).json()); const highlighter = await createHighlighter({ themes: [], langs: ["bash"] }); await highlighter.loadTheme(t); const o = document.getElementById('code-block'); const i = document.getElementById('contents'); o.innerHTML = (await highlighter.codeToHtml(i.innerText, { lang: "bash", theme: 'ayu-mirage' })).replaceAll( "font-style:italic", "font-family:'Cascadia Code NF Italic', 'Cascadia Code', italic", );