Skip to content

Commit

Permalink
add syntax highlighting for x-macro files (carbon-language#4205)
Browse files Browse the repository at this point in the history
This tells Github to detect files having the extension .def as C++
files, which ensures that these files get syntax highlighted prpperly.

I'm not sure whether more files like these are present throughout the
repo. FWIW, it can also be configured to do other things, such as detect
generated, vendored files and exclude these from the Github stats.

See
https://github.com/github-linguist/linguist/blob/master/docs/overrides.md.
  • Loading branch information
brymer-meneses authored Aug 8, 2024
1 parent cfed18a commit a227ea8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# This tells Github to detect files having the extension `.def` as `C++` files, which
# ensures that these files get syntax highlighted properly.
*.def linguist-language=C++

0 comments on commit a227ea8

Please sign in to comment.