Skip to content

Commit 30cfe90

Browse files
committed
fix(apache) support line continuation with \
1 parent a7685d2 commit 30cfe90

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CAVEATS / POTENTIALLY BREAKING CHANGES
77

88
Core Grammars:
99

10+
- fix(apache) - support line continuation via `\` [Josh Goebel][]
1011
- fix(makefile) - allow strings inside `$()` expressions [aneesh98][]
1112
- enh(css) add all properties listed on MDN (96 additions including `anchor-name`, `aspect-ratio`, `backdrop-filter`, `container`, `margin-trim`, `place-content`, `scroll-timeline`, ...) [BaliBalo][]
1213
- enh(erlang) OTP 27 triple-quoted strings [nixxquality][]
@@ -39,7 +40,7 @@ Core Grammars:
3940
- fix(nix) handle backslash string escapes [h7x4][]
4041
- fix(nix) don't mix escapes for `"` and `''` strings [h7x4][]
4142
- fix(swift) - Fixed syntax highlighting for class func/var declarations [guuido]
42-
43+
4344
New Grammars:
4445

4546
- added 3rd party TTCN-3 grammar to SUPPORTED_LANGUAGES [Osmocom][]

src/languages/apache.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ export default function(hljs) {
7373
relevance: 0,
7474
keywords: { literal: 'on off all deny allow' },
7575
contains: [
76+
{
77+
scope: "punctuation",
78+
match: /\\\n/
79+
},
7680
{
7781
className: 'meta',
7882
begin: /\s\[/,

0 commit comments

Comments
 (0)