diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-11-21 20:50:42 -0500 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-11-21 20:50:42 -0500 |
| commit | 1aad60b49a32b6bced95a251f266799c031ca83e (patch) | |
| tree | 4b156c7f6df11a164a31a5615d30f9cd6f07c44f /pkg/query/lexer.go | |
| parent | 7383ea149c9444c297e21f21294fd41e67f9c9ff (diff) | |
Update documentation, comments, and tidy codebase
Diffstat (limited to 'pkg/query/lexer.go')
| -rw-r--r-- | pkg/query/lexer.go | 4 |
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) } |
