Skip to content

Commit 2f0b598

Browse files
committed
fix(exts/devin-lang): Allow code blocks to start without content #101
The DevInParser.bnf has been modified to support code blocks that start with a CODE_BLOCK_START token without requiring mandatory content. This change ensures that code blocks are not incorrectly parsed when they are intended to be empty. Two test cases have been added to DevInParsingTest.kt to validate the parser's behavior with both empty and non-empty code blocks. The testData directory has been updated with a new file, BlockStartOnly.devin, which contains a code block starting with CODE_BLOCK_START without any content, illustrating a valid usage scenario. This commit adheres to the Conventional Commits specification for fixes related to the DevInLanguage extension.
1 parent 50cfdc7 commit 2f0b598

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
DevInFile
2+
CodeBlockElement(CODE)
3+
PsiElement(DevInTokenType.CODE_BLOCK_START)('```')
4+
ASTWrapperPsiElement(CODE_CONTENTS)
5+
<empty list>

0 commit comments

Comments
 (0)