Skip to content

Commit

Permalink
Mark .editorconfig as root (#6031)
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust authored and sdogruyol committed May 1, 2018
1 parent d09de04 commit a56f370
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
root = true

[*.cr]
charset = utf-8
end_of_line = lf
Expand Down
1 change: 1 addition & 0 deletions spec/compiler/crystal/tools/init_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ module Crystal
{"example", "example_app", "example-lib", "camel_example-camel_lib"}.each do |name|
describe_file "#{name}/.editorconfig" do |editorconfig|
parsed = INI.parse(editorconfig)
parsed[""]["root"].should eq("true")
cr_ext = parsed["*.cr"]
cr_ext["charset"].should eq("utf-8")
cr_ext["end_of_line"].should eq("lf")
Expand Down
2 changes: 2 additions & 0 deletions src/compiler/crystal/tools/init/template/editorconfig.ecr
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
root = true

[*.cr]
charset = utf-8
end_of_line = lf
Expand Down

0 comments on commit a56f370

Please sign in to comment.