Repository: vscode
Issue: Bugs and suggestions for `language-configuration.json`
Labels: bug,editor-core,under-discussion

This report is just a list of different bugs, weirdness, suggestions, feature requests, notes and missing info; from within and around the `language-configuration.json` file
I can open a new report for any one of these items if needed

- [ ] Bug: https://github.com/microsoft/vscode/issues/197970
- [x] Bug: https://github.com/microsoft/vscode/issues/149460
- [x] Request: https://github.com/microsoft/vscode/issues/141044
- [x] Suggestion: https://github.com/microsoft/vscode/issues/149719
- [x] Bug: https://github.com/microsoft/vscode/issues/150687
- [ ] Noteable: In release 1.67 multiple-character bracket match highlighting no longer works if any one character has a different foreground token or font style than any other character.
TextMate grammar has given the `$` italics, but not the `{` (The closing bracket does not care about the opening bracket's token)
![image](https://user-images.githubusercontent.com/33529441/169013178-077647b9-f05d-4c30-94fa-2013273e6989.png) 1.66: ![image](https://user-images.githubusercontent.com/33529441/168996014-b2871d47-8d53-4548-8d74-a4c9393020c7.png) 1.67: ![image](https://user-images.githubusercontent.com/33529441/169012898-481660e0-8a26-4ef4-af71-0eea40d5a0d7.png)
- [ ] Feature request: Allow match highlighting with the same opening and closing character
If `"` is defined as both the opening and closing `"brackets"`, vscode will mark all `"` as invalid
1.66: ![image](https://user-images.githubusercontent.com/33529441/169001115-77a006da-13db-47c6-85b7-8b0c16650a18.png) 1.67: ![image](https://user-images.githubusercontent.com/33529441/169000448-d6c901c3-66df-4def-8012-bf76470821f8.png)
- [ ] Noteable: Match highlighting does not work correctly with letters: 
![image](https://user-images.githubusercontent.com/33529441/169002780-760c99b5-3e9a-4813-ae80-3567419d40b8.png) ![image](https://user-images.githubusercontent.com/33529441/169002491-c780eba7-2a51-44af-aecc-68faf065d388.png) ![image](https://user-images.githubusercontent.com/33529441/169002483-d67beff5-615a-46fb-beab-106769a34f8f.png) ![image](https://user-images.githubusercontent.com/33529441/169002804-eb388ce2-0b20-4e49-8c19-76b9af579b9d.png)
- [ ] Bug: Suggestions are not available if a word starts with a number even if `"wordPattern"` allows it
![image](https://user-images.githubusercontent.com/33529441/169004483-8c006f26-e202-45dc-9fee-6bd542b27848.png)
![image](https://user-images.githubusercontent.com/33529441/169004937-f35ca81f-2c91-4690-b533-d73bfa313609.png) ![image](https://user-images.githubusercontent.com/33529441/169004946-0a808b17-af29-47a1-a4e6-b7dc24cf930b.png)

- [ ] Weird: Word highlighting won't highlight the word under the cusor if the ending character is a letter and the following character is also a letter
But weirdly; it will still highlight other occurrences of the word in the document
![image](https://user-images.githubusercontent.com/33529441/169006789-5290280c-0fb7-4675-8665-1500d1002339.png) ![image](https://user-images.githubusercontent.com/33529441/169006162-145856b4-252c-425f-8680-a70551d9b626.png)


- [x] Bug: When embedding a language inside another;  `"comments"`, `"colorizedBracketPairs"` and `"wordPattern"` correctly uses the embedded languages settings. But `"autoClosingPairs"`, `"autoCloseBefore"`, `"folding"` and `"indentationRules"` do not work, and instead continue to use the parent's language settings
https://github.com/microsoft/vscode/issues/176034
- [ ] Feature request: Add a 'case-insensitivity' option to `"wordPattern"`. Currently trying with `(?i)` will cause it to fail silently
https://github.com/microsoft/vscode/issues/72989

- [x] Feature request: Allow a way to disable 'bracket colouring' for specific brackets, but still allow 'bracket pair highlighting'
Either via a special token or just specifying the brackets
For when you want to see bracket pairs without them changing colour. Would be useful for non-nesting bracket types
e.g. comments, strings, ranged quantifiers (in regex) `{2,3}` and even for word based 'brackets' like `If` and `EndIf`
https://github.com/microsoft/vscode/issues/170497

- [x] Bug: Horizontal bracket guides do not work on wrapped lines if `editor.wrappingIndent` is set to `none` (or `same` and if there is no indentation)
`none`: ![image](https://user-images.githubusercontent.com/33529441/169180040-a448834f-3744-4ad3-be70-aae5bbe6a8f1.png) `indent`: ![image](https://user-images.githubusercontent.com/33529441/169180444-4103234b-ab6c-4f38-b83f-262e65d9eeb0.png)
https://github.com/microsoft/vscode/issues/149074








- [ ] Bug: https://code.visualstudio.com/api/language-extensions/language-configuration-guide does not list the new `"colorizedBracketPairs"` option. Nor does it say that `"brackets"` will implicitly enable all other options if not explicitly 'not defined' (TODO: needs more info)