-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathclustal.sublime-syntax
78 lines (68 loc) · 1.49 KB
/
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
%YAML 1.2
---
# Clustal syntax highlighting file
# Maintainer: bioSyntax.org
# Version: v0.1
name: clustal
# See http://www.sublimetext.com/docs/3/syntax.html
file_extensions: [clustal,aln]
scope: text.clustal
contexts:
main:
# Main Identifier
- match: "^CLUSTAL.*"
scope: comment
# Sequence Identifier
- match: "/[0-9]*-[0-9]*" #Optional sequence range
scope: chrStart
- match: "^[\\w\\.\\-\\_]*(?=[/ ])" #Spaces not allowed in seqname
scope: string
# Optional trailing numeric
- match: "[0-9]+$"
scope: chrStart
# Optional: Conservation
- match: "\\*++"
scope: null
- match: "\\:++"
scope: gradbw5
- match: "\\.++"
scope: gradbw5
# match Adenosine
- match: "[Aa]++"
scope: ntA
# match Cytidine
- match: "[Cc]++"
scope: ntC
# match Guanine
- match: "[Gg]++"
scope: ntG
# match Thymidine/Uridine
- match: "[TtUu]++"
scope: ntT
# aNy or unknown (X)
- match: "[NnXx]++"
scope: ntN
# indel
- match: "[-]++"
scope: ntGap
# Match Extended Nucleotides
- match: "[Rr]++"
scope: ntR
- match: "[Yy]++"
scope: ntY
- match: "[Ss]++"
scope: ntS
- match: "[Ww]++"
scope: ntW
- match: "[Mm]++"
scope: ntM
- match: "[Kk]++"
scope: ntK
- match: "[Dd]++"
scope: ntD
- match: "[Bb]++"
scope: ntB
- match: "[Vv]++"
scope: ntV
- match: "[Hh]++"
scope: ntH