<p></p>
<p><b>@techee</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/3034#discussion_r763286490">scripts/update-ctags.py</a>:</p>
<pre style='color:#555'>> -        shutil.copy('parsers/' + f, dstdir + '/parsers/' + f)
-    elif os.path.exists(f):
-        shutil.copy(f, dstdir + '/parsers/' + f)
-    else:
-        print('Error: Could not find file ' + f + '!')
-        sys.exit(1)
+    shutil.copy(f, dstdir + '/parsers')
+
+os.chdir(dstdir + '/peg')
+peg_dst_files = glob.glob('*.c') + glob.glob('*.h')
+peg_dst_files = list(filter(lambda x: not x.startswith('geany_'), peg_dst_files))
+os.chdir(srcdir + '/peg')
+os.system('make -C {} peg/{}'.format(srcdir, ' peg/'.join(peg_dst_files)))
+print('Copying peg parsers... ({} files)'.format(len(peg_dst_files)))
+for f in peg_dst_files:
+    shutil.copy(f, dstdir + '/peg')
</pre>
<blockquote>
<p dir="auto">Would you mind if I implemented it in follow-up PR?</p>
</blockquote>
<p dir="auto">Yep, agreed. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1065327145" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/3032" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/3032/hovercard" href="https://github.com/geany/geany/pull/3032">#3032</a> will do some more changes to the script so maybe better wait until both of these pull requests are merged.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/3034#discussion_r763286490">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY4V4QA4UVZAUOCFITUPUBANANCNFSM5I7MRDJA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJZGYEL4TQTKOIPHPVLUPUBANA5CNFSM5I7MRDJKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOGERG7CY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3034#discussion_r763286490",
"url": "https://github.com/geany/geany/pull/3034#discussion_r763286490",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>