desktop / desktop/desktop

Unexpected Swift syntax highlighting when using raw string

Open
#12,752 1 comment 0 reactions 0 assignees View on GitHub
codemirror
Dominant language
TypeScript
Stars
21.8k
Forks
10.5k
Avg merge
1d 15h
Merged PRs (30d)
25

Description

### Describe the bug
When using raw string to represent double quote (#"""#) in .swift file, syntax highlighting can't detect the end of the string and will highlight all of the code below as a string.

### Version & OS
macOS Big Sur 11.5.1
GitHub Desktop 2.9.0 (x64)

### Steps to reproduce the behavior
1. Create a .swift file
2. Create a raw string #"""#
3. Add some code after raw string
3. See unexpected syntax highlighting in GitHub Desktop

### Expected behavior
Proper syntax highlighting
Снимок экрана 2021-08-10 в 17 43 19

### Actual behavior
Unexpected syntax highlighting
Снимок экрана 2021-08-10 в 17 43 45

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.