You can see the java language defined by the link below
https://microsoft.imtqy.com/monaco-editor/node_modules/monaco-editor/min/vs/basic-languages/src/java.js

If you see, what you need is not part of the language as such, but part of the configuration of that language.
So, if I open the console window on the Monarch demo link and follow below
config = {"surroundingPairs":[{"open":"{","close":"}"}],"autoClosingPairs":[{"open":"{","close":"}"}],"brackets":[["{","}"]]} monaco.languages.setLanguageConfiguration("monarch-language-mylang", config)
Automatic parenthesis matching begins as shown below.


Therefore, you also need to set the configuration for your language
Tarun lalwani
source share