Skip to content

monaco-editor-3626: Ensure brackets are highlighted in languages like 'json'#176084

Merged
hediet merged 2 commits into
microsoft:mainfrom
jessebluemr:monaco-editor-issue-3626
Mar 16, 2023
Merged

monaco-editor-3626: Ensure brackets are highlighted in languages like 'json'#176084
hediet merged 2 commits into
microsoft:mainfrom
jessebluemr:monaco-editor-issue-3626

Conversation

@jessebluemr
Copy link
Copy Markdown
Contributor

This PR relates to the Bug monaco-editor 3626 reported to the monaco-editor project.

The fix makes sure that languages like json tokenized in the browser via the TokenizationSupportAdapter in standaloneLanguages.ts will support highlighting matching brackets.

The MetadataConsts.BALANCED_BRACKETS_MASK flag is added to the bitmask of the language metadata, like in monarchLexer.ts.

@jessebluemr
Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@jessebluemr jessebluemr force-pushed the monaco-editor-issue-3626 branch from 46e7582 to 1262104 Compare March 3, 2023 18:39
@jessebluemr jessebluemr force-pushed the monaco-editor-issue-3626 branch from 1262104 to 94fb920 Compare March 5, 2023 15:23
Kaparrs
Kaparrs previously approved these changes Mar 6, 2023
@jessebluemr jessebluemr force-pushed the monaco-editor-issue-3626 branch from 95271e7 to 34bcbc3 Compare March 7, 2023 23:50
@hediet hediet enabled auto-merge March 16, 2023 11:31
@hediet hediet added this to the March 2023 milestone Mar 16, 2023
@hediet hediet merged commit 704880c into microsoft:main Mar 16, 2023
@jessebluemr jessebluemr deleted the monaco-editor-issue-3626 branch March 16, 2023 15:13
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants