Skip to content

Incorrect parsing of multiline comments inside cpp and c language code fencesΒ #1294

@ptheod

Description

@ptheod

Description

The multiline comments inside code fences of cpp or c languages are not parsed correctly. Specifically the first line of such comments is correctly greyed out but subsequent lines are colorized like normal code.

Steps to reproduce

Insert the following text in a blank document:

```cpp
/* return
 * return 
 */
```
return

Expected behavior:

The words return in lines 2 and 3 should be grey (comment color) and the return in the last line should be cyan (the keyword color).

Actual behavior:

The return in the second line is colorized like the return in the last line, i.e. it is parsed as normal C++ code.

Versions

  • Mark Text: 0.15.0 (installed from Flathub)
  • Operating system: Clear Linux 30820

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions