generated from JetBrains/intellij-platform-plugin-template
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(devin-lang): update parser and lexer tokens and rules for improve…
…d grammar and tokenization. #101
- Loading branch information
Showing
4 changed files
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
FILE | ||
PsiElement(DevInTokenType.TEXT_SEGMENT)('你好 @hello-world sm') | ||
PsiElement(DevInTokenType.TEXT_SEGMENT)('你好 ') | ||
PsiElement(DevInTokenType.REF_BLOCK)('@hello-world') | ||
PsiElement(DevInTokenType.TEXT_SEGMENT)(' sm') |
14 changes: 1 addition & 13 deletions
14
exts/devin-lang/src/test/testData/parser/JavaHelloWorld.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,2 @@ | ||
FILE | ||
PsiElement(DevInTokenType.TEXT_SEGMENT)('```java') | ||
PsiElement(DevInTokenType.NEWLINE)('\n') | ||
PsiElement(DevInTokenType.TEXT_SEGMENT)('public class Main {') | ||
PsiElement(DevInTokenType.NEWLINE)('\n') | ||
PsiElement(DevInTokenType.TEXT_SEGMENT)(' public static void main(String[] args) {') | ||
PsiElement(DevInTokenType.NEWLINE)('\n') | ||
PsiElement(DevInTokenType.TEXT_SEGMENT)(' System.out.println("Hello, world!");') | ||
PsiElement(DevInTokenType.NEWLINE)('\n') | ||
PsiElement(DevInTokenType.TEXT_SEGMENT)(' }') | ||
PsiElement(DevInTokenType.NEWLINE)('\n') | ||
PsiElement(DevInTokenType.TEXT_SEGMENT)('}') | ||
PsiElement(DevInTokenType.NEWLINE)('\n') | ||
PsiElement(DevInTokenType.TEXT_SEGMENT)('```') | ||
PsiElement(DevInTokenType.TEXT_SEGMENT)('```java\npublic class Main {\n public static void main(String[] args) {\n System.out.println("Hello, world!");\n }\n}\n```') |