ws_comment_newline

Function ws_comment_newline 

Source
fn ws_comment_newline(
    tokens: &mut TokenSlice<'_, Token>,
    receiver: &mut dyn EventReceiver,
    error: &mut dyn ErrorSink,
)
Expand description

Parse EOL decor, if present

toml = expression *( newline expression )

expression =  ws [ on_comment ]
expression =/ ws keyval ws [ on_comment ]
expression =/ ws table ws [ on_comment ]

;; Whitespace

ws = *wschar
wschar =  %x20  ; Space
wschar =/ %x09  ; Horizontal tab

;; Newline

newline =  %x0A     ; LF
newline =/ %x0D.0A  ; CRLF

;; Comment

comment = comment-start-symbol *non-eol