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.
feat(devin-lang): extend language identifier regex to support spaces …
…and dots #101 The language identifier regex in DevInLexer.flex has been updated to support identifiers that include spaces and dots, allowing for more flexible and natural language identifiers in the DevInLang grammar. This change has been accompanied by the addition of a new test case in DevInParsingTest.kt to ensure that the parser can handle complex language identifiers, and the creation of a new test file, ComplexLangId.devin, which contains an example of a complex language identifier in use.
- Loading branch information
Showing
5 changed files
with
16 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
```typescript jsx | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
DevInFile | ||
CodeBlockElement(CODE) | ||
PsiElement(DevInTokenType.CODE_BLOCK_START)('```') | ||
PsiElement(DevInTokenType.LANGUAGE_ID)('typescript jsx') | ||
PsiElement(DevInTokenType.NEWLINE)('\n') | ||
ASTWrapperPsiElement(CODE_CONTENTS) | ||
<empty list> | ||
PsiElement(DevInTokenType.CODE_BLOCK_END)('```') |
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