diff options
| author | Richard M. Stallman | 1997-05-31 18:30:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-31 18:30:56 +0000 |
| commit | ae03af34440c078ef59145929b17eca696b9e3f7 (patch) | |
| tree | 97e66e50bcfba71c886890ebdfd534e5e1facd8c /src/syntax.c | |
| parent | ea315ed6e49d61f23496698a9b871119d6f35b12 (diff) | |
| download | emacs-ae03af34440c078ef59145929b17eca696b9e3f7.tar.gz emacs-ae03af34440c078ef59145929b17eca696b9e3f7.zip | |
(Fforward_comment): Handle unmatched two-character comment starters.
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c index ed664805ecd..76428999ea1 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1538,6 +1538,17 @@ between them, return t; otherwise return nil.") | |||
| 1538 | comstyle = SYNTAX_COMMENT_STYLE (c1); | 1538 | comstyle = SYNTAX_COMMENT_STYLE (c1); |
| 1539 | from = temp_pos; | 1539 | from = temp_pos; |
| 1540 | } | 1540 | } |
| 1541 | if (from > stop && SYNTAX_COMSTART_SECOND (c) | ||
| 1542 | && (c1 = FETCH_CHAR (temp_pos), | ||
| 1543 | SYNTAX_COMSTART_FIRST (c1)) | ||
| 1544 | && !char_quoted (temp_pos)) | ||
| 1545 | { | ||
| 1546 | /* We must record the comment style encountered so that | ||
| 1547 | later, we can match only the proper comment begin | ||
| 1548 | sequence of the same style. */ | ||
| 1549 | code = Scomment; | ||
| 1550 | from = temp_pos; | ||
| 1551 | } | ||
| 1541 | 1552 | ||
| 1542 | if (code == Scomment_fence) | 1553 | if (code == Scomment_fence) |
| 1543 | { | 1554 | { |