| 1 |
# How to use this file: |
| 2 |
# cylc get-resources syntax/cylc.nanorc ~/.config/nano |
| 3 |
# Add the following to ~/.nanorc |
| 4 |
# include ~/.config/nano/cylc.nanorc |
| 5 |
|
| 6 |
# Supports `.cylc` files |
| 7 |
syntax "Cylc" "\.cylc$" |
| 8 |
|
| 9 |
## Multiline |
| 10 |
color yellow start="\"\"\"" end="\"\"\"" |
| 11 |
color yellow start="'''" end="'''" |
| 12 |
color yellow start="\[" end="\]" |
| 13 |
|
| 14 |
## Values |
| 15 |
color yellow "=(.*)$" |
| 16 |
color green "=[^>]" |
| 17 |
color brightmagenta "=>|&|\|\\" |
| 18 |
|
| 19 |
## Valid headings |
| 20 |
color green "^\s*\[.*\]" |
| 21 |
color green "^\s*\[\[.*\]\]" |
| 22 |
color green "^\s*\[\[\[.*\]\]\]" |
| 23 |
|
| 24 |
## Comments (keep at the end of this file!) |
| 25 |
color cyan "#.*$" |
| 26 |
|
| 27 |
## Jinja2 |
| 28 |
icolor brightcyan "^#!Jinja2" |
| 29 |
color brightcyan "\{%.*%\}" |
| 30 |
color brightcyan "\{\{.*\}\}" |