mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-28 15:58:31 +00:00
commit
4998f58847
@ -21,6 +21,7 @@
|
|||||||
- Improve (Sys)log error highlighting, see #3205 (@keith-hall)
|
- Improve (Sys)log error highlighting, see #3205 (@keith-hall)
|
||||||
- Map `ndjson` extension to JSON syntax, see #3209 (@keith-hall)
|
- Map `ndjson` extension to JSON syntax, see #3209 (@keith-hall)
|
||||||
- Map files with `csproj`, `vbproj`, `props` and `targets` extensions to XML syntax, see #3213 (@keith-hall)
|
- Map files with `csproj`, `vbproj`, `props` and `targets` extensions to XML syntax, see #3213 (@keith-hall)
|
||||||
|
- Add debsources syntax to highlight `/etc/apt/sources.list` files, see #3215 (@keith-hall)
|
||||||
|
|
||||||
## Themes
|
## Themes
|
||||||
|
|
||||||
|
42
assets/syntaxes/02_Extra/apt-source-list.sublime-syntax
vendored
Normal file
42
assets/syntaxes/02_Extra/apt-source-list.sublime-syntax
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
%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
|
15
tests/syntax-tests/highlighted/debsources/sources.list
vendored
Normal file
15
tests/syntax-tests/highlighted/debsources/sources.list
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to[0m
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m newer versions of the distribution.[0m
|
||||||
|
|
||||||
|
[38;2;190;132;255mdeb[0m[38;2;248;248;242m [0m[4;38;2;166;226;46mhttps://deb.debian.org/debian[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mbookworm[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mmain[0m[38;2;248;248;242m [0m[38;2;190;132;255mnon-free-firmware[0m
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94mdeb-src https://deb.debian.org/debian bookworm main non-free-firmware[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m# Major bug fix updates produced after the final release of the[0m
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m# distribution.[0m
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m deb-src http://lt.archive.ubuntu.com/ubuntu/ xenial-updates main restricted[0m
|
||||||
|
|
||||||
|
[38;2;190;132;255mdeb[0m[38;2;248;248;242m [0m[4;38;2;166;226;46mhttps://security.debian.org/debian-security[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mbookworm-security[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mmain[0m[38;2;248;248;242m [0m[38;2;190;132;255mnon-free-firmware[0m
|
||||||
|
[38;2;190;132;255mdeb-src[0m[38;2;248;248;242m [0m[4;38;2;166;226;46mhttps://security.debian.org/debian-security[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mbookworm-security[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mmain[0m[38;2;248;248;242m [0m[38;2;190;132;255mnon-free-firmware[0m
|
||||||
|
|
||||||
|
[38;2;190;132;255mdeb[0m[38;2;248;248;242m [0m[4;38;2;166;226;46mhttps://deb.debian.org/debian[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mbookworm-updates[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mmain[0m[38;2;248;248;242m [0m[38;2;190;132;255mnon-free-firmware[0m
|
||||||
|
[38;2;190;132;255mdeb-src[0m[38;2;248;248;242m [0m[4;38;2;166;226;46mhttps://deb.debian.org/debian[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mbookworm-updates[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mmain[0m[38;2;248;248;242m [0m[38;2;190;132;255mnon-free-firmware[0m
|
15
tests/syntax-tests/source/debsources/sources.list
vendored
Normal file
15
tests/syntax-tests/source/debsources/sources.list
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
|
||||||
|
# newer versions of the distribution.
|
||||||
|
|
||||||
|
deb https://deb.debian.org/debian bookworm main non-free-firmware
|
||||||
|
#deb-src https://deb.debian.org/debian bookworm main non-free-firmware
|
||||||
|
|
||||||
|
## Major bug fix updates produced after the final release of the
|
||||||
|
## distribution.
|
||||||
|
# deb-src http://lt.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
|
||||||
|
|
||||||
|
deb https://security.debian.org/debian-security bookworm-security main non-free-firmware
|
||||||
|
deb-src https://security.debian.org/debian-security bookworm-security main non-free-firmware
|
||||||
|
|
||||||
|
deb https://deb.debian.org/debian bookworm-updates main non-free-firmware
|
||||||
|
deb-src https://deb.debian.org/debian bookworm-updates main non-free-firmware
|
Loading…
x
Reference in New Issue
Block a user