Fix common misspellings
This commit is contained in:
committed by
Nikolay Krasko
parent
33961acb8d
commit
686cfa6fd2
@@ -6,7 +6,6 @@ import com.intellij.lexer.FlexLexer;
|
||||
import com.intellij.psi.TokenType;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import com.intellij.util.text.CharArrayUtil;
|
||||
import java.lang.Character;
|
||||
import org.jetbrains.kotlin.kdoc.parser.KDocKnownTag;
|
||||
|
||||
|
||||
@@ -478,7 +477,7 @@ class _KDocLexer implements FlexLexer {
|
||||
|
||||
|
||||
/**
|
||||
* Reports an error that occured while scanning.
|
||||
* Reports an error that occurred while scanning.
|
||||
*
|
||||
* In a wellformed scanner (no or only correct usage of
|
||||
* yypushback(int) and a match-all fallback rule) this method
|
||||
|
||||
@@ -83,7 +83,7 @@ LETTER = [:letter:]|_
|
||||
IDENTIFIER_PART=[:digit:]|{LETTER}
|
||||
PLAIN_IDENTIFIER={LETTER} {IDENTIFIER_PART}*
|
||||
// TODO: this one MUST allow everything accepted by the runtime
|
||||
// TODO: Replace backticks by one backslash in the begining
|
||||
// TODO: Replace backticks with one backslash at the beginning
|
||||
ESCAPED_IDENTIFIER = `[^`\n]+`
|
||||
IDENTIFIER = {PLAIN_IDENTIFIER}|{ESCAPED_IDENTIFIER}
|
||||
FIELD_IDENTIFIER = \${IDENTIFIER}
|
||||
|
||||
@@ -2,13 +2,10 @@
|
||||
|
||||
package org.jetbrains.kotlin.lexer;
|
||||
|
||||
import java.util.*;
|
||||
import com.intellij.lexer.*;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.lexer.FlexLexer;
|
||||
import com.intellij.psi.TokenType;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import com.intellij.util.containers.Stack;
|
||||
import org.jetbrains.kotlin.lexer.KotlinLexerException;
|
||||
import org.jetbrains.kotlin.lexer.KtTokens;
|
||||
|
||||
|
||||
/**
|
||||
@@ -781,7 +778,7 @@ class _JetLexer implements FlexLexer {
|
||||
|
||||
|
||||
/**
|
||||
* Reports an error that occured while scanning.
|
||||
* Reports an error that occurred while scanning.
|
||||
*
|
||||
* In a wellformed scanner (no or only correct usage of
|
||||
* yypushback(int) and a match-all fallback rule) this method
|
||||
|
||||
Reference in New Issue
Block a user