Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
ab51b030
Commit
ab51b030
authored
Oct 08, 2016
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed line numbers being off in multi-line comments.
Change-Id: I4c27892c249527980d8f52a2cca801dace70289f
parent
dc2fa215
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
idl_parser.cpp
src/idl_parser.cpp
+1
-0
No files found.
src/idl_parser.cpp
View file @
ab51b030
...
@@ -352,6 +352,7 @@ CheckedError Parser::Next() {
...
@@ -352,6 +352,7 @@ CheckedError Parser::Next() {
cursor_
++
;
cursor_
++
;
// TODO: make nested.
// TODO: make nested.
while
(
*
cursor_
!=
'*'
||
cursor_
[
1
]
!=
'/'
)
{
while
(
*
cursor_
!=
'*'
||
cursor_
[
1
]
!=
'/'
)
{
if
(
*
cursor_
==
'\n'
)
line_
++
;
if
(
!*
cursor_
)
return
Error
(
"end of file in comment"
);
if
(
!*
cursor_
)
return
Error
(
"end of file in comment"
);
cursor_
++
;
cursor_
++
;
}
}
...
...
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