Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export default grammar({
$.throw_statement,
$.autocmd_statement,
$.silent_statement,
$.tab_statement,
$.vertical_statement,
$.belowright_statement,
$.aboveleft_statement,
Expand Down Expand Up @@ -587,6 +588,7 @@ export default grammar({
execute_statement: ($) => command($, "execute", repeat1($._expression)),

silent_statement: ($) => command_modifier($, "silent", true),
tab_statement: ($) => command_modifier($, "tab", false),
vertical_statement: ($) => command_modifier($, "vertical", false),
topleft_statement: ($) => command_modifier($, "topleft", false),
botright_statement: ($) => command_modifier($, "botright", false),
Expand Down
1 change: 1 addition & 0 deletions queries/vim/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
"cnext"
"cprevious"
"cNext"
"tab"
"vertical"
"leftabove"
"aboveleft"
Expand Down
1 change: 1 addition & 0 deletions rules/keywords.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export function keywords($) {
$._call,
$._break,
$._continue,
$._tab,
$._vertical,
$._leftabove,
$._aboveleft,
Expand Down
26 changes: 26 additions & 0 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 21 additions & 15 deletions src/keywords.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,22 @@ typedef enum {
CALL = 77,
BREAK = 78,
CONTINUE = 79,
VERTICAL = 80,
LEFTABOVE = 81,
ABOVELEFT = 82,
RIGHTBELOWS = 83,
BELOWRIGHT = 84,
TOPLEFT = 85,
BOTRIGHT = 86,
EDIT = 87,
ENEW = 88,
FIND = 89,
EX = 90,
VISUAL = 91,
VIEW = 92,
EVAL = 93,
SUBSTITUTE = 94,
TAB = 80,
VERTICAL = 81,
LEFTABOVE = 82,
ABOVELEFT = 83,
RIGHTBELOWS = 84,
BELOWRIGHT = 85,
TOPLEFT = 86,
BOTRIGHT = 87,
EDIT = 88,
ENEW = 89,
FIND = 90,
EX = 91,
VISUAL = 92,
VIEW = 93,
EVAL = 94,
SUBSTITUTE = 95,
UNKNOWN_COMMAND
} kwid;

Expand Down Expand Up @@ -498,6 +499,11 @@ keyword keywords[] = {
.opt = "tinue",
.ignore_comments_after = false
},
[TAB] = {
.mandat = "tab",
.opt = "",
.ignore_comments_after = false
},
[VERTICAL] = {
.mandat = "vert",
.opt = "ical",
Expand Down
Loading