5840 - syntax highlighting for nano (!!)

This commit is contained in:
Kartik Agaram 2019-12-28 19:15:27 -08:00
parent dc6bd625f2
commit ecd1a406e6
1 changed files with 16 additions and 0 deletions

16
subx.nanorc Normal file
View File

@ -0,0 +1,16 @@
# include this file in your ~/.nanorc
syntax "subx" "\.subx$"
# function definitions
color yellow "^[a-z][^ ]*:"
# global variables
color red "^[A-Z][^ ]*:"
# tests
color green "^test-[^ ]*:"
# strings literals
color cyan ""([^"\]|\\.)+""
# comments
comment "#"
color brightblue "# - .*"
color blue "#.*$"
color brightblack "# \. .*"