boot whitespace

This commit is contained in:
Arpad Ryszka 2017-10-29 02:49:54 +02:00
parent 7253742e59
commit ac418bde03
2 changed files with 12 additions and 4 deletions

View File

@ -13,6 +13,10 @@ func stringToCommitType(s string) CommitType {
switch s {
case "alias":
return Alias
case "ws":
return Whitespace
case "nows":
return NoWhitespace
case "doc":
return Documentation
case "root":

View File

@ -16,7 +16,7 @@ var bootSyntaxDefs = [][]string{{
"chars", "verticaltab", "alias", "\\v",
}, {
"choice",
"ws",
"wschar",
"alias",
"space",
"tab",
@ -59,7 +59,7 @@ var bootSyntaxDefs = [][]string{{
}, {
"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",
}, {
@ -89,7 +89,7 @@ var bootSyntaxDefs = [][]string{{
"comment-segment",
"continue-comment",
}, {
"choice", "wsc", "alias", "ws", "comment",
"choice", "wsc", "alias", "wschar", "comment",
}, {
"sequence", "wscs", "alias", "wsc:0:-1",
}, {
@ -224,12 +224,16 @@ var bootSyntaxDefs = [][]string{{
"choice",
}, {
"chars", "alias", "none", "alias",
}, {
"chars", "ws", "none", "ws",
}, {
"chars", "nows", "none", "nows",
}, {
"chars", "doc", "none", "doc",
}, {
"chars", "root", "none", "root",
}, {
"choice", "flag", "alias", "alias", "doc", "root",
"choice", "flag", "alias", "alias", "ws", "nows", "doc", "root",
}, {
"chars", "colon", "alias", ":",
}, {