-
Notifications
You must be signed in to change notification settings - Fork 215
Expand file tree
/
Copy path.editorconfig
More file actions
150 lines (128 loc) · 2.88 KB
/
.editorconfig
File metadata and controls
150 lines (128 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# Copyright 2025 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This file helps editors auto-configure whitespace settings.
#
# See here for more information about the format and editor support:
#
# https://editorconfig.org/
# This file is common to the GCC and GDB/Binutils projects. If you
# update one, please sync it with the other.
# top-most EditorConfig file
root = true
[*]
end_of_line = lf
insert_final_newline = true
tab_width = 8
# EditorConfig files
[.editorconfig]
charset = utf-8
trim_trailing_whitespace = true
# Makefile
[{Makefile,*.mk,*.am}*]
indent_style = tab
indent_size = 8
trim_trailing_whitespace = true
# ChangeLogs
[ChangeLog*]
indent_style = tab
indent_size = 8
trim_trailing_whitespace = true
charset = utf-8
# C/C++
[*.{c,h,cc}]
charset = utf-8
indent_style = tab
indent_size = 2
tab_width = 8
trim_trailing_whitespace = true
# GCC .def files. These are generally C fragments that get included
# one or more times
[gcc/**.def]
charset = utf-8
indent_style = tab
indent_size = 2
tab_width = 8
trim_trailing_whitespace = true
# Texinfo files
[*.texi]
charset = utf-8
indent_size = 2
tab_width = 8
trim_trailing_whitespace = true
# Expect / TCL
[*.{exp,tcl}]
indent_style = tab
indent_size = 4
tab_width = 8
trim_trailing_whitespace = true
# Python
[*.py]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
# Assembler
[*.{s,S,asm}]
indent_style = tab
indent_size = 8
trim_trailing_whitespace = true
# GCC Machine description files
[gcc/config/**.md]
indent_style = tab
indent_size = 2
tab_width = 8
trim_trailing_whitespace = true
# Awk
[*.awk]
indent_style = tab
indent_size = 2
tab_width = 8
trim_trailing_whitespace = true
# Autoconf
[*.{ac,m4}]
indent_style = tab
indent_size = 2
tab_width = 8
trim_trailing_whitespace = true
# Shell scripts
[*.sh]
indent_style = tab
indent_size = 4
tab_width = 8
trim_trailing_whitespace = true
# Ada
[*.ad[bs]]
indent_style = space
indent_size = 3
trim_trailing_whitespace = true
# D
[*.d]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
# Go
[*.go]
indent_style = tab
indent_size = 8
trim_trailing_whitespace = true
# Fortran
[*.[Ff]90]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
# Cobol
[*.cbl]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true