Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c01f7ec0
Commit
c01f7ec0
authored
Jun 16, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(scan_lists): Get error if eob within comment with depth!=0.
parent
97c6019c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
src/syntax.c
src/syntax.c
+12
-2
No files found.
src/syntax.c
View file @
c01f7ec0
...
...
@@ -933,7 +933,12 @@ scan_lists (from, count, depth, sexpflag)
if
(
!
parse_sexp_ignore_comments
)
break
;
while
(
1
)
{
if
(
from
==
stop
)
goto
done
;
if
(
from
==
stop
)
{
if
(
depth
==
0
)
goto
done
;
goto
lose
;
}
c
=
FETCH_CHAR
(
from
);
if
(
SYNTAX
(
c
)
==
Sendcomment
&&
SYNTAX_COMMENT_STYLE
(
c
)
==
comstyle
)
...
...
@@ -1099,7 +1104,12 @@ scan_lists (from, count, depth, sexpflag)
if (SYNTAX (c = FETCH_CHAR (from)) == Scomment
&& SYNTAX_COMMENT_STYLE (c) == comstyle)
break;
if (from == stop) goto done;
if (from == stop)
{
if (depth == 0)
goto done2;
goto lose;
}
from--;
if (SYNTAX_COMSTART_SECOND (c)
&& SYNTAX_COMSTART_FIRST (FETCH_CHAR (from))
...
...
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