-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfasta-clustal.sublime-syntax
119 lines (91 loc) · 1.94 KB
/
fasta-clustal.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
%YAML 1.2
---
# Fasta-Clustal syntax highlighting file
# Maintainer: bioSyntax.org
# Version: v0.1
name: fasta-clustal
# See http://www.sublimetext.com/docs/3/syntax.html
file_extensions: [fastaa,faa]
scope: text.fasta-clustal
contexts:
main:
#positive lookbehind to match a + and a new line to any characters right after it
#pushes it to quality
- match: "^>.*"
scope: string
# match amino acids
# Alanine (ALA)
- match: "[Aa]++"
scope: aaA
# Aspartate/Asparagine (ASX)
- match: "[Bb]++"
scope: aaB
# Cysteine (CYS)
- match: "[Cc]++"
scope: aaC
# Aspartate (ASP)
- match: "[Dd]++"
scope: aaD
# Glutamate (GLU)
- match: "[Ee]++"
scope: aaE
# Phenylalanine (PHE)
- match: "[Ff]++"
scope: aaF
# Glycine (GLY)
- match: "[Gg]++"
scope: aaG
# Histidine (HIS)
- match: "[Hh]++"
scope: aaH
# Isoleucine (ILE)
- match: "[Ii]++"
scope: aaI
# Lysine (LYS)
- match: "[Kk]++"
scope: aaK
# Leucine (LEU)
- match: "[Ll]++"
scope: aaL
# Methionine (MET)
- match: "[Mm]++"
scope: aaM
# Asparagine (ASN)
- match: "[Nn]++"
scope: aaN
# Proline (PRO)
- match: "[Pp]++"
scope: aaP
# Glutamine (GLN)
- match: "[Qq]++"
scope: aaQ
# Arginine (ARG)
- match: "[Rr]++"
scope: aaR
# Serine (SER)
- match: "[Ss]++"
scope: aaS
# Threonine (THE)
- match: "[Tt]++"
scope: aaT
# Valine (VAL)
- match: "[Vv]++"
scope: aaV
# Tryptophan (TRP)
- match: "[Ww]++"
scope: aaW
# Tyrosine (TYR)
- match: "[Yy]++"
scope: aaY
# Glutamate or Glutamine (GLX)
- match: "[Zz]++"
scope: aaZ
# any/unknown (X)
- match: "[Xx]++"
scope: zappo.X
# translation stop
- match: "\\*"
scope: comment
# indel
- match: "[-]++"
scope: comment