🐞 Bracket pair highlight breaks editor while working on Javascript
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, swift
- Domain
- tooling
Research direction
Reproduce the issue in CodeEditSourceEditor 0.3.4-alpha with Bracket Pair Highlight enabled for all three styles, first in a .js file and then inside an HTML <script> section. Inspect the Swift syntax-highlighting and tree-sitter integration involved in bracket highlighting, and compare behavior outside the script section. Done means typing remains responsive after entering an opening bracket in JavaScript.
Written by the indexing model from the issue text.
Description
Description
The "Bracket Pair Highlight" feature breaks the editor when working on Javascript code.
All options (Bordered, Flash, Underline) result in the same issue.
Tested both within a .js file and within a <script> tag in an .html file. The behaviour didn't happen outside of the <script> tags within the HTML file as I suspect it's a bug in the syntax highlighting code.
To Reproduce
- Go to CodeEdit menu > Settings > Text Editing
- Enable "Bracket Pair Highlight" (Same behaviour across all options)
- Create a new javascript (.js) file - OR - an HTML file (.html) with a <script> section.
- Go back to the editor and try typing in a function call e.g.: function('')
- After typing the opening bracket, keyboard input will stop responding in the editor.
Expected Behavior
For the editor to continue working.
Version Information
CodeEdit: 0.3.4-alpha (45)
macOS: Sequoia 15.5 (24F74)
Xcode: 16.3.0.0.1.1742442376
Additional Context
Tested both with a .js file and within a <script> tag in an .html file.
Screenshots
No response
- Dominant language
- Swift
- Stars
- 720
- Forks
- 162
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CodeEditApp/CodeEditSourceEditor
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
CodeEditApp/CodeEditSourceEditor#377 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
CodeEditApp/CodeEditSourceEditor#376 · 1 comment ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
CodeEditApp/CodeEditSourceEditor#378 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
All issues in CodeEditApp/CodeEditSourceEditor
Similar issues
-
area:dictation documentation P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
uttrflow/uttrflow-swift#1180 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
OneBusAway/onebusaway-ios#1451 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100