Skip to content

Bad inline code parsing #76

@daniilrozanov

Description

@daniilrozanov

I just typed the text below in my norg file

Inheritance `class B : private A`

And code highlighting somehow triggers on : symbol so it does not highlight inline code block. Highlighting works fine after I delete : symbol.

Edit.
Its tree looks like this

    content: (paragraph ; [34, 2] - [35, 0]
      (paragraph_segment) ; [34, 2] - [34, 22]
      (intersecting_modifier) ; [34, 22] - [34, 25] -- column sign
      (paragraph_segment)))) ; [34, 25] - [34, 36]

Btw this

  Inheritance `class B :`
  Inheritance `class B :private A`
  Inheritance `class B :p`

looks fine while this (space at the end)

  Inheritance `class B : `
  Inheritance `class B :private  `

incorrectly parsed again

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions