2 new enums

This commit is contained in:
Benoit Marty 2022-01-03 15:27:59 +01:00
parent 98df733257
commit b39caeb04d
3 changed files with 5 additions and 3 deletions

View file

@ -19,6 +19,7 @@ import org.commonmark.node.CustomBlock
class DisplayMaths(private val delimiter: DisplayDelimiter) : CustomBlock() {
enum class DisplayDelimiter {
DOUBLE_DOLLAR, SQUARE_BRACKET_ESCAPED
DOUBLE_DOLLAR,
SQUARE_BRACKET_ESCAPED
}
}

View file

@ -20,7 +20,8 @@ import org.commonmark.node.Delimited
class InlineMaths(private val delimiter: InlineDelimiter) : CustomNode(), Delimited {
enum class InlineDelimiter {
SINGLE_DOLLAR, ROUND_BRACKET_ESCAPED
SINGLE_DOLLAR,
ROUND_BRACKET_ESCAPED
}
override fun getOpeningDelimiter(): String {

View file

@ -160,7 +160,7 @@ Formatter\.formatShortFileSize===1
# android\.text\.TextUtils
### This is not a rule, but a warning: the number of "enum class" has changed. For Json classes, it is mandatory that they have `@JsonClass(generateAdapter = false)`. If the enum is not used as a Json class, change the value in file forbidden_strings_in_code.txt
enum class===114
enum class===116
### Do not import temporary legacy classes
import org.matrix.android.sdk.internal.legacy.riot===3