Debian Codegraph @

etc/syntax/reference-files/flow.cylc

raw
1 # SYNTAX numbering matches the table in https://github.com/cylc/cylc/issues/2752
2
3 # SYNTAX: 1.
4
5 # SYNTAX: 1.1
6 # keys and values should display differently
7 # sections should be highlighted
8 [a]
9 b = c
10 [[d]]
11 -j = k # keys can have hyphens
12 j j = k # and spaces
13 g = h=i # values can have equals
14 e = "f" # and quotes
15 e = "${HOME} `$HOME`" # and funny characters
16 [[l, m, n]] # sections can contain commas
17 [[[o]]] # sections can be deeply nested
18
19 # SYNTAX: 1.2
20 l=m # no comment
21
22 # SYNTAX: 1.3
23 # display should be consistent throughout multi-line string
24 n = """foo"""
25 n = """
26 foo
27 bar
28 baz
29 """
30
31 # SYNTAX: 1.4
32 # highlighting should be consistent with the following examples
33 %include bar
34 %include "bar/baz"
35 %include "baz/bo ol"
36
37
38 # SYNTAX: 2.
39 R1 = """
40 # settings should not be highlighted here
41 a = b
42
43 # SYNTAX: 2.1
44 # tasks and dependency arrows should display differently
45 foo => bar
46 foo=>bar
47
48 # chaining should work in-line and across lines ending in `=>` or `|`
49 foo => bar => baz
50 foo => bar =>
51 pub => baz
52 foo => \
53 bar => \
54 pub
55
56 # SYNTAX: 2.2
57 # comment highlighting should be un-affected
58 foo => bar # pub
59 foo => bar # pub => baz
60
61 # SYNTAX: 2.3
62 # &|() should be highlighted
63 # !foo should be highlighted
64 # ! foo should NOT be highlighted
65 foo | bar & baz => pub & qux
66 (foo | bar) & baz => (pub & qux)
67 foo => !foo & bar
68 ! foo => bar
69
70 # SYNTAX: 2.4
71 # text inside <> should be highlighted
72 # optionally workflow / task could be highlighted
73 <other.workflow::foo> => foo
74 foo & <other.workflow::task_bar> => baz
75
76 # SYNTAX: 2.5
77 # @x should be highlighted
78 @wall_clock => foo
79 foo & @myxtrig1 => bar
80
81 # SYNTAX: 2.6
82 # text inside <> should be highlighted
83 foo<x> => bar<x>
84 <x> => <y>
85
86 # SYNTAX: 2.7
87 # text inside <> should be highlighted
88 # optionally +- could be highlighted
89 <x-1> => <x+1>
90 <x - 1> => <x + 1>
91
92 # SYNTAX: 2.8
93 # text inside <> should be highlighted
94 # optionally = could be highlighted
95 a<x=1> => a<x=2>
96 a<x = 1> => a<x = 2>
97
98 # SYNTAX: 2.9
99 # qualifier should be highlighted, whole and nothing but
100 foo:succeed => bar
101 pub & foo:fail => bar
102 FOO:succeed-all => bar
103 foo:custom_a => bar
104
105 # SYNTAX: 2.10
106 # inter-cycle dep should be highlighted
107 # integer intervals:
108 foo[P1] => bar
109 foo[-P1] => bar
110 # iso8601 intervals:
111 foo[P1D] => bar
112 foo[-P1D] => bar
113 foo[P1DT1M] => bar
114 foo[PT1M] => bar
115 foo[-P1Y1M1DT1H1M1S] => bar
116 foo[^] => bar
117 # integer points:
118 foo[123] => bar
119 foo[-123] => bar
120 # iso8601 points:
121 foo[20000000T0000] => bar
122 foo[2000-01-01T00:00] => bar
123 foo[2000-01-01T00] => bar
124 foo[2000-01-01] => bar
125 foo[2000-00] => bar
126 foo[2000] => bar
127 # arithmetic:
128 foo[^+P1D]
129 foo[^+P1]
130 foo[20000101T0000+P1D]
131 foo[2+P1]
132 # optionally invalid syntax can be marked as erroneous:
133 foo[2000T00] => bar # corrupted date
134 foo[2000-01-01T0000] => bar # mixed long and short syntax (-:)
135 foo[20000101T00:00] => bar # mixed long and short syntax (-:)
136 foo[P1D1Y] => bar # missing T separator
137 foo[P1H] => bar # missing T separator
138 foo[PT1M1H] => bar # incorrect component ordering
139 foo[01T00] => bar # truncated date
140 foo[T00] => bar # truncated date
141
142 # SYNTAX: 2.10
143 # the "?" and optionally the qualifier should be highlighted
144 foo? => bar
145 foo:succeeded? => bar
146 """
147
148 # graph strings should not highlight here, this should display as a setting:
149 foo => bar => baz => quz