Open
Description
To track issues to resolve:
- Should
?
(nullable type),|
(union type) and&
(intersection type) be havefont-lock-operator-face
or@font-lock-type-face
. Currentlyfont-lock-operator-face
is going to be applied - const_element (name) highlights
CONST_NAME = 'value'
in class declaration instead of justCONST_NAME
highlight $ in variable name and object member #16 - string interpolation is missing - I'm not sure how much we have to care about
${XX}
syntax as it's deprecated in 8.2
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation - class_interface_clause (name) applied highlight to
implements
and,
instead of just interface names highlight $ in variable name and object member #16 -
;
( `expression_statement ";") in for is not highlighted - object_creation_expression is not highlighted update font rules, indention, faces and readme #68
- binary_expression is not highlighted (or, and, xor) - should there be just keywords? binary operator xor, and, or highlight #15
- Highlight
$
in variable name highlight $ in variable name and object member #16 - Highlight
this
in variable name update font rules, indention, faces and readme #68 - Highlight object member highlight $ in variable name and object member #16
- Highlight
list
highlight $ in variable name and object member #16 - Highlight
array
highlight $ in variable name and object member #16
Missing keywords:
- readonly add missing keywords #9
- fn add missing keywords #9
- for add missing keywords #9
- yield add missing keywords #9
- yield from fix highlighting of yield from #14
- never add never as type #11
Rework treesit-font-lock-feature-list
- Comply with
treesit-font-lock-level
here is a gist from the documentation: Align font lock levels built-in ts modes #19
Its value is 3
Decoration level to be used by tree-sitter fontifications.
Major modes categorize their fontification features into levels,
from 1 which is the absolute minimum, to 4 that yields the maximum
fontifications.
Level 1 usually contains only comments and definitions.
Level 2 usually adds keywords, strings, data types, etc.
Level 3 usually represents full-blown fontifications, including
assignments, constants, numbers and literals, etc.
Level 4 adds everything else that can be fontified: delimiters,
operators, brackets, punctuation, all functions, properties,
variables, etc.
Metadata
Metadata
Assignees
Labels
No labels