Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
546f87e5
Commit
546f87e5
authored
Dec 11, 2016
by
Francis Dupont
Browse files
[5036] Added \r as a valid whitespace (cf JSON standard)
parent
aef276b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/dhcp6_lexer.ll
View file @
546f87e5
...
...
@@ -66,7 +66,7 @@ unsigned int comment_start_line = 0;
can
be
used
during
actual
token
definitions
.
Note
some
can
match
incorrect
inputs
(
e
.
g
.,
IP
addresses
)
which
must
be
checked
.
*
/
int
\-?
[
0-9
]
+
blank
[
\t
]
blank
[
\t
\r
]
UnicodeEscapeSequence
u
[
0-9
A-Fa-f
]{
4
}
JSONEscapeCharacter
[
"\\/bfnrt]
...
...
src/bin/dhcp6/tests/parser_unittest.cc
View file @
546f87e5
...
...
@@ -274,6 +274,10 @@ TEST(ParserTest, errors) {
"<string>:1.2: syntax error, unexpected end of file"
);
testError
(
"
\n
"
,
Parser6Context
::
PARSER_JSON
,
"<string>:2.1: syntax error, unexpected end of file"
);
testError
(
"
\t
"
,
Parser6Context
::
PARSER_JSON
,
"<string>:1.2: syntax error, unexpected end of file"
);
testError
(
"
\r
"
,
Parser6Context
::
PARSER_JSON
,
"<string>:1.2: syntax error, unexpected end of file"
);
// comments
testError
(
"# nothing
\n
"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment