Reserve 'typeof' as a keyword

This commit is contained in:
Alexey Tsvetkov
2015-12-09 18:37:31 +03:00
parent 4c3f620255
commit 199827635f
141 changed files with 1126 additions and 1102 deletions
+2
View File
@@ -1,5 +1,7 @@
fun yield() {}
fun typeof() {}
fun test() {
yield
typeof
}
+16
View File
@@ -15,6 +15,19 @@ JetFile: Reserved.kt
BLOCK
PsiElement(LBRACE)('{')
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
FUN
PsiElement(fun)('fun')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting function name or receiver type
PsiElement(typeof)('typeof')
VALUE_PARAMETER_LIST
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
BLOCK
PsiElement(LBRACE)('{')
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n\n')
FUN
PsiElement(fun)('fun')
@@ -29,5 +42,8 @@ JetFile: Reserved.kt
PsiWhiteSpace('\n ')
PsiErrorElement:Expecting an element
PsiElement(yield)('yield')
PsiWhiteSpace('\n ')
PsiErrorElement:Expecting an element
PsiElement(typeof)('typeof')
PsiWhiteSpace('\n')
PsiElement(RBRACE)('}')