Update for compatibility with the latest version of bibop

This commit is contained in:
Anton Novojilov 2021-11-19 01:26:22 +03:00
commit 4798c3f2de
3 changed files with 13 additions and 5 deletions

View file

@ -20,9 +20,9 @@
"background": "#141414",
"caret": "#4DBAE2",
"gutter": "#111111",
"gutter_foreground": "#555555",
"gutter_foreground": "#444444",
"invisibles": "color(#FFFFFF alpha(0.30))",
"line_highlight": "color(#FFFFFF alpha(0.15))",
"line_highlight": "color(#FFFFFF alpha(0.10))",
"line_diff_width": "2",
"line_diff_added": "color(#8AE234 alpha(0.5))",
"line_diff_modified": "color(#D6BD0A alpha(0.5))",
@ -387,6 +387,12 @@
"foreground": "#BA4C4C",
"font_style": "bold"
},
{
"name": "Bibop Recipe Command Group Sign",
"scope": "bibop.command.group-sign",
"foreground": "#A33B2C",
"font_style": ""
},
{
"scope": "entity.name.filename",
"foreground": "#DBC33F"

View file

@ -43,6 +43,7 @@
{ "trigger": "remove\t— Removes file or directory", "contents": "remove ${1:path}" },
{ "trigger": "chmod\t— Changes file mode bits", "contents": "chmod ${1:target} ${2:mode}" },
{ "trigger": "truncate\t— Changes the size of the file to zero", "contents": "truncate ${1:target}" },
{ "trigger": "cleanup\t— Removes all directories and files in the given directory", "contents": "cleanup ${1:dir}" },
{ "trigger": "backup\t— Creates backup for the file", "contents": "backup ${1:path}" },
{ "trigger": "backup-restore\t— Restore file from backup", "contents": "backup-restore ${1:path}" },

View file

@ -67,11 +67,12 @@ contexts:
scope: constant.numeric.integer.decimal.bibop
commands:
- match: '^(command):*([a-z0-9]*)'
- match: '^([+]?)(command):*([a-z0-9]*)'
captures:
0: support.function
1: meta.function
2: meta.function.tag
1: bibop.command.group-sign
2: meta.function
3: meta.function.tag
actions:
- match: '^( |\t)[a-z-]+'