Operator / Syntax (Symbols) Search
还没有人认领这个 Issue。
评估
调研方向
从搜索框实现开始,并阅读相关 issue 3519 和 3515,以了解现有的搜索行为和范围。定义运算符及其他非单词语法的部分匹配应如何工作;当诸如 ?, :, [, 和 . 这样的示例能够找到其相关文档时,这项工作就完成了。
由索引模型根据 Issue 内容生成。
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
php/web-php 的其他 Issue
-
Bug Status: Needs Triage
难度 2/5 1-3 小时 新手友好度 75/100
-
Page: downloads
难度 3/5 1-2 天 新手友好度 55/100
-
Page: downloads
难度 3/5 1-2 天 新手友好度 62/100
-
Bug Status: Needs Triage
难度 3/5 1-2 天 新手友好度 55/100
相似的 Issue
-
tooling
难度 2/5 1-3 小时 新手友好度 75/100
-
UX
难度 2/5 1-3 小时 新手友好度 70/100
ProfessionalWiki/NeoWiki#1525 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 90/100
OpenConext/OpenConext-engineblock#2122 ·
-
Bug
难度 2/5 1-3 小时 新手友好度 70/100
Automattic/safe-publish#594 ·