| 1 |
%YAML 1.2 |
| 2 |
--- |
| 3 |
# Fasta Index (faidx) syntax highlighting file |
| 4 |
# Maintainer: bioSyntax.org |
| 5 |
# Version: v0.1 |
| 6 |
name: faidx |
| 7 |
# See http://www.sublimetext.com/docs/3/syntax.html |
| 8 |
file_extensions: [fai,fai] |
| 9 |
scope: source.faidx |
| 10 |
|
| 11 |
# Fasta Index Filetype Description |
| 12 |
# NAME Name of this reference sequence |
| 13 |
# LENGTH Total length of this reference sequence, in bases |
| 14 |
# OFFSET Offset within the FASTA file of this sequence's first base |
| 15 |
# LINEBASES The number of bases on each line |
| 16 |
# LINEWIDTH The number of bytes in each line, including the newline |
| 17 |
|
| 18 |
contexts: |
| 19 |
main: |
| 20 |
# COLUMN 1 |
| 21 |
- match: '^[\S]*\t' |
| 22 |
scope: chr.faidx |
| 23 |
push: contig.length |
| 24 |
|
| 25 |
# COLUMN 3 |
| 26 |
- match: '(?<=\t)[\S]*\t' |
| 27 |
scope: numeric.faidx |
| 28 |
push: genomic.offset |
| 29 |
|
| 30 |
# COLUMN 5 |
| 31 |
- match: '[\S]*$' |
| 32 |
scope: comment.faidx |
| 33 |
|
| 34 |
contig.length: |
| 35 |
# COLUMN 2 |
| 36 |
- match: '[\S]*' |
| 37 |
scope: chrStart.faidx |
| 38 |
- match: \t |
| 39 |
pop: true |
| 40 |
|
| 41 |
genomic.offset: |
| 42 |
# COLUMN 4 |
| 43 |
- match: '[\S]*' |
| 44 |
scope: comment.faidx |
| 45 |
- match: \t |
| 46 |
pop: true |