Bug 445818 - ConTeXt: Allow for nested verbatim
Summary: ConTeXt: Allow for nested verbatim
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-20 15:52 UTC by Jack Hill
Modified: 2021-11-27 09:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Highlighting stops after first \stopverbatim (19.95 KB, image/png)
2021-11-20 15:52 UTC, Jack Hill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Hill 2021-11-20 15:52:40 UTC
Created attachment 143775 [details]
Highlighting stops after first \stopverbatim

Currently, the snippet

    \startverbatim
    a
    \startverbatim
    b
    \stopverbatim
    c
    \stopverbatim

will incorrectly stop highlighting after the first \stopverbatim.
The highlighting should continue after the first \stopverbatim.
Comment 1 Bug Janitor Service 2021-11-20 16:29:49 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/275
Comment 2 Jack Hill 2021-11-27 09:11:27 UTC
Git commit 4ba49d0bb251d7ee9c50dd68119d848b57e0abad by Jack Hill.
Committed on 20/11/2021 at 15:50.
Pushed by cullmann into branch 'master'.

ConTeXt: Verbatim highlighting allows for nesting

Previously nested \starttyping and \stoptyping pairs would stop
incorrectly stop highlighting verbatim after the first \stoptyping
command.

M  +1    -0    data/syntax/context.xml

https://invent.kde.org/frameworks/syntax-highlighting/commit/4ba49d0bb251d7ee9c50dd68119d848b57e0abad