| 1 |
%YAML 1.2 |
| 2 |
--- |
| 3 |
# Fasta-Clustal syntax highlighting file |
| 4 |
# Maintainer: bioSyntax.org |
| 5 |
# Version: v0.1 |
| 6 |
name: fasta-clustal |
| 7 |
# See http://www.sublimetext.com/docs/3/syntax.html |
| 8 |
file_extensions: [fastaa,faa] |
| 9 |
scope: text.fasta-clustal |
| 10 |
|
| 11 |
|
| 12 |
contexts: |
| 13 |
main: |
| 14 |
|
| 15 |
#positive lookbehind to match a + and a new line to any characters right after it |
| 16 |
#pushes it to quality |
| 17 |
- match: "^>.*" |
| 18 |
scope: string |
| 19 |
|
| 20 |
# match amino acids |
| 21 |
# Alanine (ALA) |
| 22 |
- match: "[Aa]++" |
| 23 |
scope: aaA |
| 24 |
|
| 25 |
# Aspartate/Asparagine (ASX) |
| 26 |
- match: "[Bb]++" |
| 27 |
scope: aaB |
| 28 |
|
| 29 |
# Cysteine (CYS) |
| 30 |
- match: "[Cc]++" |
| 31 |
scope: aaC |
| 32 |
|
| 33 |
# Aspartate (ASP) |
| 34 |
- match: "[Dd]++" |
| 35 |
scope: aaD |
| 36 |
|
| 37 |
# Glutamate (GLU) |
| 38 |
- match: "[Ee]++" |
| 39 |
scope: aaE |
| 40 |
|
| 41 |
# Phenylalanine (PHE) |
| 42 |
- match: "[Ff]++" |
| 43 |
scope: aaF |
| 44 |
|
| 45 |
# Glycine (GLY) |
| 46 |
- match: "[Gg]++" |
| 47 |
scope: aaG |
| 48 |
|
| 49 |
# Histidine (HIS) |
| 50 |
- match: "[Hh]++" |
| 51 |
scope: aaH |
| 52 |
|
| 53 |
# Isoleucine (ILE) |
| 54 |
- match: "[Ii]++" |
| 55 |
scope: aaI |
| 56 |
|
| 57 |
# Lysine (LYS) |
| 58 |
- match: "[Kk]++" |
| 59 |
scope: aaK |
| 60 |
|
| 61 |
# Leucine (LEU) |
| 62 |
- match: "[Ll]++" |
| 63 |
scope: aaL |
| 64 |
|
| 65 |
# Methionine (MET) |
| 66 |
- match: "[Mm]++" |
| 67 |
scope: aaM |
| 68 |
|
| 69 |
# Asparagine (ASN) |
| 70 |
- match: "[Nn]++" |
| 71 |
scope: aaN |
| 72 |
|
| 73 |
# Proline (PRO) |
| 74 |
- match: "[Pp]++" |
| 75 |
scope: aaP |
| 76 |
|
| 77 |
# Glutamine (GLN) |
| 78 |
- match: "[Qq]++" |
| 79 |
scope: aaQ |
| 80 |
|
| 81 |
# Arginine (ARG) |
| 82 |
- match: "[Rr]++" |
| 83 |
scope: aaR |
| 84 |
|
| 85 |
# Serine (SER) |
| 86 |
- match: "[Ss]++" |
| 87 |
scope: aaS |
| 88 |
|
| 89 |
# Threonine (THE) |
| 90 |
- match: "[Tt]++" |
| 91 |
scope: aaT |
| 92 |
|
| 93 |
# Valine (VAL) |
| 94 |
- match: "[Vv]++" |
| 95 |
scope: aaV |
| 96 |
|
| 97 |
# Tryptophan (TRP) |
| 98 |
- match: "[Ww]++" |
| 99 |
scope: aaW |
| 100 |
|
| 101 |
# Tyrosine (TYR) |
| 102 |
- match: "[Yy]++" |
| 103 |
scope: aaY |
| 104 |
|
| 105 |
# Glutamate or Glutamine (GLX) |
| 106 |
- match: "[Zz]++" |
| 107 |
scope: aaZ |
| 108 |
|
| 109 |
# any/unknown (X) |
| 110 |
- match: "[Xx]++" |
| 111 |
scope: zappo.X |
| 112 |
|
| 113 |
# translation stop |
| 114 |
- match: "\\*" |
| 115 |
scope: comment |
| 116 |
|
| 117 |
# indel |
| 118 |
- match: "[-]++" |
| 119 |
scope: comment |