lexer: New function for other kind of half-open range.
commit1a464399ccf4f96942c63d34abe979747e432f2e
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 4 Jun 2023 14:52:11 +0000 (4 07:52 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 4 Jun 2023 14:52:11 +0000 (4 07:52 -0700)
tree035271070c0214384bbd9b70ed12685f00bd00a9
parent733154a78524daecf1542c4f6fba96474ac3426f
lexer: New function for other kind of half-open range.

The existing function lex_force_num_range_halfopen() handled ranges of the
form [low,high).  There is a new need for (low,high] ranges.  This commit
adds that new function and renames the existing one so that it's obvious
which kind it handles.
src/language/commands/ctables.c
src/language/lexer/lexer.c
src/language/lexer/lexer.h