mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
validate: Handle comments in multiline expressions
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/179>
This commit is contained in:
parent
bf24fd3d74
commit
449674459a
1 changed files with 6 additions and 1 deletions
|
@ -608,8 +608,13 @@ _file_get_structures (GFile * file, gchar ** err)
|
||||||
l = g_string_new (NULL);
|
l = g_string_new (NULL);
|
||||||
current_lineno = lineno;
|
current_lineno = lineno;
|
||||||
while (*tmp != '\n' && *tmp) {
|
while (*tmp != '\n' && *tmp) {
|
||||||
gchar next = *(tmp + 1);
|
gchar next;
|
||||||
|
|
||||||
|
if (*tmp == '#')
|
||||||
|
while (*tmp && *tmp != '\n')
|
||||||
|
tmp++;
|
||||||
|
|
||||||
|
next = *(tmp + 1);
|
||||||
if (next && next == '\n'
|
if (next && next == '\n'
|
||||||
&& strchr (GST_STRUCT_LINE_CONTINUATION_CHARS, *tmp)) {
|
&& strchr (GST_STRUCT_LINE_CONTINUATION_CHARS, *tmp)) {
|
||||||
if (*tmp != '\\')
|
if (*tmp != '\\')
|
||||||
|
|
Loading…
Reference in a new issue