-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add text objects to extensions (#21488)
Release Notes: - Adds textobject support to erlang, haskell, lua, php, prisma, proto, toml, and zig
- Loading branch information
1 parent
463c99b
commit 1fccda7
Showing
26 changed files
with
170 additions
and
25 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
id = "erlang" | ||
name = "Erlang" | ||
description = "Erlang support." | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
schema_version = 1 | ||
authors = ["Dairon M <[email protected]>", "Fabian Bergström <[email protected]>"] | ||
repository = "https://github.com/zed-industries/zed" | ||
|
This file contains 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,6 @@ | ||
(function_clause | ||
body: (_ "->" (_)* @function.inside)) @function.around | ||
|
||
(type_alias ty: (_) @class.inside) @class.around | ||
|
||
(comment)+ @comment.around |
This file contains 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 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
id = "haskell" | ||
name = "Haskell" | ||
description = "Haskell support." | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
schema_version = 1 | ||
authors = [ | ||
"Pocæus <[email protected]>", | ||
|
This file contains 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,12 @@ | ||
(comment)+ @comment.around | ||
|
||
[ | ||
(adt) | ||
(type_alias) | ||
(newtype) | ||
] @class.around | ||
|
||
(record_fields "{" (_)* @class.inside "}") | ||
|
||
((signature)? (function)+) @function.around | ||
(function rhs:(_) @function.inside) |
This file contains 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 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
id = "lua" | ||
name = "Lua" | ||
description = "Lua support." | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
schema_version = 1 | ||
authors = ["Max Brunsfeld <[email protected]>"] | ||
repository = "https://github.com/zed-industries/zed" | ||
|
This file contains 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,7 @@ | ||
(function_definition | ||
body: (_) @function.inside) @function.around | ||
|
||
(function_declaration | ||
body: (_) @function.inside) @function.around | ||
|
||
(comment)+ @comment.around |
This file contains 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 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
id = "php" | ||
name = "PHP" | ||
description = "PHP support." | ||
version = "0.2.2" | ||
version = "0.2.3" | ||
schema_version = 1 | ||
authors = ["Piotr Osiewicz <[email protected]>"] | ||
repository = "https://github.com/zed-industries/zed" | ||
|
This file contains 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,45 @@ | ||
(function_definition | ||
body: (_ | ||
"{" | ||
(_)* @function.inside | ||
"}" )) @function.around | ||
|
||
(method_declaration | ||
body: (_ | ||
"{" | ||
(_)* @function.inside | ||
"}" )) @function.around | ||
|
||
(method_declaration) @function.around | ||
|
||
(class_declaration | ||
body: (_ | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
|
||
(interface_declaration | ||
body: (_ | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
|
||
(trait_declaration | ||
body: (_ | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
|
||
(enum_declaration | ||
body: (_ | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
|
||
(namespace_definition | ||
body: (_ | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
|
||
(comment)+ @comment.around |
This file contains 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 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
id = "prisma" | ||
name = "Prisma" | ||
description = "Prisma support." | ||
version = "0.0.3" | ||
version = "0.0.4" | ||
schema_version = 1 | ||
authors = ["Matthew Gramigna <[email protected]>"] | ||
repository = "https://github.com/zed-industries/zed" | ||
|
This file contains 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,25 @@ | ||
(model_declaration | ||
(statement_block | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
|
||
(datasource_declaration | ||
(statement_block | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
|
||
(generator_declaration | ||
(statement_block | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
|
||
(enum_declaration | ||
(enum_block | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
|
||
(developer_comment)+ @comment.around |
This file contains 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 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
id = "proto" | ||
name = "Proto" | ||
description = "Protocol Buffers support." | ||
version = "0.2.0" | ||
version = "0.2.1" | ||
schema_version = 1 | ||
authors = ["Zed Industries <[email protected]>"] | ||
repository = "https://github.com/zed-industries/zed" | ||
|
This file contains 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,18 @@ | ||
(message (message_body | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
(enum (enum_body | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
(service | ||
"service" | ||
(_) | ||
"{" | ||
(_)* @class.inside | ||
"}") @class.around | ||
|
||
(rpc) @function.around | ||
|
||
(comment)+ @comment.around |
This file contains 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 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
id = "toml" | ||
name = "TOML" | ||
description = "TOML support." | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
schema_version = 1 | ||
authors = [ | ||
"Max Brunsfeld <[email protected]>", | ||
|
This file contains 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,6 @@ | ||
(comment)+ @comment | ||
(table "[" (_) "]" | ||
(_)* @class.inside) @class.around | ||
|
||
(table_array_element "[[" (_) "]]" | ||
(_)* @class.inside) @class.around |
This file contains 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 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
id = "zig" | ||
name = "Zig" | ||
description = "Zig support." | ||
version = "0.3.1" | ||
version = "0.3.2" | ||
schema_version = 1 | ||
authors = ["Allan Calix <[email protected]>"] | ||
repository = "https://github.com/zed-industries/zed" | ||
|
This file contains 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,27 @@ | ||
(function_declaration | ||
body: (_ | ||
"{" | ||
(_)* @function.inside | ||
"}")) @function.around | ||
|
||
(test_declaration | ||
(block | ||
"{" | ||
(_)* @function.inside | ||
"}")) @function.around | ||
|
||
(variable_declaration | ||
(struct_declaration | ||
"struct" | ||
"{" | ||
[(_) ","]* @class.inside | ||
"}")) @class.around | ||
|
||
(variable_declaration | ||
(enum_declaration | ||
"enum" | ||
"{" | ||
(_)* @class.inside | ||
"}")) @class.around | ||
|
||
(comment)+ @comment.around |
This file contains 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