Ai
1 Star 0 Fork 0

go-better/go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
state_comment.go 746 Bytes
一键复制 编辑 原始数据 按行查看 历史
proce 提交于 2022-03-24 11:57 +08:00 . 迁移完成
package scanner
// stateInCommentWhenBeginString is the state after reading `#`, when in begin string state.
func stateInCommentWhenBeginString(s *scanner, c byte) int {
if c == '\n' {
s.step = stateBeginString
return scanEndComment
}
return scanContinue
}
// stateInCommentWhenBeginValue is the state after reading `#`, when in begin value state.
func stateInCommentWhenBeginValue(s *scanner, c byte) int {
if c == '\n' {
s.step = stateBeginValue
return scanEndComment
}
return scanContinue
}
// stateInCommentWhenEndValue is the state after reading `#`, when in end value state.
func stateInCommentWhenEndValue(s *scanner, c byte) int {
if c == '\n' {
s.step = stateEndValue
return scanSkipSpace
}
return scanContinue
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/go-better/go.git
git@gitee.com:go-better/go.git
go-better
go
go
d31700df43a9

搜索帮助