mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
Some checks failed
Publish to ghcr / build (linux/amd64, blacksmith-4vcpu-ubuntu-2404) (push) Has been cancelled
Publish to ghcr / build (linux/arm64, blacksmith-8vcpu-ubuntu-2204-arm) (push) Has been cancelled
Update Roadmap Released / update (push) Has been cancelled
Publish to ghcr / merge (push) Has been cancelled
* generate protobuf types * stream poc over SSE * wip: make stream search api follow existing schema. Modify UI to support streaming * fix scrolling issue * Dockerfile * wip on lezer parser grammar for query language * add lezer tree -> grpc transformer * remove spammy log message * fix syntax highlighting by adding a module resolution for @lezer/common * further wip on query language * Add case sensitivity and regexp toggles * Improved type safety / cleanup for query lang * support search contexts * update Dockerfile with query langauge package * fix filter * Add skeletons to filter panel when search is streaming * add client side caching * improved cancelation handling * add isSearchExausted flag for flagging when a search captured all results * Add back posthog search_finished event * remove zoekt tenant enforcement * migrate blocking search over to grpc. Centralize everything in searchApi * branch handling * plumb file weburl * add repo_sets filter for repositories a user has access to * refactor a bunch of stuff + add support for passing in Query IR to search api * refactor * dev README * wip on better error handling * error handling for stream path * update mcp * changelog wip * type fix * style * Support rev:* wildcard * changelog * changelog nit * feedback * fix build * update docs and remove uneeded test file
120 lines
1.3 KiB
Text
120 lines
1.3 KiB
Text
# Empty parentheses
|
|
|
|
()
|
|
|
|
==>
|
|
|
|
Program(ParenExpr(Term(⚠)))
|
|
|
|
# Simple grouping
|
|
|
|
(test)
|
|
|
|
==>
|
|
|
|
Program(ParenExpr(Term))
|
|
|
|
# Multiple terms in group
|
|
|
|
(hello world)
|
|
|
|
==>
|
|
|
|
Program(ParenExpr(AndExpr(Term,Term)))
|
|
|
|
# Nested parentheses
|
|
|
|
((test))
|
|
|
|
==>
|
|
|
|
Program(ParenExpr(ParenExpr(Term)))
|
|
|
|
# Multiple groups
|
|
|
|
(first) (second)
|
|
|
|
==>
|
|
|
|
Program(AndExpr(ParenExpr(Term),ParenExpr(Term)))
|
|
|
|
# Group with multiple terms
|
|
|
|
(one two three)
|
|
|
|
==>
|
|
|
|
Program(ParenExpr(AndExpr(Term,Term,Term)))
|
|
|
|
# Mixed grouped and ungrouped
|
|
|
|
test (grouped) another
|
|
|
|
==>
|
|
|
|
Program(AndExpr(Term,ParenExpr(Term),Term))
|
|
|
|
# Deeply nested
|
|
|
|
(((nested)))
|
|
|
|
==>
|
|
|
|
Program(ParenExpr(ParenExpr(ParenExpr(Term))))
|
|
|
|
# Multiple nested groups
|
|
|
|
((a b) (c d))
|
|
|
|
==>
|
|
|
|
Program(ParenExpr(AndExpr(ParenExpr(AndExpr(Term,Term)),ParenExpr(AndExpr(Term,Term)))))
|
|
|
|
# Group at start
|
|
|
|
(start) middle end
|
|
|
|
==>
|
|
|
|
Program(AndExpr(ParenExpr(Term),Term,Term))
|
|
|
|
# Group at end
|
|
|
|
start middle (end)
|
|
|
|
==>
|
|
|
|
Program(AndExpr(Term,Term,ParenExpr(Term)))
|
|
|
|
# Complex grouping pattern
|
|
|
|
(a (b c) d)
|
|
|
|
==>
|
|
|
|
Program(ParenExpr(AndExpr(Term,ParenExpr(AndExpr(Term,Term)),Term)))
|
|
|
|
# Sequential groups
|
|
|
|
(a)(b)(c)
|
|
|
|
==>
|
|
|
|
Program(AndExpr(ParenExpr(Term),ParenExpr(Term),ParenExpr(Term)))
|
|
|
|
# Group with regex
|
|
|
|
([a-z]+)
|
|
|
|
==>
|
|
|
|
Program(ParenExpr(Term))
|
|
|
|
# Group with dots
|
|
|
|
(com.example.test)
|
|
|
|
==>
|
|
|
|
Program(ParenExpr(Term))
|
|
|