boot whitespace
This commit is contained in:
parent
7253742e59
commit
ac418bde03
4
boot.go
4
boot.go
@ -13,6 +13,10 @@ func stringToCommitType(s string) CommitType {
|
|||||||
switch s {
|
switch s {
|
||||||
case "alias":
|
case "alias":
|
||||||
return Alias
|
return Alias
|
||||||
|
case "ws":
|
||||||
|
return Whitespace
|
||||||
|
case "nows":
|
||||||
|
return NoWhitespace
|
||||||
case "doc":
|
case "doc":
|
||||||
return Documentation
|
return Documentation
|
||||||
case "root":
|
case "root":
|
||||||
|
@ -16,7 +16,7 @@ var bootSyntaxDefs = [][]string{{
|
|||||||
"chars", "verticaltab", "alias", "\\v",
|
"chars", "verticaltab", "alias", "\\v",
|
||||||
}, {
|
}, {
|
||||||
"choice",
|
"choice",
|
||||||
"ws",
|
"wschar",
|
||||||
"alias",
|
"alias",
|
||||||
"space",
|
"space",
|
||||||
"tab",
|
"tab",
|
||||||
@ -59,7 +59,7 @@ var bootSyntaxDefs = [][]string{{
|
|||||||
}, {
|
}, {
|
||||||
"choice", "comment-segment", "alias", "block-comment", "line-comment",
|
"choice", "comment-segment", "alias", "block-comment", "line-comment",
|
||||||
}, {
|
}, {
|
||||||
"sequence", "wss", "alias", "ws:0:-1",
|
"sequence", "wss", "alias", "wschar:0:-1",
|
||||||
}, {
|
}, {
|
||||||
"sequence", "optional-nl", "alias", "nl:0:1",
|
"sequence", "optional-nl", "alias", "nl:0:1",
|
||||||
}, {
|
}, {
|
||||||
@ -89,7 +89,7 @@ var bootSyntaxDefs = [][]string{{
|
|||||||
"comment-segment",
|
"comment-segment",
|
||||||
"continue-comment",
|
"continue-comment",
|
||||||
}, {
|
}, {
|
||||||
"choice", "wsc", "alias", "ws", "comment",
|
"choice", "wsc", "alias", "wschar", "comment",
|
||||||
}, {
|
}, {
|
||||||
"sequence", "wscs", "alias", "wsc:0:-1",
|
"sequence", "wscs", "alias", "wsc:0:-1",
|
||||||
}, {
|
}, {
|
||||||
@ -224,12 +224,16 @@ var bootSyntaxDefs = [][]string{{
|
|||||||
"choice",
|
"choice",
|
||||||
}, {
|
}, {
|
||||||
"chars", "alias", "none", "alias",
|
"chars", "alias", "none", "alias",
|
||||||
|
}, {
|
||||||
|
"chars", "ws", "none", "ws",
|
||||||
|
}, {
|
||||||
|
"chars", "nows", "none", "nows",
|
||||||
}, {
|
}, {
|
||||||
"chars", "doc", "none", "doc",
|
"chars", "doc", "none", "doc",
|
||||||
}, {
|
}, {
|
||||||
"chars", "root", "none", "root",
|
"chars", "root", "none", "root",
|
||||||
}, {
|
}, {
|
||||||
"choice", "flag", "alias", "alias", "doc", "root",
|
"choice", "flag", "alias", "alias", "ws", "nows", "doc", "root",
|
||||||
}, {
|
}, {
|
||||||
"chars", "colon", "alias", ":",
|
"chars", "colon", "alias", ":",
|
||||||
}, {
|
}, {
|
||||||
|
Loading…
Reference in New Issue
Block a user