From 9ec2bdd87659438b4aa021a10c4a4977ef77118e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 5 Jun 2020 06:36:30 +0200 Subject: Add ability to specify ad hoc recipe actions We are reusing the buildspec syntax for that. --- libbuild2/lexer.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libbuild2/lexer.cxx') diff --git a/libbuild2/lexer.cxx b/libbuild2/lexer.cxx index 7149d45..e50ec16 100644 --- a/libbuild2/lexer.cxx +++ b/libbuild2/lexer.cxx @@ -125,13 +125,13 @@ namespace build2 // // 2. Recognizes comma. // - // 3. Treat newline as an ordinary space. - // - // Also note that we don't have buildspec attributes. + // Note that because we use this mode for both the command line + // buildspec and ad hoc recipe actions, we control the recognition of + // newlines as tokens via the auxiliary data. // s1 = " $(){},\t\n"; s2 = " "; - n = false; + n = (data != 0); break; } case lexer_mode::foreign: -- cgit v1.1