Add text objects to extensions (#21488)
Release Notes: - Adds textobject support to erlang, haskell, lua, php, prisma, proto, toml, and zig
This commit is contained in:
parent
463c99b503
commit
1fccda7b8d
26 changed files with 170 additions and 25 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "zed_proto"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
license = "Apache-2.0"
|
||||
|
|
|
@ -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 <support@zed.dev>"]
|
||||
repository = "https://github.com/zed-industries/zed"
|
||||
|
|
18
extensions/proto/languages/proto/textobjects.scm
Normal file
18
extensions/proto/languages/proto/textobjects.scm
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue