randalltux

nanorc

Feb 7th, 2015
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.11 KB | None | 0 0
  1. set undo # Enable undo/redo features -- Alt+U
  2. set nowrap
  3.  
  4. syntax "pkgbuild" "PKGBUILD$" "\.install$"
  5. color brightblue "^[A-Za-z0-9_+-]+[[:space:]]*\(\)"
  6. color brightwhite "\<(case|do|done|elif|else|esac|fi|for|function|if)\>"
  7. color brightwhite "\<(in|select|then|time|until|while)\>"
  8. color brightblue "\<(echo|exit|export|let|local|read|return|set|shift|umask|unset)\>"
  9. color green "\<(pkgname|pkgver|pkgrel|epoch|pkgdesc|arch|url|license)\>"
  10. color green "\<(groups|depends|makedepends|checkdepends|optdepends)\>"
  11. color green "\<(provides|conflicts|replaces|backup|options|^install)\>"
  12. color green "\<(changelog|source|noextract)\>"
  13. color green "\<(md5sums|sha1sums|sha256sums|sha384sums|sha512sums)\>"
  14. color green "\<(srcdir|pkgdir)\>"
  15. color brightyellow "\<(strip|docs|libtool|emptydirs|zipman|purge|upx)\>"
  16. color brightyellow "\<(ccache|distcc|buildflags|makeflags)\>"
  17. color red "[{}()<>!=&|;`$]|\\|\[|\]|-(eq|ne|gt|lt|ge|le|s|n|z)\>"
  18. color yellow ""(\\.|[^"])*""
  19. color brightyellow "\$\{?[A-Za-z0-9_!@#$*?-]+\}?|`[^`]*`"
  20. color yellow "'(\\.|[^'])*'"
  21. color magenta "\\.?"
  22. color cyan "(^|[[:space:]])#([^{].*)?$"
  23.  
  24. syntax "nginx" "nginx.*\.conf$" "\.nginx$"
  25. header "^(server|upstream)[a-z ]*\{$"
  26. color brightmagenta "\<(events|server|http|location|upstream)[[:space:]]*\{"
  27. color brightwhite "(^|[[:space:]{;])(access_log|add_after_body|add_before_body|add_header|addition_types|aio|alias|allow|ancient_browser|ancient_browser_value|auth_basic|auth_basic_user_file|autoindex|autoindex_exact_size|autoindex_localtime|break|charset|charset_map|charset_types|chunked_transfer_encoding|client_body_buffer_size|client_body_in_file_only|client_body_in_single_buffer|client_body_temp_path|client_body_timeout|client_header_buffer_size|client_header_timeout|client_max_body_size|connection_pool_size|create_full_put_path|daemon|dav_access|dav_methods|default_type|deny|directio|directio_alignment|disable_symlinks|empty_gif|env|error_log|error_page|expires|fastcgi_buffer_size|fastcgi_buffers|fastcgi_busy_buffers_size|fastcgi_cache|fastcgi_cache_bypass|fastcgi_cache_key|fastcgi_cache_lock|fastcgi_cache_lock_timeout|fastcgi_cache_min_uses|fastcgi_cache_path|fastcgi_cache_use_stale|fastcgi_cache_valid|fastcgi_connect_timeout|fastcgi_hide_header|fastcgi_ignore_client_abort|fastcgi_ignore_headers|fastcgi_index|fastcgi_intercept_errors|fastcgi_keep_conn|fastcgi_max_temp_file_size|fastcgi_next_upstream|fastcgi_no_cache|fastcgi_param|fastcgi_pass|fastcgi_pass_header|fastcgi_read_timeout|fastcgi_send_timeout|fastcgi_split_path_info|fastcgi_store|fastcgi_store_access|fastcgi_temp_file_write_size|fastcgi_temp_path|flv|geo|geoip_city|geoip_country|gzip|gzip_buffers|gzip_comp_level|gzip_disable|gzip_http_version|gzip_min_length|gzip_proxied|gzip_static|gzip_types|gzip_vary|if|if_modified_since|ignore_invalid_headers|image_filter|image_filter_buffer|image_filter_jpeg_quality|image_filter_sharpen|image_filter_transparency|include|index|internal|ip_hash|keepalive|keepalive_disable|keepalive_requests|keepalive_timeout|large_client_header_buffers|limit_conn|limit_conn_log_level|limit_conn_zone|limit_except|limit_rate|limit_rate_after|limit_req|limit_req_log_level|limit_req_zone|limit_zone|lingering_close|lingering_time|lingering_timeout|listen|location|log_format|log_not_found|log_subrequest|map|map_hash_bucket_size|map_hash_max_size|master_process|max_ranges|memcached_buffer_size|memcached_connect_timeout|memcached_next_upstream|memcached_pass|memcached_read_timeout|memcached_send_timeout|merge_slashes|min_delete_depth|modern_browser|modern_browser_value|mp4|mp4_buffer_size|mp4_max_buffer_size|msie_padding|msie_refresh|open_file_cache|open_file_cache_errors|open_file_cache_min_uses|open_file_cache_valid|open_log_file_cache|optimize_server_names|override_charset|pcre_jit|perl|perl_modules|perl_require|perl_set|pid|port_in_redirect|postpone_output|proxy_buffer_size|proxy_buffering|proxy_buffers|proxy_busy_buffers_size|proxy_cache|proxy_cache_bypass|proxy_cache_key|proxy_cache_lock|proxy_cache_lock_timeout|proxy_cache_min_uses|proxy_cache_path|proxy_cache_use_stale|proxy_cache_valid|proxy_connect_timeout|proxy_cookie_domain|proxy_cookie_path|proxy_hide_header|proxy_http_version|proxy_ignore_client_abort|proxy_ignore_headers|proxy_intercept_errors|proxy_max_temp_file_size|proxy_next_upstream|proxy_no_cache|proxy_pass|proxy_pass_header|proxy_read_timeout|proxy_redirect|proxy_send_timeout|proxy_set_header|proxy_ssl_session_reuse|proxy_store|proxy_store_access|proxy_temp_file_write_size|proxy_temp_path|random_index|read_ahead|real_ip_header|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver|resolver_timeout|return|rewrite|root|satisfy|satisfy_any|secure_link_secret|send_lowat|send_timeout|sendfile|sendfile_max_chunk|server|server|server_name|server_name_in_redirect|server_names_hash_bucket_size|server_names_hash_max_size|server_tokens|set|set_real_ip_from|source_charset|split_clients|ssi|ssi_silent_errors|ssi_types|ssl|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_client_certificate|ssl_crl|ssl_dhparam|ssl_engine|ssl_prefer_server_ciphers|ssl_protocols|ssl_session_cache|ssl_session_timeout|ssl_verify_client|ssl_verify_depth|sub_filter|sub_filter_once|sub_filter_types|tcp_nodelay|tcp_nopush|timer_resolution|try_files|types|types_hash_bucket_size|types_hash_max_size|underscores_in_headers|uninitialized_variable_warn|upstream|user|userid|userid_domain|userid_expires|userid_name|userid_p3p|userid_path|userid_service|valid_referers|variables_hash_bucket_size|variables_hash_max_size|worker_priority|worker_processes|worker_rlimit_core|worker_rlimit_nofile|working_directory|xml_entities|xslt_stylesheet|xslt_types)([[:space:]]|$)"
  28. color white "[{}]"
  29. color brightcyan "\<(on|off)\>"
  30. color brightyellow "\$[A-Za-z][A-Za-z0-9_]*"
  31. color red "[*]"
  32. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  33. color yellow start="'$" end="';$"
  34. color cyan "(^|[[:space:]])#([^{].*)?$"
  35.  
  36. syntax "awk" "\.awk$"
  37. header "^#!.*bin/(env +)?awk( |$)"
  38. color brightyellow "\$[A-Za-z0-9_!@#$*?-]+"
  39. color brightyellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>"
  40. color brightyellow "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>"
  41. color brightyellow "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>"
  42. color brightblue "\<(function|extension|BEGIN|END)\>"
  43. color red "[-+*/%^|!=&<>?;:]|\\|\[|\]"
  44. color brightwhite "\<(for|if|while|do|else|in|delete|exit)\>"
  45. color brightwhite "\<(break|continue|return)\>"
  46. color brightblue "\<(close|getline|next|nextfile|print|printf|system|fflush)\>"
  47. color brightblue "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>"
  48. color brightblue "\<(asort|asorti|gensub|gsub|index|length|match)\>"
  49. color brightblue "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>"
  50. color brightblue "\<(mktime|strftime|systime)\>"
  51. color brightblue "\<(and|compl|lshift|or|rshift|xor)\>"
  52. color brightblue "\<(bindtextdomain|dcgettext|dcngettext)\>"
  53. color magenta "/.*[^\]/"
  54. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  55. color magenta "\\."
  56. color cyan "(^|[[:space:]])#([^{].*)?$"
  57. color brightwhite,cyan "TODO:?"
  58.  
  59. syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
  60. color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
  61. color white "[(]"
  62. color brightyellow "\<[A-Z_][0-9A-Z_]+\>"
  63. color green "\<(float|double|bool|char|int|short|long|void|(un)?signed)\>"
  64. color green "\<[a-z0-9_]+_t\>"
  65. color brightwhite "\<(struct|enum|static|const|union|typedef|extern)\>"
  66. color brightwhite "\<(for|if|while|do|else|case|default|switch)\>"
  67. color brightwhite "\<(return|inline|sizeof|auto|register|volatile|restrict)\>"
  68. color brightwhite "\<(try|throw|catch|operator|new|delete)\>"
  69. color brightred "\<(goto|break|continue)\>"
  70. color brightcyan "\<(true|false)\>"
  71. color red "[-+/*=<>?:!~%&|^]"
  72. color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'"
  73. color brightyellow "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)"
  74. color brightwhite,red "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
  75. color yellow ""(\\.|[^"])*"|<[A-Za-z_./-]+>"
  76. color magenta "\\([\"'abfnrtv\\]|[0-3]?[0-7]{1,2}|x[A-Fa-f0-9]{1,2}|$)"
  77. color cyan "(^|[[:space:]])//.*"
  78. color cyan start="/\*" end="\*/"
  79. color brightwhite,cyan "TODO:?"
  80.  
  81. syntax "c#" "\.cs$"
  82. # Class
  83. color brightmagenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
  84. # Annotation
  85. color magenta "@[A-Za-z]+"
  86. color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
  87. color white "[(]"
  88. color green "\<(bool|byte|sbyte|char|decimal|double|float|IntPtr|int|uint|long|ulong|object|short|ushort|string|base|this|var|void)\>"
  89. color brightwhite "\<(alias|as|case|catch|checked|default|do|dynamic|else|finally|fixed|for|foreach|goto|if|is|lock|new|null|return|switch|throw|try|unchecked|while)\>"
  90. color brightwhite "\<(abstract|async|class|const|delegate|enum|event|explicit|extern|get|implicit|in|internal|interface|namespace|operator|out|override|params|partial|private|protected|public|readonly|ref|sealed|set|sizeof|stackalloc|static|struct|typeof|unsafe|using|value|virtual|volatile|yield)\>"
  91. # LINQ-only keywords (ones that cannot be used outside of a LINQ query - lots others can)
  92. color brightwhite "\<(from|where|select|group|info|orderby|join|let|in|on|equals|by|ascending|descending)\>"
  93. color brightred "\<(break|continue)\>"
  94. color brightcyan "\<(true|false)\>"
  95. color red "[-+/*=<>?:!~%&|]"
  96. color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>"
  97. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  98. color magenta "\\([btnfr]|'|\"|\\)"
  99. color magenta "\\u[A-Fa-f0-9]{4}"
  100. color cyan "(^|[[:space:]])//.*"
  101. color cyan start="/\*" end="\*/"
  102. color brightwhite,cyan "TODO:?"
  103.  
  104. syntax "css" "\.s?css$"
  105. # Selectors
  106. color green "\<(a|abbr|address|area|article|aside|audio|b|base|bdo|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|eventsource|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|mark|map|menu|meta|meter|nav|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|ruby|rp|rt|samp|script|section|select|small|source|span|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|ul|var|video|wbr)\>"
  107. color red "[>+~*]"
  108. color brightyellow "[.#][A-Za-z_][A-Za-z0-9_-]*"
  109. color red ":(active|focus|hover|link|visited|first-child|lang|valid|invalid|not|selection)\>"
  110. color red ":(after|before|first-line|first-letter|root|target)\>"
  111. color yellow "\[[^\[]*\]"
  112. color white start="\{" end="\}"
  113. # Sass
  114. color brightmagenta "(^|[[:space:]])@(include|mixin)\>"
  115. color brightyellow "\$[A-Za-z0-9_-]+"
  116. color brightmagenta "(^|[[:space:]])@(charset|font-face|media|page|import)\>"
  117. color red "[*]"
  118. color brightcyan "\<(above|absolute|always|armenian|auto|avoid|baseline|behind|below|bidi-override|blink|block|bolder|bold|bottom|capitalize|center-left|center-right|center|circle|cjk-ideographic|close-quote|collapse|compact|condensed|continuous|crop|crosshair|cross|cue-after|cue-before|cursive|dashed|decimal|decimal-leading-zero|default|digits|disc|dotted|double|embed|e-resize|expanded|extra-condensed|extra-expanded|fantasy|far-left|far-right|faster|fast|fixed|fixed|georgian|groove|hebrew|help|hide|higher|high|hiragana-iroha|hiragana|inherit|inline|inline-block|inline-table|inset|inside|invert|italic|justify|katakana-iroha|katakana|landscape|large|larger|left|left-side|leftwards|level|lighter|line-through|list-item|loud|lower-alpha|lowercase|lower-greek|lower-latin|lower-roman|lower|low|ltr|marker|medium|medium|middle|mix|monospace|move|narrower|ne-resize|no-close-quote|none|no-open-quote|no-repeat|normal|nowrap|n-resize|nw-resize|oblique|once|open-quote|outset|outside|overline|pointer|portait|relative|repeat-x|repeat-y|repeat|ridge|right-side|right|rightwards|rlt|run-in|sans-serif|scroll|scroll|semi-condensed|semi-expanded|separate|se-resize|serif|show|silent|slower|slow|small-caps|smaller|small|soft|solid|spell-out|square|s-resize|static|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|text-bottom|text|text-top|thick|thin|top|top|transparent|ultra-condensed|ultra-expanded|underline|upper-alpha|uppercase|upper-latin|upper-roman|visible|wait|wider|w-resize|x-fast|x-high|x-large|x-loud|x-low|x-slow|x-small|x-soft|xx-large|xx-small|pre-wrap|break-word)([[:space:];,]|$)"
  119. color brightyellow ":[[:space:]]*(code|hidden|table|pre)\>"
  120. color brightwhite "\<(background-attachment|background-clip|background-color|background-image|background-position|background-repeat|background|border-bottom-color|border-bottom-style|border-bottom-width|border-bottom|border-collapse|border-color|border-left-color|border-left-style|border-left-width|border-left|border-radius|border-right-color|border-right-style|border-right-width|border-right|border-spacing|border-style|border-top-color|border-top-style|border-top-width|border-top|border-width|border|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|float|font-family|font-size-adjust|font-size|font-style|font-variant|font-weight|font|height|left|letter-spacing|line-height|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|margin|marker-offset|marks|max-height|max-width|min-height|min-width|opacity|orphans|outline-color|outline-style|outline-width|outline|overflow|overflow-x|overflow-y|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page|pause-after|pause-before|pause|pitch-range|pitch|play-during|position|quotes|richness|right|size|speak-header|speak-numerical|speak-punctuation|speak|speech-rate|stress|table-layout|text-align|text-decoration|text-indent|text-shadow|text-transform|top|transition|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-spacing|word-wrap|z-index)[[:space:]]*:"
  121. color brightwhite,red "-(ms|moz|apple|khtml|wap|webkit|o|xv)-[a-z][a-z-]+"
  122. color white "[:;,]"
  123. color blue "\<(0|[\+-]?[1-9][0-9]*)"
  124. color blue "[\+-]?([0-9]+|[0-9]*\.[0-9]+)(%|e(m|x)|p(x|t|c)|in|ft|(m|c)m|k?Hz|deg|g?rad|m?s)"
  125. color blue "#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})\>"
  126. color red "\!important\>"
  127. color brightblue "[a-z-]*(-[a-z]+)?\(" "\(|\)"
  128. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  129. color cyan "(^|[[:space:]])//.*"
  130. color cyan start="/\*" end="\*/"
  131. color brightwhite,cyan "TODO:?"
  132.  
  133. syntax "cython" "\.(pyx|pxd|pyi)$"
  134. color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
  135. color white "[(]"
  136. color brightwhite "\<(and|as|assert|break|class|continue|def|del|elif|else|except)\>"
  137. color brightwhite "\<(exec|finally|for|from|global|if|import|in|is|lambda|not|or)\>"
  138. color brightwhite "\<(pass|print|raise|return|try|while|with|yield|None)\>"
  139. color brightwhite "\<(DEF|ELIF|ELSE|IF)\>"
  140. color brightwhite "\<(cp?def( inline)?|cimport|cppclass|ctypedef|extern|include)\>"
  141. color brightwhite "\<(namespace|property|struct)\>"
  142. color green "\<(bint|char|double|int|public|void|unsigned)\>"
  143. color red "[.:;,+*|=!\%@<>/&-]"
  144. color brightyellow "@[A-Za-z0-9_]+"
  145. color brightmagenta "__[A-Za-z0-9_]+__"
  146. color brightcyan "\<(True|False)\>"
  147. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  148. color yellow "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
  149. color yellow "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
  150. color yellow start=""""[^"]" end="""""
  151. color yellow start="'''[^']" end="'''"
  152. color magenta "\\.?"
  153. color cyan "(^|[[:space:]])#([^{].*)?$"
  154. color brightwhite,cyan "TODO:?"
  155.  
  156. syntax "dot" "\.(dot|gv)$"
  157. color brightwhite "\<(digraph|edge|graph|node|subgraph)\>"
  158. color magenta "\<(arrowhead|arrowsize|arrowtail|bgcolor|center|color|constraint|decorateP|dir|distortion|fillcolor|fontcolor|fontname|fontsize|headclip|headlabel|height|labelangle|labeldistance|labelfontcolor|labelfontname|labelfontsize|label|layers|layer|margin|mclimit|minlen|name|nodesep|nslimit|ordering|orientation|pagedir|page|peripheries|port_label_distance|rankdir|ranksep|rank|ratio|regular|rotate|samehead|sametail|shapefile|shape|sides|size|skew|style|tailclip|taillabel|URL|weight|width)\>"
  159. color red "=|->|--"
  160. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  161. color cyan "(^|[[:space:]])//.*"
  162. color cyan start="/\*" end="\*/"
  163. syntax "email"
  164. color magenta "^>([^>].*|$)"
  165. color blue "^>>([^>].*|$)"
  166. color green "^>>>.*"
  167.  
  168. syntax "html" "\.html?$"
  169. header "<!doctype html"
  170. color magenta "\<(accept|accept-charset|accesskey|action|alt|async|autocomplete|autofocus|autoplay|border|challenge|charset|checked|cite|class|cols|colspan|content|contenteditable|contextmenu|controls|coords|crossorigin|data-[a-z-]+|datetime|default|defer|dir|dirname|disabled|draggable|dropzone|enctype|for|form|formaction|formenctype|formmethod|formnovalidate|formtarget|headers|height|hidden|high|href|hreflang|http-equiv|icon|id|ismap|keytype|kind|label|lang|list|loop|low|manifest|max|maxlength|media|mediagroup|method|min|multiple|muted|name|novalidate|open|optimum|pattern|placeholder|poster|preload|pubdate|radiogroup|readonly|rel|required|reversed|rows|rowspan|sandbox|spellcheck|scope|scoped|seamless|selected|shape|size|sizes|span|src|srcdoc|srclang|start|step|style|tabindex|target|title|type|typemustmatch|usemap|value|width|wrap)\>"
  171. color brightwhite,red "</?[A-Za-z0-9_]+[ >]"
  172. color brightmagenta "</?(a|abbr|address|area|article|aside|audio|b|base|bdo|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|eventsource|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|mark|map|menu|meta|meter|nav|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|ruby|rp|rt|samp|script|section|select|small|source|span|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|ul|var|video|wbr)[ >]"
  173. color yellow "=([A-Za-z0-9!$%*\^(){}#|:;_~@+,.?/\\-]|\[|\])+"
  174. color red "="
  175. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  176. color white start=">" end="<"
  177. color brightmagenta "[<>]"
  178. # Embedded template languages
  179. color brightyellow "\{\{[^}]*\}\}|<%=.*%>"
  180. color brightblue start="<\?" end="\?>"
  181. color brightblue start="<%[^=]" end="%>"
  182. color brightblue start="\{%" end="%\}"
  183. color magenta "&(#[0-9]+|#x[0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);"
  184. color cyan start="<!--" end="-->"
  185. color cyan "<!(doctype|DOCTYPE)[^>]*>"
  186.  
  187. syntax "ini" "\.(ini|desktop|lfl|override)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$"
  188. header "^\[[A-Za-z]+\]$"
  189. color brightcyan "\<(true|false)\>"
  190. color brightwhite "^[[:space:]]*[^=]*="
  191. color brightmagenta "^[[:space:]]*\[.*\]$"
  192. color red "[=;]"
  193. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  194. color cyan "(^|[[:space:]])#([^{].*)?$"
  195.  
  196. syntax "java" "\.java$"
  197. # Class
  198. color brightmagenta "class +[A-Za-z0-9]+ *((implements|extends) +[A-Za-z0-9.]+)?"
  199. # Annotation
  200. color magenta "@[A-Za-z]+"
  201. color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
  202. color white "[(]"
  203. color green "\<(boolean|byte|char|double|float|int|long|short|String|void)\>"
  204. color brightwhite "\<(case|catch|default|do|else|finally|for|if)\>"
  205. color brightwhite "\<(new|return|switch|this|throw|transient|try|while)\>"
  206. color brightwhite "\<(abstract|class|extends|final|implements|import|instanceof)\>"
  207. color brightwhite "\<(interface|native|package|private|protected|public|static)\>"
  208. color brightwhite "\<(strictfp|super|synchronized|throws|volatile|null)\>"
  209. color brightred "\<(break|continue)\>"
  210. color brightcyan "\<(true|false)\>"
  211. color red "[-+/*=<>?:!~%&|]"
  212. color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>"
  213. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  214. color magenta "\\([btnfr]|'|\"|\\)"
  215. color magenta "\\u[A-Fa-f0-9]{4}"
  216. color cyan "(^|[[:space:]])//.*"
  217. color cyan start="/\*" end="\*/"
  218. color brightwhite,cyan "TODO:?"
  219.  
  220. syntax "JavaScript" "\.js$"
  221. color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
  222. color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
  223. color blue "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
  224. color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
  225. color white "[(]"
  226. color brightwhite "\<(break|case|catch|continue|default|delete|do|else|finally)\>"
  227. color brightwhite "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>"
  228. color brightwhite "\<(switch|this|throw|try|typeof|var|void|while|with)\>"
  229. color brightwhite "\<(null|undefined|NaN)\>"
  230. color brightcyan "\<(true|false)\>"
  231. color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
  232. color green "\<(Number|Object|RegExp|String)\>"
  233. color red "[-+/*=<>!~%?:&|]"
  234. color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
  235. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  236. color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
  237. color cyan "(^|[[:space:]])//.*"
  238. color cyan start="/\*" end="\*/"
  239. color brightwhite,cyan "TODO:?"
  240.  
  241. syntax "json" "\.json$"
  242. header "^\{$"
  243. color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>"
  244. color brightwhite "\<null\>"
  245. color brightcyan "\<(true|false)\>"
  246. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  247. color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:"
  248. color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]"
  249.  
  250. syntax "keymap" "\.(k|key)?map$|Xmodmap$"
  251. color brightwhite "\<(add|clear|compose|keycode|keymaps|keysym|remove|string)\>"
  252. color brightwhite "\<(control|alt|shift)\>"
  253. color blue "\<[0-9]+\>"
  254. color red "="
  255. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  256. color cyan "^!.*$"
  257.  
  258. syntax "lua" "\.lua$"
  259. header "^#!.*lua(jit)?$"
  260. color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*([({'"]|\[=*\[)"
  261. color brightwhite "\<(do|end|while|repeat|until|if|elseif|then|else)\>"
  262. color brightwhite "\<(for|in|function|local|return|nil)\>"
  263. color brightred "\<(goto|break)\>"
  264. color brightcyan "\<(true|false)\>"
  265. color red "[-+:*/%^=#<>]|~=|\.\.|\[|\]|\<(not|and|or)\>"
  266. color brightwhite,red "[`!@$&|?]|!="
  267. color white "\.{3,}|[({'"]"
  268. color blue "\<([0-9]+)(\.[0-9]+)?([Ee][+-]?[0-9]+)?\>|0x[0-9a-fA-F]*"
  269. color brightmagenta "::[A-Za-z_][A-Za-z0-9_]*::"
  270. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  271. color yellow start="\[\[" end="\]\]"
  272. color yellow start="\[=\[" end="\]=\]"
  273. color yellow start="\[==\[" end="\]==\]"
  274. color magenta "\\([0-9]{1,3}|x[A-Fa-f0-9]{2}|[abefntrv'"\\]|\[|\])"
  275. color cyan "^#!.*" "(^|[[:space:]])\-\-.*$"
  276. color cyan start="\-\-\[\[" end="\]\]"
  277. color brightwhite,cyan "TODO:?"
  278.  
  279. syntax "makefile" "([Mm]akefile|\.ma?k)$"
  280. header "^#!.*/(env +)?[bg]?make( |$)"
  281. color brightwhite "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>"
  282. color brightwhite "^(export|include|override)\>"
  283. color brightmagenta "^[^:= ]+:"
  284. color red "[=,%]" "\+=|\?=|:=|&&|\|\|"
  285. color brightblue "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]"
  286. color brightblue "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]"
  287. color brightblue "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]"
  288. color brightblue "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
  289. color brightblue "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
  290. color white "[()$]"
  291. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  292. color brightyellow "\$+(\{[^} ]+\}|\([^) ]+\))"
  293. color brightyellow "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)"
  294. color magenta "\$\$|\\.?"
  295. color cyan "(^|[[:space:]])#([^{].*)?$"
  296. color cyan "^ @#.*"
  297.  
  298. syntax "man" "\.[1-9]x?$"
  299. color brightmagenta "\.(S|T)H.*$"
  300. color brightwhite "\.(BR?|I[PR]?).*$"
  301. color brightyellow "\.(S|T)H|\.TP|\.(BR?|I[PR]?|PP)|\\f[BIPR]"
  302. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  303. color yellow "\.(br|DS|RS|RE|PD)"
  304.  
  305. syntax "mpdconf" "\.mpdconf$"
  306. color brightwhite "\<(user|group|bind_to_address|host|port|plugin|name|type)\>"
  307. color brightwhite "\<((music|playlist)_directory|(db|log|state|pid|sticker)_file)\>"
  308. color brightmagenta "^(input|audio_output|decoder)[[:space:]]*\{|\}"
  309. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  310. color cyan "(^|[[:space:]])#([^{].*)?$"
  311.  
  312. syntax "nanorc" "nanorc$"
  313. color green "^i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
  314. color brightwhite "^(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|poslog|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|softwrap|speller|suspend|suspendenable|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds)\>"
  315. color brightwhite "^(bind|i?color|set|unset|syntax|header|magic)\>"
  316. color red "^unbind\>"
  317. color brightwhite "^i?color\>" "\<(start|end)="
  318. color brightyellow "^include\>"
  319. color brightwhite "^(PLAIN|TYPE|STRING|MACRO|NUMBER|VARIABLE|OPERATOR|~?KEYWORD):"
  320. color brightwhite "^(BOOLEAN|SECTION|REGEXP|FUNCTION|ESCAPE|COMMENT|WARNING|JUMP):"
  321. color brightwhite "^(TAG|ATTRIBUTE):"
  322. color brightyellow "^\+(TODO|LINT|STRING|BOOLEAN|FUNCTION|INI|(C|HASH)COMMENT)$"
  323. color magenta "\\.?"
  324. color cyan "(^|[[:space:]])#([^{].*)?$"
  325.  
  326. syntax "patch" "\.(patch|diff)$"
  327. color brightgreen "^\+.*"
  328. color green "^\+\+\+.*"
  329. color brightred "^-.*"
  330. color red "^---.*"
  331. color blue "^@@.*"
  332. color magenta "^diff.*"
  333.  
  334. syntax "php" "\.php$"
  335. color red "[-+/*=<>?:!~%&|]"
  336. color brightmagenta "(<\?(php)?|\?>)"
  337. color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
  338. color white "[(]"
  339. color green "\<(float|global|double|bool|char|int|enum|const)\>"
  340. color brightwhite "\<(class|new|private|public|function|for|foreach|if|while|do|var)\>"
  341. color brightwhite "\<(return|else|elseif|case|default|switch)\>"
  342. color brightred "\<(goto|break|continue)\>"
  343. color brightcyan "\<(true|false)\>"
  344. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  345. color brightyellow "\$[A-Za-z_][A-Za-z0-9_]*"
  346. color cyan "(^|[[:space:]])//.*"
  347. color cyan start="/\*" end="\*/"
  348. color brightwhite,cyan "TODO:?"
  349.  
  350. syntax "python" "\.py$" "jhbuildrc$"
  351. header "^#!.*/(env +)?python[-0-9._]*( |$)"
  352. color brightwhite "\<(as|assert|break|class|continue|def|del|elif|else|except)\>"
  353. color brightwhite "\<(exec|finally|for|from|global|if|import|lambda)\>"
  354. color brightwhite "\<(pass|print|raise|return|try|while|with|yield|None)\>"
  355. color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
  356. color white "[(]"
  357. color red "[-+*/|=%<>&~^]|\<(and|not|or|is|in)\>"
  358. color brightyellow "@[A-Za-z0-9_]+"
  359. color brightmagenta "__[A-Za-z0-9_]+__"
  360. color brightcyan "\<(True|False)\>"
  361. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  362. color yellow "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
  363. color yellow "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
  364. color yellow start=""""[^"]" end="""""
  365. color yellow start="'''[^']" end="'''"
  366. color magenta "\\.?"
  367. color cyan "(^|[[:space:]])#([^{].*)?$"
  368. color brightwhite,cyan "TODO:?"
  369.  
  370. syntax "ruby" "\.rb$"
  371. color brightwhite "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>"
  372. color yellow "(^|[[:space:]]):[A-Za-z0-9_]+\>"
  373. color magenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
  374. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  375. color cyan "(^|[[:space:]])#([^{].*)?$"
  376. color cyan start="^=begin$" end="^=end$"
  377. color brightwhite,cyan "TODO:?"
  378.  
  379. syntax "xml" "\.([jrs]html?|sgml?|xml|opml|xslt?|plist)$"
  380. header "<\?xml"
  381. color brightmagenta start="<" end=">"
  382. color brightwhite " [a-z_-]+="
  383. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  384. color brightwhite,red "&"
  385. color magenta "&(#[0-9]+|#x[0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);"
  386. color cyan start="<!--" end="-->"
  387. color cyan start="<!DOCTYPE" end=">"
  388.  
  389. syntax "xresources" "X(defaults|resources)$"
  390. color green "^[[:alnum:]]+\*"
  391. color brightyellow "\*[[:alnum:]]+\:"
  392. color blue "\<[0-9]+\>"
  393. color red "[*:=]"
  394. color brightcyan "\<(true|false)\>"
  395. color cyan "(^|[[:space:]])#([^{].*)?$"
  396. color brightwhite "^URxvt"
  397. color yellow "^!"
  398.  
  399. syntax "zsh" "\.zshrc$" "\.bashrc" "\.sh"
  400. header "^#!.*/(env +)?(ba|k|pdk)?sh[-0-9_]*( |$)"
  401. color brightblue "^[A-Za-z0-9_+-]+[[:space:]]*\(\)"
  402. color brightwhite "\<(case|do|done|elif|else|esac|fi|for|function|if)\>"
  403. color brightwhite "\<(in|select|then|time|until|while)\>"
  404. color brightblue "\<(echo|exit|export|let|local|read|return|set|shift|umask|unset)\>"
  405. color brightblue "\<(source)\>"
  406. color red "[{}()<>!=&|;`$]|\\|\[|\]|-(eq|ne|gt|lt|ge|le|s|n|z)\>"
  407. color yellow ""(\\.|[^"])*""
  408. color brightyellow "\$\{?[A-Za-z0-9_!@#$*?-]+\}?|`[^`]*`"
  409. color yellow "'(\\.|[^'])*'"
  410. color magenta "\\.?"
  411. color cyan "(^|[[:space:]])#([^{].*)?$"
  412. color brightwhite,cyan "TODO:?"
  413.  
  414. ## Haskell syntax highlighting
  415. ## found here: http://www.wubutu.com/2011/05/syntax-highlighting-nano-ban.html
  416. syntax "haskell" "\.hs$"
  417. ## language words
  418. color red "[ ](as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix|infixl|infixr|instance|let|in|mdo|module|newtype|qualified|type|where)[ ]"
  419. color red "(^data|^foreign|^import|^infix|^infixl|^infixr|^instance|^module|^newtype|^type)[ ]"
  420. color red "[ ](as$|case$|of$|class$|data$|default$|deriving$|do$|forall$|foreign$|hiding$|if$|then$|else$|import$|infix$|infixl$|infixr$|instance$|let$|in$|mdo$|module$|newtype$|qualified$|type$|where$)"
  421. ## lang symbols
  422. color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
  423. ## lang operators
  424. color magenta "(==|/=|&&|\|\||<|>|<=|>=)"
  425. ## lang symbols
  426. color cyan "(->|<-)"
  427. color magenta "\.|\$"
  428. ## data types
  429. ## color yellow "(Maybe|Double|Int|Integer|Float|Rational|Either|Char|String)"
  430. ## data constructors
  431. color magenta "(True|False|Nothing|Just|Left|Right|LT|EQ|GT)"
  432. ## data classes
  433. color magenta "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
  434. ## strings
  435. color yellow ""[^\"]*""
  436. ## Comment highlighting
  437. color green "--.*"
  438. color green start="\{-" end="-\}"
  439. color brightred "undefined"
Advertisement
Add Comment
Please, Sign In to add comment