Skip to content

Commit d96c70a

Browse files
committed
fix: improve markdown highlighting
1 parent 983f8d8 commit d96c70a

8 files changed

+1326
-97
lines changed

.src/schemes/scheme.YAML-tmTheme

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ settings:
121121
markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js
122122
settings:
123123
foreground: '<%= scheme.base.green %>'
124-
fontStyle: normal
124+
fontStyle: 'normal'
125125

126126
- name: Class, Support
127127
scope: entity.name.class, entity.name.type.class, support.type, support.class, support.orther.namespace.use.php,
@@ -204,7 +204,7 @@ settings:
204204
- name: URL
205205
scope: '*url*, *link*, *uri*'
206206
settings:
207-
fontStyle: underline
207+
fontStyle: 'underline'
208208

209209
- name: Search Results Nums
210210
scope: constant.numeric.line-number.find-in-files - match
@@ -285,12 +285,12 @@ settings:
285285
- name: Markdown - Markup Raw Inline
286286
scope: text.html.markdown markup.raw.inline
287287
settings:
288-
foreground: '<%= scheme.base.red %>'
288+
background: '<%= scheme.invisibles %>'
289289

290290
- name: Markdown - Line Break
291291
scope: text.html.markdown meta.dummy.line-break
292292
settings:
293-
foreground: '<%= scheme.invisibles %>'
293+
foreground: '<%= scheme.punctuation %>'
294294

295295
- name: Markdown - Heading
296296
scope: markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown
@@ -304,11 +304,16 @@ settings:
304304
foreground: '<%= scheme.base.pink %>'
305305

306306
- name: Markup - Bold
307-
scope: markup.bold
307+
scope: markup.bold, markup.bold string
308308
settings:
309309
fontStyle: 'bold'
310310
foreground: '<%= scheme.base.pink %>'
311311

312+
- name: Markup - Bold & Italic
313+
scope: markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string
314+
settings:
315+
fontStyle: 'bold italic'
316+
312317
- name: Markup - Underline
313318
scope: markup.underline
314319
settings:
@@ -319,26 +324,36 @@ settings:
319324
scope: markup.strike
320325
settings:
321326
fontStyle: 'strike'
322-
foreground: '<%= scheme.base.brown %>'
327+
foreground: '<%= scheme.base.comments %>'
323328

324329
- name: Markdown - Blockquote
325-
scope: markup.quote, punctuation.definition.blockquote.markdown
330+
scope: markup.quote punctuation.definition.blockquote.markdown
326331
settings:
327-
fontStyle: 'italic'
328-
foreground: '<%= scheme.base.cyan %>'
332+
background: '<%= scheme.invisibles %>'
333+
foreground: '<%= scheme.invisibles %>'
329334

330335
- name: Markup - Quote
331336
scope: markup.quote
332337
settings:
333338
fontStyle: 'italic'
334-
foreground: '<%= scheme.base.cyan %>'
339+
foreground: '<%= scheme.base.comments %>'
335340

336341
- name: Markdown - Link
337342
scope: string.other.link.title.markdown
338343
settings:
339-
fontStyle: 'underline'
340344
foreground: '<%= scheme.base.blue %>'
341345

346+
- name: Markdown - Link Description
347+
scope: string.other.link.description.title.markdown
348+
settings:
349+
foreground: '<%= scheme.base.purple %>'
350+
351+
- name: Markdown - Link Anchor
352+
scope: constant.other.reference.link.markdown
353+
settings:
354+
foreground: '<%= scheme.base.yellow %>'
355+
356+
342357
- name: Markup - Raw Block
343358
scope: markup.raw.block
344359
settings:
@@ -362,6 +377,16 @@ settings:
362377
fontStyle: ''
363378
foreground: '<%= scheme.invisibles %>'
364379

380+
- name: Markdown - Punctuation Definition
381+
scope: text.html.markdown punctuation.definition
382+
settings:
383+
foreground: '<%= scheme.comments %>'
384+
385+
- name: Markdown HTML - Punctuation Definition
386+
scope: text.html.markdown meta.disable-markdown punctuation.definition
387+
settings:
388+
foreground: '<%= scheme.base.cyan %>'
389+
365390
- name: Markdown - Separator
366391
scope: meta.separator
367392
settings:
@@ -372,8 +397,7 @@ settings:
372397
- name: Markup - Table
373398
scope: markup.table
374399
settings:
375-
background: '<%= scheme.base.red %>1a'
376-
foreground: '<%= scheme.base.red %>'
400+
background: '<%= scheme.invisible %>'
377401

378402
# >> AceJump
379403

0 commit comments

Comments
 (0)