logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

scan_l.patch (1031B)


  1. SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
  2. SPDX-FileCopyrightText: 2019-2020 Giovanni Mascellani <gio@debian.org>
  3. SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
  4. SPDX-License-Identifier: BSD-2-Clause
  5. Comments are unsupported by our flex.
  6. diff --git scan.l scan.l
  7. index 18d0de8..c251a5e 100644
  8. --- flex-2.5.11/scan.l
  9. +++ flex-2.5.11/scan.l
  10. @@ -335,8 +335,8 @@ LEXOPT [aceknopr]
  11. <SECT2PROLOG>{
  12. - ^"%{".* ++bracelevel; yyless( 2 ); /* eat only %{ */
  13. - ^"%}".* --bracelevel; yyless( 2 ); /* eat only %} */
  14. + ^"%{".* ++bracelevel; yyless( 2 );
  15. + ^"%}".* --bracelevel; yyless( 2 );
  16. ^{WS}.* ACTION_ECHO; /* indented code in prolog */
  17. @@ -481,11 +481,11 @@ LEXOPT [aceknopr]
  18. }
  19. }
  20. + "{"{NAME}"}"[[:space:]]? {
  21. /* Check for :space: at the end of the rule so we don't
  22. * wrap the expanded regex in '(' ')' -- breaking trailing
  23. * context.
  24. */
  25. - "{"{NAME}"}"[[:space:]]? {
  26. register Char *nmdefptr;
  27. int end_is_ws, end_ch;