Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Ignore a missing newline at EOF for single line comments. (#83674, Sven
Browse files Browse the repository at this point in the history
Fri Jun 11 22:56:46 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gscanner.c (g_scanner_get_token_ll): Ignore a
	missing newline at EOF for single line comments.
	(#83674, Sven Neumann)
  • Loading branch information
Matthias Clasen authored and Matthias Clasen committed Jun 12, 2004
1 parent 9bee417 commit f65f760
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Fri Jun 11 22:56:46 2004 Matthias Clasen <maclas@gmx.de>

* glib/gscanner.c (g_scanner_get_token_ll): Ignore a
missing newline at EOF for single line comments.
(#83674, Sven Neumann)

Thu Jun 10 23:38:02 2004 Matthias Clasen <maclas@gmx.de>

* tests/printf-test.c (TEST): Actually set any_failed on
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.pre-2-10
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Fri Jun 11 22:56:46 2004 Matthias Clasen <maclas@gmx.de>

* glib/gscanner.c (g_scanner_get_token_ll): Ignore a
missing newline at EOF for single line comments.
(#83674, Sven Neumann)

Thu Jun 10 23:38:02 2004 Matthias Clasen <maclas@gmx.de>

* tests/printf-test.c (TEST): Actually set any_failed on
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.pre-2-12
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Fri Jun 11 22:56:46 2004 Matthias Clasen <maclas@gmx.de>

* glib/gscanner.c (g_scanner_get_token_ll): Ignore a
missing newline at EOF for single line comments.
(#83674, Sven Neumann)

Thu Jun 10 23:38:02 2004 Matthias Clasen <maclas@gmx.de>

* tests/printf-test.c (TEST): Actually set any_failed on
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.pre-2-6
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Fri Jun 11 22:56:46 2004 Matthias Clasen <maclas@gmx.de>

* glib/gscanner.c (g_scanner_get_token_ll): Ignore a
missing newline at EOF for single line comments.
(#83674, Sven Neumann)

Thu Jun 10 23:38:02 2004 Matthias Clasen <maclas@gmx.de>

* tests/printf-test.c (TEST): Actually set any_failed on
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.pre-2-8
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Fri Jun 11 22:56:46 2004 Matthias Clasen <maclas@gmx.de>

* glib/gscanner.c (g_scanner_get_token_ll): Ignore a
missing newline at EOF for single line comments.
(#83674, Sven Neumann)

Thu Jun 10 23:38:02 2004 Matthias Clasen <maclas@gmx.de>

* tests/printf-test.c (TEST): Actually set any_failed on
Expand Down
4 changes: 4 additions & 0 deletions glib/gscanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1634,6 +1634,10 @@ g_scanner_get_token_ll (GScanner *scanner,
gstring = g_string_append_c (gstring, ch);
ch = g_scanner_get_char (scanner, line_p, position_p);
}
/* ignore a missing newline at EOF for single line comments */
if (in_comment_single &&
config->cpair_comment_single[1] == '\n')
in_comment_single = FALSE;
}
else if (config->scan_identifier && ch &&
strchr (config->cset_identifier_first, ch))
Expand Down

0 comments on commit f65f760

Please sign in to comment.