-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfasta.sublime-syntax
50 lines (47 loc) · 998 Bytes
/
fasta.sublime-syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
%YAML 1.2
---
name: FastA
file_extensions:
- fa
- fasta
- fna
- faa
- fas
- ffn
scope: source.fasta
first_line_match: ^>.*
contexts:
main:
- match: '^>'
scope: keyword.operator.header.fasta
push: seqid
- match: '\*$'
scope: comment.terminal.fasta
- match: '.'
scope: text.sequence.fasta
seqid:
- match: '\n'
scope: meta.separator.fasta
pop: true
- match: '[ \t]'
scope: meta.separator.fasta
set: description
- match: '.'
scope: entity.name.seqid.fasta
description:
- match: '\n'
scope: meta.separator.fasta
pop: true
- match: '='
scope: keyword.operator.assignment.fasta
- match: '\['
scope: keyword.declaration.variable.taxa.fasta
set: taxa
- match: '.'
scope: string.desc.fasta
taxa:
- match: '\]'
scope: keyword.declaration.variable.taxa.fasta
pop: true
- match: '.'
scope: keyword.declaration.variable.taxa.fasta