|
| 1 | +// @flow |
| 2 | + |
| 3 | +/* :: |
| 4 | +import type {Palette, FontStyles} from '../types' |
| 5 | +*/ |
| 6 | + |
| 7 | +const asciidoc = ( |
| 8 | + palette /*: Palette */, |
| 9 | + fontStyleEnabled /*: FontStyles */ |
| 10 | +) => [ |
| 11 | + { |
| 12 | + name: `AsciiDoc - Heading 0-6`, |
| 13 | + scope: [ |
| 14 | + `markup.heading.heading-0.asciidoc`, |
| 15 | + `markup.heading.heading-1.asciidoc`, |
| 16 | + `markup.heading.heading-2.asciidoc`, |
| 17 | + `markup.heading.heading-3.asciidoc`, |
| 18 | + `markup.heading.heading-4.asciidoc`, |
| 19 | + `markup.heading.heading-5.asciidoc`, |
| 20 | + `markup.heading.heading-6.asciidoc`, |
| 21 | + ], |
| 22 | + settings: { |
| 23 | + foreground: palette.magenta, |
| 24 | + }, |
| 25 | + }, |
| 26 | + { |
| 27 | + name: `AsciiDoc - Fenced Bode Block`, |
| 28 | + scope: [ |
| 29 | + `text.asciidoc markup.code markup.heading`, |
| 30 | + `text.asciidoc markup.code markup.heading entity.name.function`, |
| 31 | + ], |
| 32 | + settings: { |
| 33 | + foreground: palette.blue, |
| 34 | + }, |
| 35 | + }, |
| 36 | + { |
| 37 | + name: `AsciiDoc - Bold`, |
| 38 | + scope: [`markup.bold.asciidoc`], |
| 39 | + settings: { |
| 40 | + fontStyle: `bold`, |
| 41 | + }, |
| 42 | + }, |
| 43 | + { |
| 44 | + name: `AsciiDoc - Italic`, |
| 45 | + scope: [`markup.italic.asciidoc`], |
| 46 | + settings: { |
| 47 | + fontStyle: `italic`, |
| 48 | + }, |
| 49 | + }, |
| 50 | + |
| 51 | + { |
| 52 | + name: `AsciiDoc - Italic`, |
| 53 | + scope: [`markup.raw.monospace.asciidoc`], |
| 54 | + settings: { |
| 55 | + fontStyle: `bold`, |
| 56 | + foreground: palette.blue, |
| 57 | + }, |
| 58 | + }, |
| 59 | +]; |
| 60 | + |
| 61 | +module.exports = asciidoc; |
0 commit comments