Skip to content

Commit

Permalink
fix: IsEmptyText cases must contain Text for cursor location to work
Browse files Browse the repository at this point in the history
  • Loading branch information
e-matteson committed Apr 27, 2024
1 parent 5651964 commit b086d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/json_lang.ron
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ LanguageSpec(
Concat(Literal("\""), Concat(Text, Literal("\""))))),
("Number",
Style(Properties(fg_color: Some(Base09)),
Check(IsEmptyText, Here, Literal("•"), Text))),
Check(IsEmptyText, Here, Concat(Literal("•"), Text), Text))),
("Array",
Count(
zero:
Expand Down Expand Up @@ -130,7 +130,7 @@ LanguageSpec(
),
("Key",
Style(Properties(fg_color: Some(Base0C)),
Check(IsEmptyText, Here, Literal("•"), Text))),
Check(IsEmptyText, Here, Concat(Literal("•"), Text), Text))),
("ObjectPair",
Choice(
// single line
Expand Down

0 comments on commit b086d46

Please sign in to comment.