diff --git a/ltexls/src/main/java/org/bsplines/ltexls/parsing/restructuredtext/RestructuredtextAnnotatedTextBuilder.java b/ltexls/src/main/java/org/bsplines/ltexls/parsing/restructuredtext/RestructuredtextAnnotatedTextBuilder.java index a3991268..929255fb 100644 --- a/ltexls/src/main/java/org/bsplines/ltexls/parsing/restructuredtext/RestructuredtextAnnotatedTextBuilder.java +++ b/ltexls/src/main/java/org/bsplines/ltexls/parsing/restructuredtext/RestructuredtextAnnotatedTextBuilder.java @@ -379,17 +379,6 @@ public CodeAnnotatedTextBuilder addCode(String code) { return matchFromPosition(pattern); } - private boolean isExplicitBlockType() { - return ((this.blockType == RestructuredtextBlockSignature.Type.FOOTNOTE) - || (this.blockType == RestructuredtextBlockSignature.Type.DIRECTIVE) - || (this.blockType == RestructuredtextBlockSignature.Type.COMMENT)); - } - - private boolean isTableBlockType() { - return ((this.blockType == RestructuredtextBlockSignature.Type.GRID_TABLE) - || (this.blockType == RestructuredtextBlockSignature.Type.SIMPLE_TABLE)); - } - private boolean matchExplicitBlock() { @Nullable Matcher matcher; @@ -410,6 +399,17 @@ private boolean matchExplicitBlock() { return false; } + private boolean isExplicitBlockType() { + return ((this.blockType == RestructuredtextBlockSignature.Type.FOOTNOTE) + || (this.blockType == RestructuredtextBlockSignature.Type.DIRECTIVE) + || (this.blockType == RestructuredtextBlockSignature.Type.COMMENT)); + } + + private boolean isTableBlockType() { + return ((this.blockType == RestructuredtextBlockSignature.Type.GRID_TABLE) + || (this.blockType == RestructuredtextBlockSignature.Type.SIMPLE_TABLE)); + } + private String generateDummy() { return this.dummyGenerator.generate(this.language, this.dummyCounter++); }