mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-06 01:22:15 +03:00
211a5e4c4d
* doc/syntax/go.nanorc: basic go syntax highlighting git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4700 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
22 lines
738 B
Plaintext
22 lines
738 B
Plaintext
## Here is an example for Python.
|
|
##
|
|
syntax "go" "\.go$"
|
|
header "^#!.*/python[-0-9._]*"
|
|
|
|
icolor brightblue "def [0-9A-Z_]+"
|
|
color brightcyan "\<(break|default|func|interface|select|case|defer|go|map|struct|chan|else|goto|package|switch|const|fallthrough|if|range|type|continue|for|import|return|var)\>"
|
|
|
|
## String highlighting. You will in general want your comments and
|
|
## strings to come last, because syntax highlighting rules will be
|
|
## applied in the order they are read in.
|
|
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
|
|
##
|
|
## This string is VERY resource intensive!
|
|
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
|
|
|
|
|
## Comment highlighting
|
|
color brightblue "//.*"
|
|
color brightblue start="/\*" end="\*/"
|
|
|