Merge pull request #219 from au5ton/patch-1

GNU Octave and Matlab support
This commit is contained in:
Anthony Scopatz 2019-04-25 17:04:44 -04:00 committed by GitHub
commit 5f87deffb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

24
octave.nanorc Normal file
View File

@ -0,0 +1,24 @@
# Source: https://wiki.octave.org/Nano
# Octave syntax colors
syntax "octave" "\.m$" "\.octaverc$"
# keywords
color brightyellow "(case|catch|do|else(if)?|for|function|if|otherwise|switch|try|until|unwind_protect(_cleanup)?|vararg(in|out)|while)"
color brightyellow "end(_try_catch|_unwind_protect|for|function|if|switch|while)?"
color magenta "(break|continue|return)"
# storage-type
color green "(global|persistent|static)"
# data-type
color green "(cell(str)?|char|double|(u)?int(8|16|32|64)|logical|single|struct)"
# embraced
# TODO: the next line needs to be fixed to work properly in all cases
color brightred start="\(" end="\)"
color blue start="\[|\{" end="\]|\}"
# strings
color yellow ""(\\.|[^\"])*"|'(\\.|[^\"])*'"
# comments
color brightblue "#.*|%.*"