From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-editors/nano/files: awk.nanorc xml.nanorc css.nanorc |
Date: | Sat, 10 May 2008 10:23:43 |
Message-Id: | E1JumEu-0002Cy-Df@stork.gentoo.org |
1 | vapier 08/05/10 10:23:40 |
2 | |
3 | Added: awk.nanorc xml.nanorc css.nanorc |
4 | Log: |
5 | Add awk syntax #220821 by Donnie Berkholz and xml/css #163723 by Jan Vansteenkiste. |
6 | (Portage version: 2.2_pre5) |
7 | |
8 | Revision Changes Path |
9 | 1.1 app-editors/nano/files/awk.nanorc |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/files/awk.nanorc?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/files/awk.nanorc?rev=1.1&content-type=text/plain |
13 | |
14 | Index: awk.nanorc |
15 | =================================================================== |
16 | ## Here is an example for awk. |
17 | ## |
18 | syntax "awk" "\.awk$" |
19 | ## records |
20 | icolor brightred "\$[0-9A-Z_!@#$*?-]+" |
21 | ## awk-set variables |
22 | color red "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" |
23 | color red "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" |
24 | color red "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" |
25 | ## function declarations and special patterns |
26 | color brightgreen "\<(function|extension|BEGIN|END)\>" |
27 | ## operators |
28 | color green "(\{|\}|\(|\)|\;|\]|\[|\\|<|>|!|=|&|\+|-|\*|%|/|\?:|\^|\|)" |
29 | ## flow control |
30 | color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>" |
31 | color brightyellow "\<(break|continue|return)\>" |
32 | ## I/O statements |
33 | color brightgreen "\<(close|getline|next|nextfile|print|printf)\>" |
34 | color brightgreen "\<(system|fflush)\>" |
35 | ## standard functions |
36 | color magenta "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>" |
37 | color magenta "\<(asort|asorti|gensub|gsub|index|length|match)\>" |
38 | color magenta "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>" |
39 | color magenta "\<(mktime|strftime|systime)\>" |
40 | color magenta "\<(and|compl|lshift|or|rshift|xor)\>" |
41 | color magenta "\<(bindtextdomain|dcgettext|dcngettext)\>" |
42 | |
43 | ## |
44 | ## String highlighting. You will in general want your comments and |
45 | ## strings to come last, because syntax highlighting rules will be |
46 | ## applied in the order they are read in. |
47 | color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" |
48 | |
49 | ## Comment highlighting |
50 | color brightblue "(^|[[:space:]])#.*$" |
51 | |
52 | ## Trailing whitespace |
53 | color ,green "[[:space:]]+$" |
54 | |
55 | |
56 | |
57 | 1.1 app-editors/nano/files/xml.nanorc |
58 | |
59 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/files/xml.nanorc?rev=1.1&view=markup |
60 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/files/xml.nanorc?rev=1.1&content-type=text/plain |
61 | |
62 | Index: xml.nanorc |
63 | =================================================================== |
64 | ## Here is an example for xml files. |
65 | ## |
66 | syntax "xml" "\.([jrs]html?|sgml?|xml|xslt?)$" |
67 | color green start="<" end=">" |
68 | color cyan "<[^> ]+" |
69 | color cyan ">" |
70 | color yellow start="<!DOCTYPE" end="[/]?>" |
71 | color yellow start="<!--" end="-->" |
72 | color red "&[^;]*;" |
73 | |
74 | |
75 | |
76 | 1.1 app-editors/nano/files/css.nanorc |
77 | |
78 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/files/css.nanorc?rev=1.1&view=markup |
79 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/files/css.nanorc?rev=1.1&content-type=text/plain |
80 | |
81 | Index: css.nanorc |
82 | =================================================================== |
83 | ## Here is an example for css files. |
84 | ## |
85 | syntax "css" "\.css$" |
86 | color brightred "." |
87 | color brightyellow start="\{" end="\}" |
88 | color brightwhite start=":" end="[;^\{]" |
89 | color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" |
90 | color brightblue start="\/\*" end="\\*/" |
91 | color green ";|:|\{|\}" |
92 | |
93 | |
94 | |
95 | -- |
96 | gentoo-commits@l.g.o mailing list |