Closed mmahmoudian closed 1 year ago
First and foremost, thanks for maintaining this package.
I was hitting my head against the wall to debug a Makefile that ultimately I realized one of the lines has space indentation instead of tab. The following is my
root = true [*] indent_style = space indent_size = 4 charset = utf-8 insert_final_newline = true [{Makefile}] indent_style = tab indent_size = 4 insert_final_newline = true
The following is the output of editorconfig-display-current-properties:
editorconfig-display-current-properties
# EditorConfig for /home/mehrad/<<redacted>>/Makefile indent_style = space indent_size = 4 charset = utf-8 insert_final_newline = true tab_width = 4
But when I change [{Makefile}] to [Makefile] the editorconfig-display-current-properties shows:
[{Makefile}]
[Makefile]
# EditorConfig for /home/mehrad/<<redacted>>/Makefile indent_style = tab indent_size = 4 charset = utf-8 insert_final_newline = true tab_width = 4
I checked the specification of the EditorConfig and I cannot find any restrictions to not to treat [{filename}] as correct syntax.
[{filename}]
[{Makefile}] only matches {Makefile} literally. The spec doesn't make it clear, but the test has already enforced it:
{Makefile}
I'll clarify in the spec.
First and foremost, thanks for maintaining this package.
I was hitting my head against the wall to debug a Makefile that ultimately I realized one of the lines has space indentation instead of tab. The following is my
The following is the output of
editorconfig-display-current-properties
:But when I change
[{Makefile}]
to[Makefile]
theeditorconfig-display-current-properties
shows:I checked the specification of the EditorConfig and I cannot find any restrictions to not to treat
[{filename}]
as correct syntax.