mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-23 00:21:31 +00:00
Highlight escape sequences in character literals
#KT-13795 Fixed
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package org.jetbrains.kotlin.idea.highlighter;
|
||||
|
||||
import com.intellij.lexer.LayeredLexer;
|
||||
import com.intellij.lexer.StringLiteralLexer;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import org.jetbrains.kotlin.kdoc.lexer.KDocLexer;
|
||||
import org.jetbrains.kotlin.lexer.KotlinLexer;
|
||||
@@ -27,5 +28,9 @@ public class KotlinHighlightingLexer extends LayeredLexer {
|
||||
super(new KotlinLexer());
|
||||
|
||||
registerSelfStoppingLayer(new KDocLexer(), new IElementType[]{KtTokens.DOC_COMMENT}, IElementType.EMPTY_ARRAY);
|
||||
registerSelfStoppingLayer(new StringLiteralLexer('\'', KtTokens.CHARACTER_LITERAL),
|
||||
new IElementType[]{KtTokens.CHARACTER_LITERAL}, IElementType.EMPTY_ARRAY);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user