Skip to content

Commit c16f7cf

Browse files
committed
fix: recover when failed element match
1 parent d7c7f88 commit c16f7cf

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

src/main/gen/com/github/xepozz/gitattributes/language/parser/AttributesParser.java

Lines changed: 15 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/kotlin/com/github/xepozz/gitattributes/language/parser/Attributes.bnf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ attributesFile ::= item_*
2020
private item_ ::= (definition | COMMENT | EOL)
2121

2222
definition ::= pattern attributeList
23+
{
24+
recoverWhile=definition_recover
25+
}
26+
private definition_recover ::= !(EOL)
27+
2328
pattern ::= TEXT
2429
{
2530
implements=["com.intellij.psi.NavigatablePsiElement"]

0 commit comments

Comments
 (0)