Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 'Updating/Downloading/Documenting/Blocking' to cargo build syntax #262

Merged
merged 9 commits into from
Jun 23, 2018
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
8 changes: 8 additions & 0 deletions Cargo.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ contexts:
scope: comment meta.command.cargo

# matches the build logs
- match: '^ {4}Blocking '
scope: markup.deleted.diff meta.blocking.cargo
- match: '^ {4}Updating '
scope: markup.inserted.diff meta.updating.cargo
- match: '^ {1}Downloading '
scope: markup.inserted.diff meta.downloading.cargo
- match: '^ {1}Documenting '
scope: markup.inserted.diff meta.documenting.cargo
- match: '^ {3}Compiling '
scope: markup.inserted.diff meta.compiling.cargo
- match: '^ {4}Finished '
Expand Down
11 changes: 11 additions & 0 deletions syntax_test_cargo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment meta.command.cargo

lib: lib_dice
Blocking waiting for file lock on build directory
# ^^^^^^^^ markup.deleted.diff meta.blocking.cargo
Updating registry `https://github.com/rust-lang/crates.io-index`
# ^^^^^^^^ markup.inserted.diff meta.updating.cargo

Documenting crate-name v0.2.5
#^^^^^^^^^^^ markup.inserted.diff meta.documenting.cargo

Downloading crate-name v0.2.5
#^^^^^^^^^^^ markup.inserted.diff meta.downloading.cargo

Compiling lib_dice v0.1.0 (file:///Users/daniel/Documents/GitHub/lib_dice)
# ^^^^^^^^^ markup.inserted.diff meta.compiling.cargo

Expand Down