mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[syntax, xml] multiplatform xml syntax module
GitOrigin-RevId: 98d661e9eda7eafc98877341cebb8b96c9295e18
This commit is contained in:
committed by
intellij-monorepo-bot
parent
eea783d235
commit
bd3d1ef84f
@@ -8,6 +8,7 @@ import com.intellij.platform.syntax.SyntaxElementType
|
||||
import com.intellij.platform.syntax.util.lexer.FlexLexer
|
||||
import com.intellij.xml.syntax.XmlSyntaxTokenType
|
||||
import com.intellij.xml.syntax.XmlSyntaxElementType
|
||||
import kotlin.jvm.JvmStatic
|
||||
|
||||
class __XmlLexer : FlexLexer {
|
||||
companion object {
|
||||
|
||||
@@ -2,11 +2,7 @@
|
||||
package com.intellij.xml.syntax
|
||||
|
||||
import com.intellij.platform.syntax.i18n.ResourceBundle
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
import org.jetbrains.annotations.Nls
|
||||
import org.jetbrains.annotations.NonNls
|
||||
import org.jetbrains.annotations.PropertyKey
|
||||
import org.jetbrains.annotations.VisibleForTesting
|
||||
import org.jetbrains.annotations.*
|
||||
import kotlin.jvm.JvmStatic
|
||||
|
||||
object XmlSyntaxBundle {
|
||||
@@ -37,5 +33,5 @@ object XmlSyntaxBundle {
|
||||
@ApiStatus.Internal
|
||||
object DefaultXmlSyntaxResourcesTestAccessor {
|
||||
val mappings: Map<String, String> get() = DefaultXmlSyntaxResources.mappings
|
||||
val defaultJavaSyntaxResourcesName: String get() = DefaultXmlSyntaxResources::class.qualifiedName!!
|
||||
val defaultJavaSyntaxResourcesName: String get() = "com.intellij.xml.syntax.DefaultXmlSyntaxResources"
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ class _XmlLexer @JvmOverloads constructor(
|
||||
private val STATE_MASK = (1 shl STATE_SHIFT) - 1
|
||||
|
||||
init {
|
||||
assert((STATE_MASK shl 1) <= HtmlLexerConstants.BASE_STATE_MASK)
|
||||
require((STATE_MASK shl 1) <= HtmlLexerConstants.BASE_STATE_MASK)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user