annotate nanorc.d/nanorc.nanorc @ 100:c432b0708d6d

Fix PHP operators so they don't interfere with object notation
author IBBoard <dev@ibboard.co.uk>
date Mon, 02 Apr 2018 20:04:38 +0100
parents ba9a6a8bb91c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
90
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 ## Here is an example for nanorc files.
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2
92
5f2c5800fa8a Fix small differences with older Nano on the server
IBBoard <dev@ibboard.co.uk>
parents: 90
diff changeset
3 syntax "nanorc" "\.?nanorc$"
90
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 comment "#"
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 # Possible errors and parameters
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 icolor brightred "^[[:space:]]*((un)?(bind|set)|include|syntax|header|magic|comment|linter|formatter|i?color|extendsyntax).*$"
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 # Keywords
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 icolor brightmagenta "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|atblanks|autoindent|backup|backwards|boldtext|casesensitive|constantshow|cutfromcursor|fill[[:space:]]+-?[[:digit:]]+|historylog|linenumbers|locking|morespace|mouse|multibuffer|noconvert|nohelp|nopauses|nonewlines|nowrap|positionlog|preserve|quickblank|quiet|rebinddelete|rebindkeypad|regexp|showcursor|smarthome|smooth|softwrap|suspend|tabsize[[:space:]]+[1-9][0-9]*|tabstospaces|tempfile|trimblanks|unix|view|wordbounds)\>"
99
ba9a6a8bb91c Backed out changeset 28304e568753
IBBoard <dev@ibboard.co.uk>
parents: 98
diff changeset
11 icolor yellow "^[[:space:]]*set[[:space:]]+((error|function|key|number|selected|status|title)color)[[:space:]]+(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
90
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 icolor brightmagenta "^[[:space:]]*set[[:space:]]+(backupdir|brackets|errorcolor|functioncolor|keycolor|matchbrackets|numbercolor|operatingdir|punct|quotestr|selectedcolor|speller|statuscolor|titlecolor|whitespace|wordchars)[[:space:]]+"
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 icolor brightmagenta "^[[:space:]]*bind[[:space:]]+((\^([[:alpha:]]|[]0-9\^_]|Space)|M-([[:alpha:]]|[]!"#$%&'()*+,./0-9:;<=>?@\^_`{|}~-]|Space))|F([1-9]|1[0-6])|Ins|Del)[[:space:]]+([[:alpha:]]+|".*")[[:space:]]+(all|main|search|replace(with)?|gotoline|writeout|insert|ext(ernal)?cmd|help|spell|linter|browser|whereisfile|gotodir)([[:space:]]+#|[[:space:]]*$)"
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 icolor brightmagenta "^[[:space:]]*unbind[[:space:]]+((\^([[:alpha:]]|[]0-9\^_]|Space)|M-([[:alpha:]]|[]!"#$%&'()*+,./0-9:;<=>?@\^_`{|}~-]|Space))|F([1-9]|1[0-6])|Ins|Del)[[:space:]]+(all|main|search|replace(with)?|gotoline|writeout|insert|ext(ernal)?cmd|help|spell|linter|browser|whereisfile|gotodir)([[:space:]]+#|[[:space:]]*$)"
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 icolor brightmagenta "^[[:space:]]*extendsyntax[[:space:]]+[[:alpha:]]+[[:space:]]+(i?color|header|magic|comment|linter|formatter)[[:space:]]+.*$"
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 icolor brightmagenta "^[[:space:]]*(syntax|linter|formatter)[[:space:]]+[^[:blank:]]+"
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 icolor magenta "^[[:space:]]*((un)?(bind|set)|include|syntax|header|magic|comment|linter|formatter|extendsyntax)\>"
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 # Strings
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 color yellow "".+"([[:space:]]|$)"
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 # Colors
99
ba9a6a8bb91c Backed out changeset 28304e568753
IBBoard <dev@ibboard.co.uk>
parents: 98
diff changeset
23 icolor brightmagenta "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
90
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 # Comments
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 color green "(^|[[:space:]]+)#.*$"
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 color green "^[[:space:]]*##.*$"
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 # Trailing whitespace
4342e7b19fa8 Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 color ,green "[[:space:]]+$"