Skip to content

[BUG Syntax highlighting doesn't work on multi-line entries #30

@loukaja

Description

@loukaja

Description

If you use multi-line form for characters or something, the syntax highlighting stops working even though it does recognize that it is a PC entity

Steps to Reproduce

  1. Create a lonelog code block
  2. Paste this into it:
    [PC:Jonah
    | trait: friendly, curious
    | status: wounded
    | stat: HP 8, Stress 2
    ]

Expected Behavior

Everything between the square brackets should be highlighted

Actual Behavior

Nothing is highlighted. Or, if you paste something else, like this:
gen: NPC
| Name: d%=48, 29 -> Hirsham Cortina
| Role: d%=6 -> Bandit
| Descriptor: d%=9 -> Clever
| Goal: d%=50 -> Rebel against power
=> [N:Hirsham Cortina|Clever bandit|Wants to invade Highwatch]

The first and last lines are highlighted but none of the ones in between are.

Environment

  • OS: MacOS
  • Python version: 3.13.1
  • lonelog version: 1.4.8

Additional Context

https://imgur.com/lyECrXR
https://imgur.com/wcZBsw9

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions