Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

The last argument of the method is not highlighted

未关闭
#744 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
emacs-lisp, php
领域
tooling

调研方向

在 Emacs 30.0.50 下使用提供的 Foo 示例复现 php-mode v1.24.3 中的高亮问题。跟踪处理方法参数的 PHP 语法或 font-lock 入口点,并将 DateTime 的高亮与返回类型进行比较。当最后一个参数类型与声明的其余部分保持一致的高亮,并且在有相关现有检查的情况下完成更新时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

About

  • The highlighting of the last argument of the method is something wrong
class Foo
{
    // 'DateTime' is not highlighting
    public function test(DateTime $a): array
    {
        return [$a];
    }
}

Screenshot

スクリーンショット 2023-04-27 10 09 28

versions

(php-mode-version)
"PHP Mode v1.24.3-non-vcs"
(emacs-version)
"GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin22.4.0, NS appkit-2299.50 Version 13.3.1 (Build 22E261))
 of 2023-04-26"
主要语言
Emacs Lisp
星标
602
派生
117
平均合并
12 小时 54 分钟
30 天内合并 PR
3

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

emacs-php/php-mode 的其他 Issue

查看 emacs-php/php-mode 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。