Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
ef885e07
Commit
ef885e07
authored
Nov 18, 2016
by
Francis Dupont
Committed by
Tomek Mrugalski
Nov 29, 2016
Browse files
[5014] Count embbeded \n in comments
parent
2541bd4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/dhcp6_lexer.ll
View file @
ef885e07
...
@@ -116,7 +116,7 @@ JSONString \"{JSONStringCharacter}*\"
...
@@ -116,7 +116,7 @@ JSONString \"{JSONStringCharacter}*\"
}
}
<
COMMENT
>
"*/"
BEGIN
(
INITIAL
)
;
<
COMMENT
>
"*/"
BEGIN
(
INITIAL
)
;
<
COMMENT
>.
|
"\n"
;
<
COMMENT
>.
;
<
COMMENT
><<
EOF
>>
{
<
COMMENT
><<
EOF
>>
{
isc_throw
(
isc:
:BadValue
,
"Comment not closed. (/* in line "
<<
comment_start_line
)
;
isc_throw
(
isc:
:BadValue
,
"Comment not closed. (/* in line "
<<
comment_start_line
)
;
}
}
...
@@ -125,6 +125,7 @@ JSONString \"{JSONStringCharacter}*\"
...
@@ -125,6 +125,7 @@ JSONString \"{JSONStringCharacter}*\"
//
Ok
,
we
found
a
with
space
.
Let's
ignore
it
and
update
loc
variable
.
//
Ok
,
we
found
a
with
space
.
Let's
ignore
it
and
update
loc
variable
.
loc
.
step
()
;
loc
.
step
()
;
}
}
[
\n
]
+
{
[
\n
]
+
{
//
Newline
found
.
Let's
update
the
location
and
continue
.
//
Newline
found
.
Let's
update
the
location
and
continue
.
loc
.
lines
(
yyleng
)
;
loc
.
lines
(
yyleng
)
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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