Skip to content

Commit

Permalink
add ".h" extension to the C file-types
Browse files Browse the repository at this point in the history
Previously, if you changed the tab-width for C but did not add ".h" to C file types, headers used Cpp's indentation (default is 2), which is undesirable.
  • Loading branch information
woojiq committed Jan 21, 2024
1 parent 579e55d commit 959dbfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ source = { git = "https://github.com/Joakker/tree-sitter-json5", rev = "c23f7a9b
name = "c"
scope = "source.c"
injection-regex = "c"
file-types = ["c"] # TODO: ["h"]
file-types = ["c", "h"]
comment-token = "//"
language-servers = [ "clangd" ]
indent = { tab-width = 2, unit = " " }
Expand Down

0 comments on commit 959dbfc

Please sign in to comment.