From 1aad60b49a32b6bced95a251f266799c031ca83e Mon Sep 17 00:00:00 2001 From: JP Appel Date: Fri, 21 Nov 2025 20:50:42 -0500 Subject: Update documentation, comments, and tidy codebase --- pkg/query/lexer.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/query/lexer.go') diff --git a/pkg/query/lexer.go b/pkg/query/lexer.go index 0ebdb1d..bdb09ef 100644 --- a/pkg/query/lexer.go +++ b/pkg/query/lexer.go @@ -130,6 +130,10 @@ func (t queryTokenType) isCategory() bool { TOK_CAT_META) } +func (t queryTokenType) isOrdered() bool { + return t == TOK_CAT_DATE || t == TOK_CAT_FILETIME +} + func (t queryTokenType) isDateOperation() bool { return t.Any(TOK_OP_EQ, TOK_OP_AP, TOK_OP_NE, TOK_OP_LT, TOK_OP_LE, TOK_OP_GE, TOK_OP_GT) } -- cgit v1.2.3