-
-
Notifications
You must be signed in to change notification settings - Fork 92
Add first zig scope facet #3111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Antman261
wants to merge
14
commits into
cursorless-dev:main
Choose a base branch
from
Antman261:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+673
−0
Open
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3cb55ab
Add first zig scope facet
Antman261 0abea27
Update queries/zig.scm
Antman261 c2fe2de
Update packages/common/src/scopeSupportFacets/zig.ts
Antman261 d56874b
Update packages/common/src/scopeSupportFacets/zig.ts
Antman261 bef3efe
Merge branch 'main' into main
Antman261 1f32c82
Apply suggestion from @AndreasArvidsson
Antman261 94a9433
add more scopes and scope tests
Antman261 8eb1fe7
Merge branch 'main' into main
Antman261 957ca92
wip: improving zig scm
Antman261 05929f9
Merge branch 'main' of https://github.com/Antman261/cursorless
Antman261 15b273c
wip: improve Zig scm
Antman261 1c060d3
Improve scm examples
Antman261 69cd67b
Update arg list test
Antman261 e03a4f6
wip: add more scope tests
Antman261 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| fn someFunk() void {} | ||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:0-0:21 | ||
| >---------------------< | ||
| 0| fn someFunk() void {} | ||
|
|
||
| [Insertion delimiter] = "\n\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| const bob = "bobert"; | ||
|
|
||
| fn myFunk() void {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types"; | ||
| import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types"; | ||
|
|
||
| const { supported, notApplicable, unsupported } = ScopeSupportFacetLevel; | ||
|
|
||
| export const zigScopeSupport: LanguageScopeSupportFacetMap = { | ||
| namedFunction: supported, | ||
| list: unsupported, | ||
|
|
||
| "textFragment.string.singleLine": unsupported, | ||
| "textFragment.string.multiLine": unsupported, | ||
| "textFragment.comment.line": unsupported, | ||
| "textFragment.comment.block": unsupported, | ||
|
|
||
Antman261 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| // SectionIf I Take Under | ||
Antman261 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| section: notApplicable, | ||
| "section.iteration.document": notApplicable, | ||
| "section.iteration.parent": notApplicable, | ||
|
|
||
| // Command | ||
| command: notApplicable, | ||
| "statement.command": notApplicable, | ||
| "name.command": notApplicable, | ||
| "value.command": notApplicable, | ||
| "interior.command": notApplicable, | ||
|
|
||
| // Notebook cell | ||
| notebookCell: notApplicable, | ||
| "interior.cell": notApplicable, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| ;;!! (fn foo() void {}) | ||
| (function_declaration | ||
| "fn" | ||
| name: (identifier) | ||
| (parameters | ||
| "(" | ||
| ")" | ||
| ) | ||
| type: (_) | ||
| body: (block | ||
| "{" | ||
| "}" | ||
| ) | ||
| ) @namedFunction | ||
Antman261 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.