From 09626a392288b3387b39f5c1376bdb545400d7fd Mon Sep 17 00:00:00 2001 From: Taufik Nurrohman Date: Sun, 25 Oct 2020 06:44:35 +0700 Subject: [PATCH] Highlight PHP Variable #2778 --- 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 = {