From 416702ae107542dfc2cb66f0e92b4d8395a549e4 Mon Sep 17 00:00:00 2001 From: MorphCodeBot <152932298+MorphCodeBot@users.noreply.github.com> Date: Wed, 15 Jan 2025 14:18:44 -0800 Subject: [PATCH] fix: add variable highlighting for PHP variables --- src/languages/php.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/languages/php.js b/src/languages/php.js index 972083e4b9..8cf977210a 100644 --- a/src/languages/php.js +++ b/src/languages/php.js @@ -12,6 +12,7 @@ Category: common * */ export default function(hljs) { var VARIABLE = { + className: 'variable', begin: '\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*' }; var PREPROCESSOR = {