Allow asterisks in comments
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, nodejs
- 领域
- tooling
调研方向
定位处理 /* 注释的 parser 入口点,并使用 /* Upload *.dSYM to Firebase */ 重现该失败。跟踪注释正文的扫描方式,然后验证内部星号会被接受,同时结尾的 */ 仍会在不产生 SyntaxError 的情况下终止注释。
由索引模型根据 Issue 内容生成。
描述
Once the parser passes a /* token, it proceeds to search for a */ token, throwing a SyntaxError as soon as it encounter an asterisk not immediately followed by a slash. Comments can contain asterisks though. Many of these comments in project files are autogenerated, for example based on a file name which could have an asterisk in it.
Could the parser ignore * characters between /* and */, continuing its search without issue until it finds the closing */?
To reproduce the below, call the parser on any (file containing a) line such as /* Upload *.dSYM to Firebase */:
Thrown:
{ [SyntaxError: Expected "*/" or [^*] but "*" found.
]
message: 'Expected "*/" or [^*] but "*" found.',
expected:
[ { type: 'class',
parts: [Array],
inverted: true,
ignoreCase: false },
{ type: 'literal', text: '*/', ignoreCase: false },
{ type: 'class',
parts: [Array],
inverted: true,
ignoreCase: false },
{ type: 'literal', text: '*/', ignoreCase: false } ],
found: '*',
location:
{ start: { offset: 697, line: 13, column: 35 },
end: { offset: 698, line: 13, column: 36 } },
name: 'SyntaxError' }
- 主要语言
- JavaScript
- 星标
- 218
- 派生
- 102
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/cordova-node-xcode 的其他 Issue
-
Add & Improve JSDocs可能重新可做 @erisu 于 111 天前认领,目前没有进行中的 PR。 未关闭enhancement
apache/cordova-node-xcode#171 · 已指派 1 人 ·
-
🔖 New release未关闭
难度 3/5 1-2 天 新手友好度 35/100
apache/cordova-node-xcode#162 · 4 条评论 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 28/100
apache/cordova-node-xcode#139 · 2 条评论 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
apache/cordova-node-xcode#138 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
apache/cordova-node-xcode#137 · 2 个 reaction ·
查看 apache/cordova-node-xcode 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
jaegertracing/jaeger-ui#4596 ·
维护者通常 1 天内回复
-
channels:add check:passed
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 9 天内回复
-
module: core
难度 2/5 1-3 小时 新手友好度 77/100
bigbluebutton/bigbluebutton#26028 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 91/100
twbs/bootstrap#43050 · 1 条评论 ·
维护者通常 1 天内回复
-
status:untriaged
难度 1/5 1 小时以内 新手友好度 78/100
midnightntwrk/servicedesk#248 ·
维护者通常 1 天内回复