Ruby language module for Textadept.
The ruby module for Textadept.
It provides utilities for editing Ruby code.
WARNING: this module is deprecated. It will no longer work in Textadept 12.0.
Shift+Enter
(⇧↩
| S-Enter
)if
, while
, for
, etc. control structure with end
._M.ruby
_M.ruby.toggle_block
()Toggles between { ... }
and do ... end
Ruby blocks.
If the caret is inside a { ... }
single-line block, that block is converted to a multiple-linedo .. end
block. If the caret is on a line that contains single-line do ... end
block, that
block is converted to a single-line { ... }
block. If the caret is inside a multiple-linedo ... end
block, that block is converted to a single-line { ... }
block with all newlines
replaced by a space. Indentation is important. The do
and end
keywords must be on lines
with the same level of indentation to toggle correctly.
_M.ruby.try_to_autocomplete_end
()Tries to autocomplete Ruby’s end
keyword for control structures like if
, while
, for
, etc.
See also:
_M.ruby
_M.ruby.control_structure_patterns
Patterns for auto end
completion for control structures.
See also:
_M.ruby.expr_types
Map of expression patterns to their types.
Expressions are expected to match after the ‘=’ sign of a statement.
_M.ruby.tags
List of “fake” ctags files to use for autocompletion.
In addition to the normal ctags kinds for Ruby, the kind ‘C’ is recognized as a constant and
‘a’ as an attribute.