mirror of
https://github.com/sharkdp/bat.git
synced 2025-06-22 00:05:45 +01:00
.github
assets
diagnostics
doc
examples
src
tests
benchmarks
examples
mocked-pagers
scripts
snapshots
syntax-tests
highlighted
source
BatTestCustomAssets.sublime-syntax
compare_highlighted_versions.py
create_highlighted_versions.py
regression_test.sh
test_custom_assets.sh
update.sh
tester
utils
.gitattributes
assets.rs
integration_tests.rs
no_duplicate_extensions.rs
snapshot_tests.rs
system_wide_config.rs
test_pretty_printer.rs
.gitignore
.gitmodules
CHANGELOG.md
CONTRIBUTING.md
Cargo.lock
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
NOTICE
README.md
build.rs
rustfmt.toml
The test is following the same steps regular users are instructed to follow: https://github.com/sharkdp/bat/blob/master/README.md#adding-new-syntaxes--language-definitions
22 lines
616 B
YAML
22 lines
616 B
YAML
%YAML 1.2
|
|
---
|
|
# http://www.sublimetext.com/docs/3/syntax.html
|
|
name: BatTestCustomAssets
|
|
file_extensions:
|
|
- battestcustomassets
|
|
scope: source.battestcustomassets
|
|
|
|
# This syntax is used to test if custom assets work with bat.
|
|
# The way it works is that this syntax is only allowed to be included with
|
|
# custom assets. That way it is easy to test if custom assets are used (and works)
|
|
# or not.
|
|
#
|
|
# This syntax is based on CpuInfo.sublime-syntax.
|
|
|
|
contexts:
|
|
main:
|
|
- match: '^([^:]+)\w*:\w*(.*)$'
|
|
captures:
|
|
1: keyword.other.battestcustomassets-key
|
|
2: string.other.battestcustomassets-value
|