Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 921 Bytes

CONTRIBUTING.md

File metadata and controls

57 lines (46 loc) · 921 Bytes

Text objects

You can define text objects based on nodes of the grammar by adding queries in textobjects.scm. Each capture group can be declared as inner or outer.

@attribute.inner
@attribute.outer
@function.inner
@function.outer
@class.inner
@class.outer
@conditional.inner
@conditional.outer
@loop.inner
@loop.outer
@call.inner
@call.outer
@block.inner
@block.outer
@parameter.inner
@parameter.outer
@regex.inner
@regex.outer
@comment.inner
@comment.outer
@assignment.inner
@assignment.outer
@return.inner
@return.outer

# For LaTeX frames
@frame.inner
@frame.outer

Some nodes only have one type:

@statement.outer
@scopename.inner
@number.inner

Some nodes have more captures available:

@assignment.lhs
@assignment.rhs

Automatic README Generation

You don't have to update the support matrix in the README manually. It's generated by a CI job that runs on pushes to master.