YAML Fontmatter syntax highlighter has issues with quotes

Steps to reproduce

Use the following YAML front matter

---
problem1: Single quote ' and YAML syntax highlighter
problem2: "Escaping quotes \" and YAML syntax highligher"
---

Expected result

YAML strings are colored properly

Actual result

image

Environment

  • Operating system: Windows 11
  • Debug info:

SYSTEM INFO:
Obsidian version: v0.14.15
Installer version: v0.14.6
Operating system: Windows 10 Pro 10.0.22000
Login status: logged in
Catalyst license: insider
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Safe mode: off
Plugins installed: 40
Plugins enabled: 39
1: Tag Wrangler
2: Advanced URI
3: Find unlinked files and unresolved links
4: Dataview
5: Customizable Sidebar
6: Quick Explorer
7: Recent Files
8: Obsidian Git
9: Advanced Tables
10: Markdown Table Editor
11: Excel to Markdown Table
12: Copy Image and URL in Preview
13: Local images
14: File Cleaner
15: AidenLx’s Folder Note
16: Hot Reload
17: Shortcuts extender
18: Electron Window Tweaker
19: Collapse All
20: Templater
21: Indentation Lines
22: Go to Line
23: Obsidian42 - BRAT
24: Number Headings
25: Better CodeBlock
26: Consistent attachments and links
27: Dynamic Table of Contents
28: WordPress
29: Image Toolkit
30: Obsidian Link Converter
31: Custom Attachment Location
32: Filename Heading Sync
33: Linter
34: Folder Note Core
35: AidenLx’s Folder Note - folderv component
36: Sliding Panes (Andy’s Mode)
37: Frontmatter Tag Suggest
38: Completr
39: Omnisearch


Additional information

N/A