From 363c3eb859ddbe1efad5949ad087c8e7db6cee41 Mon Sep 17 00:00:00 2001 From: Jefferson González Date: Sat, 24 Dec 2022 23:06:24 -0400 Subject: added editorconfig plugin (#163) * properly ignore comments on declarations * strip newlines when insert_final_newline set to false * force match up to the end * support unset property * make property values case insensitive * handle indent_size when set to tab * handle escaped comment chars * also lowercase property names * support utf-8 as on spec * apply rules to unsaved unamed/named docs * annotation fix * added test suite and fixes for 100% pass rate * do not force match from start, breaks 2 tests * allow starting wild cards to match everything * disabled print buffering * make last line visible if insert_final_newline true * use log_quiet for debug * adapted to changes on lite-xl/lite-xl#1232 * properly return from add/remove_project_directory overrides * Use new trimwhitespace functionality if possible --- plugins/editorconfig/tests/parser/newlines_only.in | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 plugins/editorconfig/tests/parser/newlines_only.in (limited to 'plugins/editorconfig/tests/parser/newlines_only.in') diff --git a/plugins/editorconfig/tests/parser/newlines_only.in b/plugins/editorconfig/tests/parser/newlines_only.in new file mode 100644 index 0000000..139597f --- /dev/null +++ b/plugins/editorconfig/tests/parser/newlines_only.in @@ -0,0 +1,2 @@ + + -- cgit v1.2.3