aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/query/lexer.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/query/lexer.go')
-rw-r--r--pkg/query/lexer.go4
1 files changed, 4 insertions, 0 deletions
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)
}