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

Operator / Syntax (Symbols) Search

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

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
php
领域
search

调研方向

从搜索框实现开始,并阅读相关 issue 3519 和 3515,以了解现有的搜索行为和范围。定义运算符及其他非单词语法的部分匹配应如何工作;当诸如 ?, :, [, 和 . 这样的示例能够找到其相关文档时,这项工作就完成了。

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

描述

Enhancement

Affected page

N/A (Search box)

Current issue

Users may come across operators (and other syntax symbols) in code they don't know, and/or don't know what the name for an operator is. This can make them very hard to find documentation for.

Suggested improvement

Add operators (and other non-word syntax) to the search feature.

For best results I think partial matches should work. eg:

  • ? would match ternary, ?:, ?? and ??=
  • : would match ternary, ?: and (static) class access
  • [ would match arrays and list
  • '.' would match concatenation, splat and spread

(I may have missed other potential matches from these examples - this is just "off the top of my head")

Additional context

Related issues:

Recently seen chat query:

[, $target] = explode('://', $uri, 2); I encountered this line in some code, searching online is tricky with this kind of thing, what is this syntax called?

主要语言
PHP
星标
1.1k
派生
641
平均合并
1 天 11 小时
30 天内合并 PR
19

贡献指南

打开贡献指南

从这里开始

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

php/web-php 的其他 Issue

查看 php/web-php 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

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