Skip to content

Code highlighting: Function names starting with keywords #1300

Open

Description

@MonsterDruide1

In Reviewable's code editor, highlighting fails for function names that start with for, while, if and potentially more keywords.
This also applies for function names within namespaces (xy::forceA();).

Example:
Image

Activity

  1. pkaminski commented on Apr 17, 2026

    @pkaminski
    Member

    Filed against highlightjs: highlightjs/highlight.js#4394

  2. added theissue type on Apr 17, 2026
  3. MonsterDruide1 commented on Aug 15, 2026

    @MonsterDruide1
    Author

    The associated issue has been closed, but the issue is still occuring on Reviewable. Do we need to wait for the next release of highlightjs, or what is the further roadmap on this issue?

  4. pkaminski commented on Aug 15, 2026

    @pkaminski
    Member

    We'll need to wait for the next highlightjs release, then integrate it into Reviewable (it's a vendored package).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions