Debian Codegraph @

sublime/fastq.sublime-syntax

raw
1 %YAML 1.2
2 ---
3 # Fastq syntax highlighting file
4 # Maintainer: bioSyntax.org
5 # Version: v0.1
6 name: fastq
7 file_extensions: [fastq, fq]
8 scope: source.fastq
9 # See http://www.sublimetext.com/docs/3/syntax.html
10
11 contexts:
12 main:
13 # Lines which start with "@" are headers
14 - match: "^@.*$"
15 scope: header
16 push: nt
17
18 nt:
19 # Nucleotide sequence highlighting
20 - clear_scopes: true
21 - match: "[Aa]+"
22 scope: ntA
23 - match: "[Gg]+"
24 scope: ntG
25 - match: "[Cc]+"
26 scope: ntC
27 - match: "[Tt]+"
28 scope: ntT
29 - match: "[Uu]+"
30 scope: ntU
31 - match: '^(?=\+)'
32 set: commentLine
33
34 commentLine:
35 # Match the comment line "+"
36 - clear_scopes: true
37 - meta_scope: comment
38 - match: "\n"
39 set: quality
40
41 quality:
42 # Match PHRED-quality and graident-color
43 - clear_scopes: true
44 - match: "[\\!\\#\\$\"]"
45 scope: gradbw0
46 - match: "[%\\&\\'\\(]"
47 scope: gradbw1
48 - match: "[\\)\\*\\+\\,]"
49 scope: gradbw2
50 - match: "[\\-\\.\\/0]"
51 scope: gradbw3
52 - match: "[1-4]"
53 scope: gradbw4
54 - match: "[5-8]"
55 scope: gradbw5
56 - match: "[9\\:\\;\\<]"
57 scope: gradbw6
58 - match: "[\\=\\>\\?\\@]"
59 scope: gradbw7
60 - match: "[ABCD]"
61 scope: gradbw8
62 - match: "[EFGHIJ]"
63 scope: gradbw9
64 - match: "[K-Z\\[\\\\]"
65 scope: gradbw10
66 - match: "[\\]\\^\\_\\`a-f]"
67 scope: gradbw10
68 - match: "[g-p]"
69 scope: gradbw10
70 - match: "[q-z]"
71 scope: gradbw10
72 - match: "[\\{\\|\\}\\~]"
73 scope: gradbw10
74 - match: "\n"
75 set: main
76
77 # # Complete Phred Scale
78 # #!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
79 # #
80 # # PHRED Scale - Illumina 1.8 Scale (Implemented)
81 # # 0.2.......................26...31.......41 [Score]
82 # # !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKL [ASCII]
83 # # | | | | | | | | | | | ...