My home config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.nanorc 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. set autoindent
  2. set boldtext
  3. set const
  4. set historylog
  5. set morespace
  6. set smooth
  7. set regexp
  8. set fill 72
  9. set multibuffer
  10. set suspend
  11. syntax "pkgbuild" "^.*PKGBUILD$"
  12. color green start="^" end="$"
  13. color cyan "^.*(pkgname|pkgver|pkgrel|pkgdesc|force|url|license|install|source|md5sums|groups|backup|depends|makedepends|conflicts|provides|replaces).*=.*$"
  14. color brightcyan "\<(pkgname|pkgver|pkgrel|pkgdesc|force|url|license|install|source|md5sums|groups|backup|depends|makedepends|conflicts|provides|replaces)\>"
  15. color cyan "\.install"
  16. color brightwhite "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}"
  17. color brightcyan "(\$|\$\{|\$\()(pkgname|pkgver|pkgrel|pkgdesc|force|url|license|install|source|md5sums|groups|backup|depends|makedepends|conflicts|provides|replaces|startdir)(|\}|\))"
  18. color brightred "build\(\)"
  19. color brightred "\<(configure|make)\>"
  20. color red "\<(DESTDIR|PREFIX|prefix|sysconfdir|datadir|libdir|includedir|mandir)\>"
  21. syntax "c-file" "\.(c|h)$"
  22. color red "\<[A-Z_]{2,}\>"
  23. color green "\<(float|char|int|void|static|const|struct)\>"
  24. color brightyellow "\<(if|while|do|else|case|switch)\>"
  25. color brightcyan "^#( )*(define|include|ifn?def|endif|elif|else|if)"
  26. syntax "php" "\.php[2345s~]?$"
  27. color brightblue "(.*)\("
  28. color blue "\$[a-zA-Z_0-9$]*|[=!<>]"
  29. color green "(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|@|while)\s"
  30. color green "[.,{}();]"
  31. color red "('.*')|(\".*\")"
  32. color brightyellow "(#.*|//.*)$"
  33. color brightyellow start="/\*" end="\*/"
  34. color brightblue "(<\?(php)?|\?>)"
  35. color white start="\?>" end="<\?(php)?"
  36. syntax "HTML" "\.html$"
  37. color blue start="<" end=">"
  38. color red "&[^; ]*;"
  39. syntax "patch" "\.(patch|diff)$"
  40. color brightgreen "^\+.*"
  41. color green "^\+\+\+.*"
  42. color brightblue "^ .*"
  43. color brightred "^-.*"
  44. color red "^---.*"
  45. color brightyellow "^@@.*"
  46. color magenta "^diff.*"
  47. syntax "Java source" "\.java$"
  48. color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
  49. color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
  50. color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>"
  51. color red ""[^\"]*""
  52. color yellow "\<(true|false|null)\>"
  53. color blue "//.*"
  54. color blue start="/\*" end="\*/"
  55. color brightblue start="/\*\*" end="\*/"
  56. color brightgreen,green " +$"
  57. syntax "ml" ".*\.([jrs]?html?|xml|sgml?)$"
  58. color white "^.+$"
  59. color green start="<" end=">"
  60. color cyan "<[^> ]+"
  61. color cyan ">"
  62. color yellow start="<!DOCTYPE" end="[/]?>"
  63. color yellow start="<!--" end="-->"
  64. color red "&[^;]*;"
  65. ## syntax highlighting in xorg.conf
  66. ##
  67. syntax "xorg" "xorg\.conf$"
  68. color brightwhite "(Section|EndSection|Sub[sS]ection|EndSub[sS]ection)"
  69. # keywords
  70. color yellow "[^A-Za-z0-9](Identifier|Screen|InputDevice|Option|RightOf|LeftOf|Driver|RgbPath|FontPath|ModulePath|Load|VendorName|ModelName|BoardName|BusID|Device|Monitor|DefaultDepth|View[pP]ort|Depth|Virtual|Modes|Mode|DefaultColorDepth|Modeline|\+vsync|\+hsync|HorizSync|VertRefresh)[^A-Za-z0-9]"
  71. # numbers
  72. color magenta "[0-9]"
  73. # strings
  74. color green ""(\\.|[^\"])*""
  75. # comments
  76. color white "#.*"
  77. # Generic conf/rc/sh file syntax highlighting
  78. #############################################
  79. syntax "conf/rc/sh" "conf$|rc$|sh$"
  80. color white ".+"
  81. color green "^#.*"
  82. # .nanorc syntax highlighting
  83. #############################
  84. syntax "nanorc" "[\.]*nanorc$"
  85. color white "^ *(set|unset).*$"
  86. color cyan "^ *(set|unset) (autoindent|backup|const|cut|fill|keypad|multibuffer|noconvert|nofollow|nohelp|nowrap|operatingdir|preserve|quotestr|regexp|smooth|speller|suspend|tabsize|tempfile|historylog|view)"
  87. color brightwhite "^ *syntax [^ ]*"
  88. color brightblue "^ *set\>" "^ *unset\>" "^ *syntax\>"
  89. color white "^ *color\>.*"
  90. color yellow "^ *color (bright)?(black|blue|cyan|green|magenta|red|white|yellow)\>"
  91. color magenta "^ *color\>"
  92. color green "^#.*$"
  93. # grub.conf/cfg syntax highlighting
  94. ###############################
  95. syntax "grub.conf/cfg" "grub\.conf|cfg"
  96. color cyan "(^default.+|^timeout.+)"
  97. color red "^title.+"
  98. color yellow "(initrd.+|kernel.+|root.+)"
  99. color green "^#.*"