-
Notifications
You must be signed in to change notification settings - Fork 1
/
.editorconfig
231 lines (201 loc) · 4.81 KB
/
.editorconfig
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
#############################################
# TADS Source Code Repository: #
# https://github.com/tajmone/tads-sources #
#############################################
root = true
## Repository Configurations
############################
[.{git*,editorconfig,*.yml}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = unset
trim_trailing_whitespace = true
[.gitkeep]
insert_final_newline = false
[.gitmodules]
indent_style = tab
## Shell Scripts
################
[{*.sh,/tads3/unix/test/test_*,/tads3/unix/test/run_*,scintilla/tgzsrc,*.iface}]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_size = unset
trim_trailing_whitespace = true
insert_final_newline = true
## Batch Scripts
################
[*.{bat,cmd}]
charset = utf-8
end_of_line = crlf
indent_style = tab
indent_size = unset
trim_trailing_whitespace = true
insert_final_newline = true
## Windows Assets
################
[*.{def,rc,redir,dsp}]
charset = utf-8
end_of_line = crlf
indent_style = space
indent_size = unset
trim_trailing_whitespace = true
insert_final_newline = unset
## TADS Source Files
#####################
; Ascii and ISO aren't supported by EditorConfig,
; so UTF-8 (without BOM) will have to do:
[*.{t,T,tl,t3m,tdb-project-starter}]
charset = utf-8
end_of_line = unset
indent_style = space
indent_size = unset
trim_trailing_whitespace = true
insert_final_newline = true
; C-style doc comments:
block_comment_start = /*
block_comment = *
block_comment_end = */
; -------------------------
; Encodings Exceptions List
; -------------------------
; TADS UTF-8 Sources must contain a BOM:
[tads3/test/data/utf-8.t]
charset = utf-8-bom
; EClint is unable to validate these files:
[tads3/test/data/{ucs2_src,utf-16??}.t]
charset = unset
trim_trailing_whitespace = false
insert_final_newline = unset
## TADS Character Mapping Files
###############################
[*.tcs]
charset = utf-8
end_of_line = unset
indent_style = space
indent_size = unset
trim_trailing_whitespace = false
insert_final_newline = true
## TADS Test Suite
##################
[*.{in,IN,log,LOG}]
charset = utf-8
end_of_line = unset
[*.{in,IN}]
trim_trailing_whitespace = true
insert_final_newline = true
## C/C++ Source Files
#####################
[*.{c,C,cpp,CPP,h,H,*.cxx*,*.m,*.mm}]
charset = utf-8
end_of_line = unset
indent_style = space
indent_size = unset
trim_trailing_whitespace = true
insert_final_newline = true
; C-style doc comments:
block_comment_start = /*
block_comment = *
block_comment_end = */
## Make Files
#############
[{[Mm]akefile*,MAKEFILE,make-*.*,*.mak,*.mk}]
end_of_line = lf
indent_style = tab
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
## ASM Sources
##############
[*.asm]
charset = utf-8
end_of_line = unset
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
## Plain-Text Files
###################
[{*.txt,*.TXT,LICENSE,README,help.tdb,readtads.src}]
end_of_line = unset
indent_style = space
indent_size = unset
trim_trailing_whitespace = true
insert_final_newline = true
## HTML Docs & TADS Web Server
##############################
[*.{html,htm,HTM,css,js,php}]
end_of_line = unset
trim_trailing_whitespace = true
insert_final_newline = true
[*.css]
indent_style = space
indent_size = 2
; C-style doc comments:
block_comment_start = /*
block_comment = *
block_comment_end = */
[*.{css,js}]
charset = utf-8
[*.{html,htm,HTM,js,php}]
; Some HTML files use CodePage enconding! (don't use 'charset')
indent_style = space
indent_size = unset
[*.php]
insert_final_newline = unset
[.htaccess]
charset = utf-8
end_of_line = unset
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
## Misc. Extensions
###################
[*.{xml,as}]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.xml]
end_of_line = lf
indent_style = tab
[*.as]
end_of_line = unset
indent_style = space
indent_size = 4
; C-style doc comments:
block_comment_start = /*
block_comment = *
block_comment_end = */
######################################
## Extensions from Scintilla Folder ##
######################################
; There are many file types in Scintilla's folder,
; we'll just add some basic styles rules...
[*.{list,pbxproj,pbxproj,pch,plist,plist,py,py.styled,sql,sql,strings,xib,xib}]
trim_trailing_whitespace = true
insert_final_newline = true
[*.{list,pbxproj,plist,sql,strings,xib}]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
[*.{d,d.styled,pbxproj,plist,xib}]
indent_style = tab
[*.{pch,sql}]
charset = utf-8
indent_style = space
indent_size = unset
[*.{py,py.styled}]
charset = utf-8
indent_style = space
indent_size = 4
## Mercurial Configurations
###########################
[*.{hg*}]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
# EOF #