File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics
test/resources/diagnostics Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 22trim_trailing_whitespace = false
33[src/test/resources/providers/format.bsl ]
44trim_trailing_whitespace = false
5+ [src/test/resources/diagnostics/TabAlignmentDiagnostic.bsl ]
6+ trim_trailing_whitespace = false
Original file line number Diff line number Diff line change 1919)
2020public class TabAlignmentDiagnostic extends AbstractDiagnostic {
2121
22- private static final Pattern pattern = Pattern .compile ("\\ S[\\ S ]*(\\ t+)(?!\\ /\\ /)" );
22+ private static final Pattern pattern = Pattern .compile ("\\ S[\\ S ]*(\\ t+)(?!( \\ /\\ /|$) )" );
2323
2424 @ Override
2525 public void check () {
Original file line number Diff line number Diff line change @@ -4,9 +4,13 @@ foo = f;
44 foo = foo;
55 foo = foo;
66foo = foo;
7+
8+ // в мультилайне можно
79F = ";
810 | foo " ;
911
10- // foo = foo;
12+ // foo = foo; // в комментах можно
1113
12- ИЛИ ТипСообщения = "CSA" // Команда на изменение параметров подключения к адаптеру
14+ ТипСообщения = "CSA" // перед комментами можно
15+ // в конце строки можно
16+ f = f;
You can’t perform that action at this time.
0 commit comments