| 1 |
%YAML 1.2 |
| 2 |
--- |
| 3 |
# Fasta-Nucleotides syntax highlighting file |
| 4 |
# Maintainer: bioSyntax.org |
| 5 |
# Version: v0.1 |
| 6 |
name: fasta-nt |
| 7 |
# See http://www.sublimetext.com/docs/3/syntax.html |
| 8 |
file_extensions: [] |
| 9 |
scope: text.fasta-nt |
| 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 basic Nucleotides |
| 21 |
# match Adenosine |
| 22 |
- match: "[Aa]" |
| 23 |
scope: ntA |
| 24 |
|
| 25 |
# match Cytidine |
| 26 |
- match: "[Cc]" |
| 27 |
scope: ntC |
| 28 |
|
| 29 |
# match Guanine |
| 30 |
- match: "[Gg]" |
| 31 |
scope: ntG |
| 32 |
|
| 33 |
# match Thymidine |
| 34 |
- match: "[Tt]" |
| 35 |
scope: ntT |
| 36 |
|
| 37 |
# match Uridine |
| 38 |
- match: "[Uu]" |
| 39 |
scope: ntU |
| 40 |
|
| 41 |
# match aNy or unknown (X) |
| 42 |
- match: "[NnXx]" |
| 43 |
scope: ntN |
| 44 |
|
| 45 |
# indel |
| 46 |
- match: "[-]" |
| 47 |
scope: ntGap |