editorconfig-core-test
editorconfig-core-test copied to clipboard
Tests for escaped special characters in glob expressions
The editorconfig home page, section File Format Details says:
Special characters can be escaped with a backslash so they won't be interpreted as wildcard patterns.
So from my understanding, the following glob expressions are valid and should be tested.
[a\*.abc]
tab_width=19
[a\?.abc]
tab_width=20
[a\[.abc]
tab_width=21
[a\{.abc]
tab_width=22
I could provide a pull request if you are interested.
PS: The escaped '[' and '{' result in invalid regular expressions in editorconfig-core-py.
Another glob expression that should be tested:
; Slash after escaped close bracket
[ab[c\]/]d]
slash_after_escaped_close=true
Closed the wrong issue...