From 55b0deb4875acdf5497d2bbc94c6a6e8fc394f12 Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Sat, 14 Dec 2024 10:05:16 -0500 Subject: [PATCH] enh(apache) support line continuation with `\` (#4158) --- CHANGES.md | 1 + src/languages/apache.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 3bc696cca9..df89831fb1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,7 @@ CAVEATS / POTENTIALLY BREAKING CHANGES Core Grammars: +- fix(apache) - support line continuation via `\` [Josh Goebel][] - fix(makefile) - allow strings inside `$()` expressions [aneesh98][] - enh(arcade) updated to ArcGIS Arcade version 1.29 [Kristian Ekenes][] - 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][] diff --git a/src/languages/apache.js b/src/languages/apache.js index 4a9797af5e..18b1e8ba10 100644 --- a/src/languages/apache.js +++ b/src/languages/apache.js @@ -73,6 +73,10 @@ export default function(hljs) { relevance: 0, keywords: { literal: 'on off all deny allow' }, contains: [ + { + scope: "punctuation", + match: /\\\n/ + }, { className: 'meta', begin: /\s\[/,