Generate Sublime Text syntax test assertions for the current cursor position.
Install GenerateSyntaxTestAssertions via Package Control.
| Command | Description |
|---|---|
| Generate Syntax Test Assertions | Generates syntax test assertions and inserts them at the cursor. |
Put your cursor on a line that you want to generate syntax test assertions for and run the command.
Command Palette → Generate Syntax Test Assertions
<?php
declare(strict_types=1);
// ^^^^ embedding.php text.html.php meta.embedded.php source.php.embedded.html keyword.declaration.php
// ^ embedding.php text.html.php meta.embedded.php source.php.embedded.html meta.group.php punctuation.section.group.begin.php
// ^^^^^^^^^^^^ embedding.php text.html.php meta.embedded.php source.php.embedded.html meta.group.php constant.other.php
// ^ embedding.php text.html.php meta.embedded.php source.php.embedded.html meta.group.php keyword.operator.assignment.php
// ^ embedding.php text.html.php meta.embedded.php source.php.embedded.html meta.group.php meta.number.integer.decimal.php constant.numeric.value.php
// ^ embedding.php text.html.php meta.embedded.php source.php.embedded.html meta.group.php punctuation.section.group.end.php
// ^ embedding.php text.html.php meta.embedded.php source.php.embedded.html punctuation.terminator.statement.phpThe generator inserts test assertions for all points on the line. Adjust as needed. See Sublime Text Syntax Definition Documentation.
Released under the GPL-3.0-or-later License.