mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-10 21:08:55 +01:00
Ignore a missing newline at EOF for single line comments. (#83674, Sven
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)
This commit is contained in:
committed by
Matthias Clasen
parent
9bee4171bc
commit
f65f7608ab
@@ -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>
|
Thu Jun 10 23:38:02 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* tests/printf-test.c (TEST): Actually set any_failed on
|
* tests/printf-test.c (TEST): Actually set any_failed on
|
||||||
|
|||||||
@@ -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>
|
Thu Jun 10 23:38:02 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* tests/printf-test.c (TEST): Actually set any_failed on
|
* tests/printf-test.c (TEST): Actually set any_failed on
|
||||||
|
|||||||
@@ -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>
|
Thu Jun 10 23:38:02 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* tests/printf-test.c (TEST): Actually set any_failed on
|
* tests/printf-test.c (TEST): Actually set any_failed on
|
||||||
|
|||||||
@@ -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>
|
Thu Jun 10 23:38:02 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* tests/printf-test.c (TEST): Actually set any_failed on
|
* tests/printf-test.c (TEST): Actually set any_failed on
|
||||||
|
|||||||
@@ -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>
|
Thu Jun 10 23:38:02 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* tests/printf-test.c (TEST): Actually set any_failed on
|
* tests/printf-test.c (TEST): Actually set any_failed on
|
||||||
|
|||||||
@@ -1634,6 +1634,10 @@ g_scanner_get_token_ll (GScanner *scanner,
|
|||||||
gstring = g_string_append_c (gstring, ch);
|
gstring = g_string_append_c (gstring, ch);
|
||||||
ch = g_scanner_get_char (scanner, line_p, position_p);
|
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 &&
|
else if (config->scan_identifier && ch &&
|
||||||
strchr (config->cset_identifier_first, ch))
|
strchr (config->cset_identifier_first, ch))
|
||||||
|
|||||||
Reference in New Issue
Block a user