diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-09-20 23:20:37 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2020-10-04 14:20:20 +0200 |
| commit | 3362f4519671da29b437c48a7c54bec8550a4f9d (patch) | |
| tree | d43fa3815b25e4a9178b4d15bfa134d4c13839b6 /queries/go | |
| parent | Merge pull request #487 from steelsojka/remove-refactor (diff) | |
| download | nvim-treesitter-3362f4519671da29b437c48a7c54bec8550a4f9d.tar nvim-treesitter-3362f4519671da29b437c48a7c54bec8550a4f9d.tar.gz nvim-treesitter-3362f4519671da29b437c48a7c54bec8550a4f9d.tar.bz2 nvim-treesitter-3362f4519671da29b437c48a7c54bec8550a4f9d.tar.lz nvim-treesitter-3362f4519671da29b437c48a7c54bec8550a4f9d.tar.xz nvim-treesitter-3362f4519671da29b437c48a7c54bec8550a4f9d.tar.zst nvim-treesitter-3362f4519671da29b437c48a7c54bec8550a4f9d.zip | |
Remove textobjects module
Diffstat (limited to 'queries/go')
| -rw-r--r-- | queries/go/textobjects.scm | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/queries/go/textobjects.scm b/queries/go/textobjects.scm deleted file mode 100644 index 0bc56f1df..000000000 --- a/queries/go/textobjects.scm +++ /dev/null @@ -1,50 +0,0 @@ -;; function textobject -(function_declaration - body: (block)? @function.inner) @function.outer - -;; function literals -(func_literal - (_)? @function.inner) @function.outer - -;; method as function textobject -(method_declaration - body: (block)? @function.inner) @function.outer - -;; struct and interface declaration as class textobject? -(type_declaration - (type_spec (type_identifier) (struct_type (field_declaration_list (_)?) @class.inner))) @class.outer - -(type_declaration - (type_spec (type_identifier) (interface_type (method_spec_list (_)?) @class.inner))) @class.outer - -;; struct literals as class textobject -(composite_literal - (type_identifier)? - (struct_type (_))? - (literal_value (_)) @class.inner) @class.outer - -;; conditionals -(if_statement - alternative: (_ (_) @conditional.inner)?) @conditional.outer - -(if_statement - consequence: (block)? @conditional.inner) - -(if_statement - condition: (_) @conditional.inner) - -;; loops -(for_statement - body: (block)? @loop.inner) @loop.outer - -;; blocks -(_ (block) @block.inner) @block.outer - -;; statements -(block (_) @statement.outer) - -;; comments -(comment) @comment.outer - -;; calls -(call_expression (_)? @call.inner) @call.outer |
