18 lines
484 B
YAML
18 lines
484 B
YAML
%YAML 1.2
|
|
---
|
|
name: Packages
|
|
file_extensions: [pkglist]
|
|
scope: source.packages
|
|
contexts:
|
|
main:
|
|
- match: \N[0-9a-zA-Z.\-_\+]+\-\d+|\b(?<!\.)\d(?!\.)\b
|
|
scope: version
|
|
|
|
# Match package names (assuming they are words with letters, numbers, hyphens, and underscores)
|
|
- match: \b[a-z][a-z0-9\-_\.]+\b
|
|
scope: keyword
|
|
|
|
# Match file sizes with different units (KiB, MiB, GiB, TiB, etc.)
|
|
- match: \d+(\.\d+)?\s+(KiB|MiB|GiB|TiB)
|
|
scope: constant.numeric
|
|
|