Skip to content

BEGIN_EXAMPLE blocks are not being syntax highlighted [org-mode] #7629

@molok

Description

@molok

I confirm that...

  • I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.
  • I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.
  • The issue can be reproduced on the latest available commit of Doom.
  • The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)

Expected behavior

in a org-mode buffer BEGIN_EXAMPLE blocks should have a working syntax highlight

Current behavior

BEGIN_SRC blocks are syntax highlighted but BEGIN_EXAMPLE blocks are not

Steps to reproduce

  1. create a file with this content
#+BEGIN_SRC javascript
console.log("hi")
#+END_SRC

#+BEGIN_EXAMPLE javascript
console.log("hi")
#+END_EXAMPLE
  1. open it with doom emacs, notice how the BEGIN_EXAMPLE block is NOT highlighted
  2. open it with emacs -Q, notice how the BEGIN_EXAMPLE block IS highlighted

System Information

https://pastebin.com/N0VFuhQa

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidUnactionable, unrelated, inappropriate, or a pilot error

    Type

    No type

    Projects

    Status

    Queued for deletion

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions