Parse ;; as a single token

This commit is contained in:
Yan Zhulanow
2015-10-02 12:53:34 +03:00
parent 8d5cbeeab0
commit e85d76f9cc
7 changed files with 428 additions and 440 deletions
+6 -7
View File
@@ -970,18 +970,17 @@ JetFile: ControlStructures.kt
BODY
BLOCK
PsiElement(LBRACE)('{')
PsiElement(SEMICOLON)(';')
PsiElement(SEMICOLON)(';')
PsiErrorElement:Expecting an element
PsiElement(DOUBLE_SEMICOLON)(';;')
PsiElement(SEMICOLON)(';')
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('foo')
PsiElement(SEMICOLON)(';')
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('bar')
PsiElement(SEMICOLON)(';')
PsiElement(SEMICOLON)(';')
PsiElement(SEMICOLON)(';')
PsiElement(SEMICOLON)(';')
PsiErrorElement:Unexpected tokens (use ';' to separate expressions on the same line)
PsiElement(DOUBLE_SEMICOLON)(';;')
PsiElement(DOUBLE_SEMICOLON)(';;')
PsiWhiteSpace(' ')
PsiElement(RBRACE)('}')
PsiWhiteSpace(' ')
@@ -993,4 +992,4 @@ JetFile: ControlStructures.kt
PsiElement(IDENTIFIER)('r')
PsiElement(RPAR)(')')
PsiWhiteSpace('\n')
PsiElement(RBRACE)('}')
PsiElement(RBRACE)('}')