Skip to content

Commit

Permalink
chore(php) add changelog for PHP improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Dec 10, 2021
1 parent a289f24 commit c4d30d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Expand Up @@ -9,6 +9,9 @@ These changes should be for the better and should not be super noticeable but if

Grammars:

- enh(php) improve `namespace` and `use` highlighting (#3427) [Josh Goebel][]
- enh(php) `$this` is a `variable.language` now (#3427) [Josh Goebel][]
- enh(php) add `__COMPILER_HALT_OFFSET__` (#3427) [Josh Goebel][]
- enh(js/ts) fix => async function title highlights (#3405) [Josh Goebel][]
- enh(twig) update keywords list (#3415) [Matthieu Lempereur][]
- fix(python) def, class keywords detected mid-identifier (#3381) [Josh Goebel][]
Expand Down
2 changes: 0 additions & 2 deletions src/languages/php.js
Expand Up @@ -230,12 +230,10 @@ export default function(hljs) {
"SplMinHeap",
"SplObjectStorage",
"SplObserver",
"SplObserver",
"SplPriorityQueue",
"SplQueue",
"SplStack",
"SplSubject",
"SplSubject",
"SplTempFileObject",
"TypeError",
"UnderflowException",
Expand Down
1 change: 1 addition & 0 deletions test/markup/php/namespace.expect.txt
Expand Up @@ -6,3 +6,4 @@
<span class="hljs-keyword">use</span> <span class="hljs-keyword">function</span> <span class="hljs-title">My</span>\<span class="hljs-title">Full</span>\<span class="hljs-title">functionName</span>;
<span class="hljs-keyword">use</span> <span class="hljs-keyword">function</span> <span class="hljs-title">My</span>\<span class="hljs-title">Full</span>\<span class="hljs-title">functionName</span> <span class="hljs-keyword">as</span> <span class="hljs-title">func</span>;
<span class="hljs-keyword">use</span> <span class="hljs-keyword">const</span> <span class="hljs-title">My</span>\<span class="hljs-title">Full</span>\<span class="hljs-title">CONSTANT</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">Example</span>\{<span class="hljs-title">ClassA</span>, <span class="hljs-title">ClassB</span>, <span class="hljs-title">ClassC</span> <span class="hljs-keyword">as</span> <span class="hljs-title">C</span>};
1 change: 1 addition & 0 deletions test/markup/php/namespace.txt
Expand Up @@ -6,3 +6,4 @@ use ArrayObject;
use function My\Full\functionName;
use function My\Full\functionName as func;
use const My\Full\CONSTANT;
use Example\{ClassA, ClassB, ClassC as C};

0 comments on commit c4d30d1

Please sign in to comment.