diff --git a/simple_language_plugin/src/main/gen/org/intellij/sdk/language/SimpleLexer.java b/simple_language_plugin/src/main/gen/org/intellij/sdk/language/SimpleLexer.java index 597249850..b20c23625 100644 --- a/simple_language_plugin/src/main/gen/org/intellij/sdk/language/SimpleLexer.java +++ b/simple_language_plugin/src/main/gen/org/intellij/sdk/language/SimpleLexer.java @@ -10,7 +10,7 @@ import com.intellij.psi.TokenType; /** * This class is a scanner generated by - * JFlex 1.7.0 + * JFlex 1.7.0 * from the specification file Simple.flex */ class SimpleLexer implements FlexLexer { diff --git a/simple_language_plugin/src/test/testData/ParsingTestData.txt b/simple_language_plugin/src/test/testData/ParsingTestData.txt index 802282638..6b997bdbd 100644 --- a/simple_language_plugin/src/test/testData/ParsingTestData.txt +++ b/simple_language_plugin/src/test/testData/ParsingTestData.txt @@ -1,66 +1,66 @@ -Simple File(0,492) +Simple File(0,493) PsiComment(SimpleTokenType.COMMENT)('# You are reading the ".properties" entry.')(0,42) PsiWhiteSpace('\n')(42,43) PsiComment(SimpleTokenType.COMMENT)('! The exclamation mark can also mark text as comments.')(43,97) PsiWhiteSpace('\n')(97,98) - SimplePropertyImpl(PROPERTY)(98,132) + SimplePropertyImpl(PROPERTY)(98,133) PsiElement(SimpleTokenType.KEY)('website')(98,105) PsiWhiteSpace(' ')(105,106) PsiElement(SimpleTokenType.SEPARATOR)('=')(106,107) PsiWhiteSpace(' ')(107,108) - PsiElement(SimpleTokenType.VALUE)('https://en.wikipedia.org/')(108,132) - PsiWhiteSpace('\n\n')(132,134) - SimplePropertyImpl(PROPERTY)(134,152) - PsiElement(SimpleTokenType.KEY)('language')(134,142) - PsiWhiteSpace(' ')(142,143) - PsiElement(SimpleTokenType.SEPARATOR)('=')(143,144) - PsiWhiteSpace(' ')(144,145) - PsiElement(SimpleTokenType.VALUE)('English')(145,152) - PsiWhiteSpace('\n')(152,153) - PsiComment(SimpleTokenType.COMMENT)('# The backslash below tells the application to continue reading')(153,216) - PsiWhiteSpace('\n')(216,217) - PsiComment(SimpleTokenType.COMMENT)('# the value onto the next line.')(217,248) - PsiWhiteSpace('\n')(248,249) - SimplePropertyImpl(PROPERTY)(249,292) - PsiElement(SimpleTokenType.KEY)('message')(249,256) - PsiWhiteSpace(' ')(256,257) - PsiElement(SimpleTokenType.SEPARATOR)('=')(257,258) - PsiWhiteSpace(' ')(258,259) - PsiElement(SimpleTokenType.VALUE)('Welcome to \\n Wikipedia!')(259,292) - PsiWhiteSpace('\n')(292,293) - PsiComment(SimpleTokenType.COMMENT)('# Add spaces to the key')(293,316) - PsiWhiteSpace('\n')(316,317) - SimplePropertyImpl(PROPERTY)(317,410) - PsiElement(SimpleTokenType.KEY)('key\ with\ spaces')(317,334) - PsiWhiteSpace(' ')(334,335) - PsiElement(SimpleTokenType.SEPARATOR)('=')(335,336) - PsiWhiteSpace(' ')(336,337) - PsiElement(SimpleTokenType.VALUE)('This is the value that could be looked up with the key "key with spaces".')(337,410) - PsiWhiteSpace('\n')(410,411) - PsiComment(SimpleTokenType.COMMENT)('# Unicode')(411,420) - PsiWhiteSpace('\n')(420,421) - SimplePropertyImpl(PROPERTY)(421,433) - PsiElement(SimpleTokenType.KEY)('tab')(421,424) - PsiWhiteSpace(' ')(424,425) - PsiElement(SimpleTokenType.SEPARATOR)(':')(425,426) - PsiWhiteSpace(' ')(426,427) - PsiElement(SimpleTokenType.VALUE)('\u0009')(427,433) - PsiWhiteSpace('\n')(433,434) - PsiComment(SimpleTokenType.COMMENT)('# test for illegal key attempt')(434,464) - PsiWhiteSpace('\n')(464,465) - SimplePropertyImpl(PROPERTY)(465,469) - PsiElement(SimpleTokenType.KEY)('key')(465,468) - PsiErrorElement:SimpleTokenType.SEPARATOR expected, got '\'(468,469) - PsiElement(BAD_CHARACTER)('\')(468,469) - PsiWhiteSpace('\n')(469,470) - SimplePropertyImpl(PROPERTY)(470,475) - PsiElement(SimpleTokenType.KEY)('with')(470,474) - PsiErrorElement:SimpleTokenType.SEPARATOR expected, got '\'(474,475) - PsiElement(BAD_CHARACTER)('\')(474,475) - PsiWhiteSpace('\n')(475,476) - SimplePropertyImpl(PROPERTY)(476,492) - PsiElement(SimpleTokenType.KEY)('endofline')(476,485) - PsiWhiteSpace(' ')(485,486) - PsiElement(SimpleTokenType.SEPARATOR)('=')(486,487) - PsiWhiteSpace(' ')(487,488) - PsiElement(SimpleTokenType.VALUE)('test')(488,492) + PsiElement(SimpleTokenType.VALUE)('https://en.wikipedia.org/')(108,133) + PsiWhiteSpace('\n\n')(133,135) + SimplePropertyImpl(PROPERTY)(135,153) + PsiElement(SimpleTokenType.KEY)('language')(135,143) + PsiWhiteSpace(' ')(143,144) + PsiElement(SimpleTokenType.SEPARATOR)('=')(144,145) + PsiWhiteSpace(' ')(145,146) + PsiElement(SimpleTokenType.VALUE)('English')(146,153) + PsiWhiteSpace('\n')(153,154) + PsiComment(SimpleTokenType.COMMENT)('# The backslash below tells the application to continue reading')(154,217) + PsiWhiteSpace('\n')(217,218) + PsiComment(SimpleTokenType.COMMENT)('# the value onto the next line.')(218,249) + PsiWhiteSpace('\n')(249,250) + SimplePropertyImpl(PROPERTY)(250,293) + PsiElement(SimpleTokenType.KEY)('message')(250,257) + PsiWhiteSpace(' ')(257,258) + PsiElement(SimpleTokenType.SEPARATOR)('=')(258,259) + PsiWhiteSpace(' ')(259,260) + PsiElement(SimpleTokenType.VALUE)('Welcome to \\n Wikipedia!')(260,293) + PsiWhiteSpace('\n')(293,294) + PsiComment(SimpleTokenType.COMMENT)('# Add spaces to the key')(294,317) + PsiWhiteSpace('\n')(317,318) + SimplePropertyImpl(PROPERTY)(318,411) + PsiElement(SimpleTokenType.KEY)('key\ with\ spaces')(318,335) + PsiWhiteSpace(' ')(335,336) + PsiElement(SimpleTokenType.SEPARATOR)('=')(336,337) + PsiWhiteSpace(' ')(337,338) + PsiElement(SimpleTokenType.VALUE)('This is the value that could be looked up with the key "key with spaces".')(338,411) + PsiWhiteSpace('\n')(411,412) + PsiComment(SimpleTokenType.COMMENT)('# Unicode')(412,421) + PsiWhiteSpace('\n')(421,422) + SimplePropertyImpl(PROPERTY)(422,434) + PsiElement(SimpleTokenType.KEY)('tab')(422,425) + PsiWhiteSpace(' ')(425,426) + PsiElement(SimpleTokenType.SEPARATOR)(':')(426,427) + PsiWhiteSpace(' ')(427,428) + PsiElement(SimpleTokenType.VALUE)('\u0009')(428,434) + PsiWhiteSpace('\n')(434,435) + PsiComment(SimpleTokenType.COMMENT)('# test for illegal key attempt')(435,465) + PsiWhiteSpace('\n')(465,466) + SimplePropertyImpl(PROPERTY)(466,470) + PsiElement(SimpleTokenType.KEY)('key')(466,469) + PsiErrorElement:SimpleTokenType.SEPARATOR expected, got '\'(469,470) + PsiElement(BAD_CHARACTER)('\')(469,470) + PsiWhiteSpace('\n')(470,471) + SimplePropertyImpl(PROPERTY)(471,476) + PsiElement(SimpleTokenType.KEY)('with')(471,475) + PsiErrorElement:SimpleTokenType.SEPARATOR expected, got '\'(475,476) + PsiElement(BAD_CHARACTER)('\')(475,476) + PsiWhiteSpace('\n')(476,477) + SimplePropertyImpl(PROPERTY)(477,493) + PsiElement(SimpleTokenType.KEY)('endofline')(477,486) + PsiWhiteSpace(' ')(486,487) + PsiElement(SimpleTokenType.SEPARATOR)('=')(487,488) + PsiWhiteSpace(' ')(488,489) + PsiElement(SimpleTokenType.VALUE)('test')(489,493)