mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-18 20:10:13 +02:00
Add regression testing for the custom assets functionality (#1829)
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
This commit is contained in:
21
tests/syntax-tests/BatTestCustomAssets.sublime-syntax
Normal file
21
tests/syntax-tests/BatTestCustomAssets.sublime-syntax
Normal file
@@ -0,0 +1,21 @@
|
||||
%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
|
Reference in New Issue
Block a user