Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 63feb2103e40a89a3841d53b181f121d62ec2762
      
https://github.com/Perl/perl5/commit/63feb2103e40a89a3841d53b181f121d62ec2762
  Author: Paul "LeoNerd" Evans <leon...@leonerd.org.uk>
  Date:   2024-11-23 (Sat, 23 Nov 2024)

  Changed paths:
    M toke.c

  Log Message:
  -----------
  toke.c: minor adjustment of #ifdef to stop confusing code editors

Before this change, the two separate `while` statements would upset the
code folding as parsed by tree-sitter-c (and likely many others, I
haven't tested), into thinking this was two nested loops. Having failed
to find the end of both of them before the end of the function, various
confusions result, usually ending up in the entire rest of the file (and
it's a long file) getting folded into one giant region. This likely
causes various static analysis tools similarly to not see any of the
subsequent functions in the file.

By adjusting the code so that just the condition part is conditional on
the `#ifdef`, it means that code parsing tools have a much easier time
working out the high-level structure of this file.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to