| 1 |
%YAML 1.2 |
| 2 |
--- |
| 3 |
# Clustal syntax highlighting file |
| 4 |
# Maintainer: bioSyntax.org |
| 5 |
# Version: v0.1 |
| 6 |
name: clustal |
| 7 |
# See http://www.sublimetext.com/docs/3/syntax.html |
| 8 |
file_extensions: [clustal,aln] |
| 9 |
scope: text.clustal |
| 10 |
|
| 11 |
contexts: |
| 12 |
main: |
| 13 |
# Main Identifier |
| 14 |
- match: "^CLUSTAL.*" |
| 15 |
scope: comment |
| 16 |
|
| 17 |
# Sequence Identifier |
| 18 |
- match: "/[0-9]*-[0-9]*" #Optional sequence range |
| 19 |
scope: chrStart |
| 20 |
|
| 21 |
- match: "^[\\w\\.\\-\\_]*(?=[/ ])" #Spaces not allowed in seqname |
| 22 |
scope: string |
| 23 |
|
| 24 |
# Optional trailing numeric |
| 25 |
- match: "[0-9]+$" |
| 26 |
scope: chrStart |
| 27 |
|
| 28 |
# Optional: Conservation |
| 29 |
- match: "\\*++" |
| 30 |
scope: null |
| 31 |
|
| 32 |
- match: "\\:++" |
| 33 |
scope: gradbw5 |
| 34 |
|
| 35 |
- match: "\\.++" |
| 36 |
scope: gradbw5 |
| 37 |
|
| 38 |
|
| 39 |
# match Adenosine |
| 40 |
- match: "[Aa]++" |
| 41 |
scope: ntA |
| 42 |
# match Cytidine |
| 43 |
- match: "[Cc]++" |
| 44 |
scope: ntC |
| 45 |
# match Guanine |
| 46 |
- match: "[Gg]++" |
| 47 |
scope: ntG |
| 48 |
# match Thymidine/Uridine |
| 49 |
- match: "[TtUu]++" |
| 50 |
scope: ntT |
| 51 |
# aNy or unknown (X) |
| 52 |
- match: "[NnXx]++" |
| 53 |
scope: ntN |
| 54 |
# indel |
| 55 |
- match: "[-]++" |
| 56 |
scope: ntGap |
| 57 |
|
| 58 |
# Match Extended Nucleotides |
| 59 |
- match: "[Rr]++" |
| 60 |
scope: ntR |
| 61 |
- match: "[Yy]++" |
| 62 |
scope: ntY |
| 63 |
- match: "[Ss]++" |
| 64 |
scope: ntS |
| 65 |
- match: "[Ww]++" |
| 66 |
scope: ntW |
| 67 |
- match: "[Mm]++" |
| 68 |
scope: ntM |
| 69 |
- match: "[Kk]++" |
| 70 |
scope: ntK |
| 71 |
- match: "[Dd]++" |
| 72 |
scope: ntD |
| 73 |
- match: "[Bb]++" |
| 74 |
scope: ntB |
| 75 |
- match: "[Vv]++" |
| 76 |
scope: ntV |
| 77 |
- match: "[Hh]++" |
| 78 |
scope: ntH |