This is the first push to this repo with my dotfiles
[dotfilesold/.git] / .nano / octave.nanorc
1 # Source: https://wiki.octave.org/Nano
2 # Octave syntax colors
3 syntax "octave" "\.m$" "\.octaverc$"
4
5 # keywords
6 color brightyellow "(case|catch|do|else(if)?|for|function|if|otherwise|switch|try|until|unwind_protect(_cleanup)?|vararg(in|out)|while)"
7 color brightyellow "end(_try_catch|_unwind_protect|for|function|if|switch|while)?"
8 color magenta "(break|continue|return)"
9
10 # storage-type
11 color green "(global|persistent|static)"
12 # data-type
13 color green "(cell(str)?|char|double|(u)?int(8|16|32|64)|logical|single|struct)"
14
15 # embraced
16 # TODO: the next line needs to be fixed to work properly in all cases
17 color brightred start="\(" end="\)"
18 color blue start="\[|\{" end="\]|\}"
19
20 # strings
21 color yellow ""(\\.|[^\"])*"|'(\\.|[^\"])*'"
22
23 # comments
24 color brightblue "#.*|%.*"