segment: Refine treatment of start of macro body.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 30 May 2021 20:31:39 +0000 (13:31 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 30 May 2021 20:31:45 +0000 (13:31 -0700)
commit74709d3f6d7c102bb3226f7f132c8be78ce8e8c2
tree42d8041a32072536b8f9ef4338c4830c83c83019
parent421c90786d418ace10083d6b48a041f2459a56f2
segment: Refine treatment of start of macro body.

Previously, if the first line of the macro body (the same line as the
closing parenthesis in the DEFINE) was blank, we reported it as a blank
line to the lexer.  The parser for DEFINE could check for that (by seeing
whether the first line of macro body was empty or all-spaces) but it seems
more elegant to do it in the segmenter.  This implements that.
src/language/lexer/segment.c
tests/language/lexer/scan.at
tests/language/lexer/segment.at