Commit 2ef5885
feat(web): Shiki at build time replaces the regex highlighter; postfix #if sits flush
Shiki 4 runs in a Vite plugin over the snippets in copy.ts and hands the
page finished markup through a virtual module: no grammar or engine ships.
The theme is the page's own, written against the scopes the Swift, Markdown
and shell grammars emit, with colours replaced by the palette's CSS
variables so both themes are one theme. One transformer does what the Swift
grammar cannot: colour a capitalised name in call or member position as a
type, as Xcode does. Tests pin the roles against the real grammars.
The iOS snippet, README and doc comment now indent the modifier inside
#if/#endif rather than the directives themselves, per SE-0308 and Xcode.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 9f665ea commit 2ef5885
18 files changed
Lines changed: 900 additions & 185 deletions
File tree
- Sources/AnnotKit/iOS
- web
- plugins
- public
- src
- components
- sections
- styles
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments