Merge pull request #87919 from zowoq/docbook-editorconfig
This commit is contained in:
commit
d50ae15392
@ -11,18 +11,26 @@ insert_final_newline = true
|
|||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
|
|
||||||
|
# Ignore diffs/patches
|
||||||
|
[*.{diff,patch}]
|
||||||
|
end_of_line = ignore
|
||||||
|
insert_final_newline = ignore
|
||||||
|
trim_trailing_whitespace = ignore
|
||||||
|
|
||||||
# see https://nixos.org/nixpkgs/manual/#chap-conventions
|
# see https://nixos.org/nixpkgs/manual/#chap-conventions
|
||||||
|
|
||||||
# Match nix/ruby/docbook files, set indent to spaces with width of two
|
# Match nix/perl/python/ruby/shell/docbook files, set indent to spaces
|
||||||
[*.{nix,rb,xml}]
|
[*.{nix,pl,py,rb,sh,xml}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|
||||||
|
# Match docbook files, set indent width of one
|
||||||
|
[*.xml]
|
||||||
|
indent_size = 1
|
||||||
|
|
||||||
|
# Match nix/ruby files, set indent width of two
|
||||||
|
[*.{nix,rb}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
# Match shell/python/perl scripts, set indent to spaces with width of four
|
# Match perl/python/shell scripts, set indent width of four
|
||||||
[*.{sh,py,pl}]
|
[*.{pl,py,sh}]
|
||||||
indent_style = space
|
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
# Match diffs, avoid to trim trailing whitespace
|
|
||||||
[*.{diff,patch}]
|
|
||||||
trim_trailing_whitespace = false
|
|
||||||
|
Loading…
Reference in New Issue
Block a user