mirror of
https://github.com/sharkdp/bat.git
synced 2025-03-01 00:08:27 +00:00
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
|
%YAML 1.2
|
||
|
---
|
||
|
# See http://www.sublimetext.com/docs/syntax.html
|
||
|
name: debsources
|
||
|
file_extensions:
|
||
|
- sources.list
|
||
|
scope: text.apt-source-list
|
||
|
contexts:
|
||
|
main:
|
||
|
- include: comments
|
||
|
- match: ^[\w-]+
|
||
|
scope: constant.language.apt-source-list
|
||
|
- match: \w+://\S+
|
||
|
scope: markup.underline.link.apt-source-list
|
||
|
push: distribution
|
||
|
- match: \bmain\b
|
||
|
scope: support.class.apt-source-list
|
||
|
- match: \buniverse\b
|
||
|
scope: support.constant.apt-source-list
|
||
|
- match: \brestricted\b
|
||
|
scope: storage.modifier.apt-source-list
|
||
|
- match: \bmultiverse\b
|
||
|
scope: keyword.other.apt-source-list
|
||
|
- match: '[\w-]+'
|
||
|
scope: constant.other.apt-source-list
|
||
|
|
||
|
comments:
|
||
|
- match: '#'
|
||
|
scope: punctuation.definition.comment.apt-source-list
|
||
|
push: line_comment
|
||
|
|
||
|
line_comment:
|
||
|
- meta_scope: comment.line.apt-source-list
|
||
|
- match: $
|
||
|
pop: true
|
||
|
|
||
|
distribution:
|
||
|
- match: \S+
|
||
|
scope: support.type.apt-source-list
|
||
|
pop: 1
|
||
|
- match: $
|
||
|
pop: 1
|