Releases: TysonAndre/php-vim-syntax
Releases · TysonAndre/php-vim-syntax
2021-09-18.1
- Use a different copy of the html syntax with different rule names to avoid misbehaviors when
php_htmlInStrings == 2
was set and string literals contain<?php
. (settingphp_htmlInStrings
to 3 or any other value can be used to use the official html syntax highlighting when that is not a concern) - Add highlighting for
never
type,enum
keyword from php 8.1 - Highlight octal string literals using the new
0o
prefix - Properly highlight
<?=
whenphp_noShortTags
is set - Add special highlighting for
__serialize
and__unserialize
from PHP 7.4
2020-12-22.1
- Highlight more php 8.0 functions and class/interface names
- Highlight
<=>
as a single comparison operator - Highlight the php 8.0
mixed
type as a native type - Don't highlight $offset as a syntax error in
$var[$offset]
2020-09-07.3
- Remove prefixes of constants such as
E_COMPILE_
that were unintentionally highlighted
2020-09-07.2
- Update the Last Change date comment
2020-09-07.1
- Highlight php 8.0
#[
attributes differently from#
comments - see https://wiki.php.net/rfc/shorter_attribute_syntax_change - Highlight php 8.0
match
keyword https://wiki.php.net/rfc/match_expression_v2 - Highlight php 8.0
?->
nullsafe operator https://wiki.php.net/rfc/nullsafe_operator - Add missing builtin classes/interfaces/constants/functions for highlighting (in color schemes that highlight them differently)
2020-05-11.2
- Highlight but don't fold fn() with php_folding=1 - it has no
}
to fold to
2020-05-11.1
- Fix common reason for incorrectly highlighting errors in floats
- Support php 7.4 numeric
_
separator for_
- https://wiki.php.net/rfc/numeric_literal_separator#restrictions - Syntax highlight
fn
for php short arrow functions (fn()=>)