languages: Recognize .clang-format as YAML (#43469)

Clang-Format uses uses a YAML config file format.

Use YAML language by default for `.clang-format` and `_clang-format`
filenames.
([source](https://clang.llvm.org/docs/ClangFormatStyleOptions.html))
Add `#yaml-language-server: $schema` to `.clang-format` example in C
language docs.

Release Notes:

- Added support for identifying. `.clang-format` files as YAML by
default
This commit is contained in:
Peter Tripp
2025-11-26 01:31:52 +02:00
committed by GitHub
parent 6548eb74f1
commit 98e369285b
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name = "YAML"
grammar = "yaml"
path_suffixes = ["yml", "yaml", "pixi.lock"]
path_suffixes = ["yml", "yaml", "pixi.lock", "clang-format"]
line_comments = ["# "]
autoclose_before = ",]}"
brackets = [