Browse Source

.nanorc added.

master
Kolan Sh 6 years ago
parent
commit
5f9a31800e
1 changed files with 111 additions and 0 deletions
  1. 111
    0
      .nanorc

+ 111
- 0
.nanorc View File

@@ -0,0 +1,111 @@
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
+
12
+syntax "pkgbuild" "^.*PKGBUILD$"
13
+color green start="^" end="$"
14
+color cyan "^.*(pkgname|pkgver|pkgrel|pkgdesc|force|url|license|install|source|md5sums|groups|backup|depends|makedepends|conflicts|provides|replaces).*=.*$"
15
+color brightcyan "\<(pkgname|pkgver|pkgrel|pkgdesc|force|url|license|install|source|md5sums|groups|backup|depends|makedepends|conflicts|provides|replaces)\>"
16
+color cyan "\.install"
17
+color brightwhite "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}"
18
+color brightcyan "(\$|\$\{|\$\()(pkgname|pkgver|pkgrel|pkgdesc|force|url|license|install|source|md5sums|groups|backup|depends|makedepends|conflicts|provides|replaces|startdir)(|\}|\))"
19
+color brightred "build\(\)"
20
+color brightred "\<(configure|make)\>"
21
+color red "\<(DESTDIR|PREFIX|prefix|sysconfdir|datadir|libdir|includedir|mandir)\>"
22
+
23
+syntax "c-file" "\.(c|h)$"
24
+color red "\<[A-Z_]{2,}\>"
25
+color green "\<(float|char|int|void|static|const|struct)\>"
26
+color brightyellow "\<(if|while|do|else|case|switch)\>"
27
+color brightcyan "^#( )*(define|include|ifn?def|endif|elif|else|if)"
28
+
29
+syntax "php" "\.php[2345s~]?$"
30
+color brightblue "(.*)\("
31
+color blue "\$[a-zA-Z_0-9$]*|[=!<>]"
32
+color green "(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|@|while)\s"
33
+color green "[.,{}();]"
34
+color red "('.*')|(\".*\")"
35
+color brightyellow "(#.*|//.*)$"
36
+color brightyellow start="/\*" end="\*/"
37
+color brightblue "(<\?(php)?|\?>)"
38
+color white start="\?>" end="<\?(php)?"
39
+
40
+syntax "HTML" "\.html$"
41
+color blue start="<" end=">"
42
+color red "&[^; ]*;"
43
+
44
+syntax "patch" "\.(patch|diff)$"
45
+color brightgreen "^\+.*"
46
+color green "^\+\+\+.*"
47
+color brightblue "^ .*"
48
+color brightred "^-.*"
49
+color red "^---.*"
50
+color brightyellow "^@@.*"
51
+color magenta "^diff.*"
52
+
53
+syntax "Java source" "\.java$"
54
+color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
55
+color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
56
+color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>"
57
+color red ""[^\"]*""
58
+color yellow "\<(true|false|null)\>"
59
+color blue "//.*"
60
+color blue start="/\*" end="\*/"
61
+color brightblue start="/\*\*" end="\*/"
62
+color brightgreen,green " +$"
63
+
64
+syntax "ml" ".*\.([jrs]?html?|xml|sgml?)$"
65
+color white "^.+$"
66
+color green start="<" end=">"
67
+color cyan "<[^> ]+"
68
+color cyan ">"
69
+color yellow start="<!DOCTYPE" end="[/]?>"
70
+color yellow start="<!--" end="-->"
71
+color red "&[^;]*;"
72
+
73
+## syntax highlighting in xorg.conf
74
+##
75
+syntax "xorg" "xorg\.conf$"
76
+color brightwhite "(Section|EndSection|Sub[sS]ection|EndSub[sS]ection)"
77
+# keywords
78
+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]"
79
+# numbers
80
+color magenta "[0-9]"
81
+# strings
82
+color green ""(\\.|[^\"])*""
83
+# comments
84
+color white "#.*"
85
+
86
+
87
+# Generic conf/rc/sh file syntax highlighting
88
+#############################################
89
+syntax "conf/rc/sh" "conf$|rc$|sh$"
90
+color white ".+"
91
+color green "^#.*"
92
+
93
+# .nanorc syntax highlighting
94
+#############################
95
+syntax "nanorc" "[\.]*nanorc$"
96
+color white "^ *(set|unset).*$"
97
+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)"
98
+color brightwhite "^ *syntax [^ ]*"
99
+color brightblue "^ *set\>" "^ *unset\>" "^ *syntax\>"
100
+color white "^ *color\>.*"
101
+color yellow "^ *color (bright)?(black|blue|cyan|green|magenta|red|white|yellow)\>"
102
+color magenta "^ *color\>"
103
+color green "^#.*$"
104
+
105
+# grub.conf/cfg syntax highlighting
106
+###############################
107
+syntax "grub.conf/cfg" "grub\.conf|cfg"
108
+color cyan "(^default.+|^timeout.+)"
109
+color red "^title.+"
110
+color yellow "(initrd.+|kernel.+|root.+)"
111
+color green "^#.*"

Loading…
Cancel
Save