Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ae03af34
Commit
ae03af34
authored
May 31, 1997
by
Richard M. Stallman
Browse files
(Fforward_comment): Handle unmatched two-character comment starters.
parent
ea315ed6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/syntax.c
src/syntax.c
+11
-0
No files found.
src/syntax.c
View file @
ae03af34
...
...
@@ -1538,6 +1538,17 @@ between them, return t; otherwise return nil.")
comstyle
=
SYNTAX_COMMENT_STYLE
(
c1
);
from
=
temp_pos
;
}
if
(
from
>
stop
&&
SYNTAX_COMSTART_SECOND
(
c
)
&&
(
c1
=
FETCH_CHAR
(
temp_pos
),
SYNTAX_COMSTART_FIRST
(
c1
))
&&
!
char_quoted
(
temp_pos
))
{
/* We must record the comment style encountered so that
later, we can match only the proper comment begin
sequence of the same style. */
code
=
Scomment
;
from
=
temp_pos
;
}
if
(
code
==
Scomment_fence
)
{
...
...
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