Skip to content

(apache) continuation lines are not recognized #4157

@bmarwell

Description

@bmarwell

Describe the issue

Given this snippet:

<IfModule mod_deflate.c>
 AddOutputFilterByType DEFLATE "application/atom+xml" \
 "application/javascript" \
 "text/xml"
</IfModule>

The line continuation marks ( \) are not recogniezed. Everything following the first line ending with a continuation mark will not be highlighted correctly.

Which language seems to have the issue?
apache aka apacheconf

Are you using highlight or highlightAuto?

highlight="apache" in vue (but can reproduce on vanilla highlightjs)

Sample Code to Reproduce

See: https://jsfiddle.net/L52ndpkb/

Screenshot:

Screenshot 2024-11-01 at 11 36 13

Expected behavior

Same highlighting as without continuation lines:

Screenshot 2024-11-01 at 11 37 11

Additional context

./.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions