Commit a356cf4
chore: scope subscript/superscript delimiters as punctuation.definition (#21)
Follow-up polish from the #17 review. The ~ / ^ delimiters now get their
own punctuation.definition.{subscript,superscript}.{begin,end}.rxiv scopes
via captures, consistent with the existing markup.bold / markup.italic
rules, so themes can style the delimiters independently of the content.
Match behaviour is unchanged: the regexes still match H~2~O, CO~2~,
E=mc^2^, x^n^ and still ignore ~~strikethrough~~ and [^1] footnotes. Folds
into the unreleased 0.3.17 entry (no version bump).
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent e7451d4 commit a356cf4
2 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
174 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
175 | 183 | | |
176 | 184 | | |
177 | 185 | | |
| |||
0 commit comments