mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
toml: ignore CRLF just like LF in line comments, support VTEST_HIDE_OK=1 in tests.
This commit is contained in:
@@ -563,7 +563,7 @@ pub fn (c Checker) check_comment(comment ast.Comment) ? {
|
||||
if ch_byte == 0x0D {
|
||||
st := s.state()
|
||||
return error(@MOD + '.' + @STRUCT + '.' + @FN +
|
||||
' carrige return character `$ch_byte.hex()` is not allowed ($st.line_nr,$st.col) "${byte(s.at()).ascii_str()}" near ...${s.excerpt(st.pos, 10)}...')
|
||||
' carrige return character `$ch_byte.hex()` is not allowed in comments ($st.line_nr,$st.col).')
|
||||
}
|
||||
// Check for control characters (allow TAB)
|
||||
if util.is_illegal_ascii_control_character(ch_byte) {
|
||||
|
||||
Reference in New Issue
Block a user