Skip to content

Support having both a schedule and a deadline on an item in org-mode lexer#2899

Merged
birkenfeld merged 3 commits intopygments:masterfrom
jbradberry:org-mode-schedule-deadline
Feb 20, 2026
Merged

Support having both a schedule and a deadline on an item in org-mode lexer#2899
birkenfeld merged 3 commits intopygments:masterfrom
jbradberry:org-mode-schedule-deadline

Conversation

@jbradberry
Copy link
Copy Markdown
Contributor

This is supported by org-mode, even though it is difficult to find a mention of it in the docs.

For simplicity's sake, I'm ignoring the edge cases of having two schedules or two deadlines.

This is supported by org-mode, even though it is difficult to find a
mention of it in the docs.

For simplicity's sake, I'm ignoring the edge cases of having two
schedules or two deadlines.
and if there is a schedule and/or a deadline, it will go alongside
those.
@jbradberry jbradberry changed the title Support having both a schedule and a deadline on an item in org-mode Support having both a schedule and a deadline on an item in org-mode lexer Jun 11, 2025
@duelafn
Copy link
Copy Markdown

duelafn commented Jul 19, 2025

I actually do use multiple deadlines and it works fine (shows up in my org schedule)

* Do something interesting today
  DEADLINE: <2026-04-30 Thu>  DEADLINE: <2025-08-31 Sun>  DEADLINE: <2025-12-20 Sat>

This will allow it to handle multiples on the same line, as Emacs does.
@jbradberry
Copy link
Copy Markdown
Contributor Author

@Anteru requesting review on this one as well. Should be less controversial.

@jbradberry
Copy link
Copy Markdown
Contributor Author

@Anteru @goshatch pinging again for review.

@birkenfeld birkenfeld closed this Feb 20, 2026
@birkenfeld birkenfeld reopened this Feb 20, 2026
@birkenfeld
Copy link
Copy Markdown
Member

LGTM. Thanks!

@birkenfeld birkenfeld merged commit 0c1efaf into pygments:master Feb 20, 2026
15 checks passed
@jbradberry jbradberry deleted the org-mode-schedule-deadline branch February 20, 2026 14:21
@Anteru Anteru added this to the 2.20.0 milestone Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants