1 |
dang 07/09/19 19:01:10 |
2 |
|
3 |
Added: gentoo.lang digest-gtksourceview-1.8.5-r1 |
4 |
Log: |
5 |
Add a language spec for ebuilds; bug #155350 |
6 |
(Portage version: 2.1.3.9) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 x11-libs/gtksourceview/files/gentoo.lang |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtksourceview/files/gentoo.lang?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtksourceview/files/gentoo.lang?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: gentoo.lang |
15 |
=================================================================== |
16 |
<?xml version="1.0" encoding="UTF-8"?> |
17 |
<!DOCTYPE language SYSTEM "language.dtd"> |
18 |
|
19 |
<!-- |
20 |
GtkSourceView syntax highlight for Gentoo-specific files |
21 |
Leonardo Ferreira Fontenelle <leo.fontenelle@×××××.com>, 2006. |
22 |
Distributed under the same license(s) as gtksourceview. |
23 |
|
24 |
This .lang file should provide almost the same behaviour of |
25 |
gentoo.nanorc. The exceptions are the line-comment and string elements. |
26 |
If you get little |
27 |
|
28 |
TODO: |
29 |
- some styles don't get automatic colors, why? |
30 |
- add syntax for /etc/portage/* |
31 |
--> |
32 |
|
33 |
<language _name="Gentoo" version="1.0" _section="Scripts" mimetypes="text/plain"> |
34 |
|
35 |
<escape-char>\</escape-char> |
36 |
|
37 |
<line-comment _name="Line Comment" style="Comment"> |
38 |
<start-regex>#</start-regex> |
39 |
</line-comment> |
40 |
|
41 |
<string _name="String" style="String" end-at-line-end="false"> |
42 |
<start-regex>"</start-regex> |
43 |
<end-regex>"</end-regex> |
44 |
</string> |
45 |
|
46 |
<pattern-item _name="Bash syntax" style="Operator"> |
47 |
<regex>(\b(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\b|(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|>|%lt;|!|=|&|\|)|-(e|d|f|r|g|u|w|x|L)\b|-(eq|ne|gt|lt|ge|le|s|n|z)\b)</regex> |
48 |
</pattern-item> |
49 |
|
50 |
<pattern-item _name="Bash variables" style="Others"> |
51 |
<regex>\$\{?[a-zA-Z_0-9]+\}?</regex> |
52 |
</pattern-item> |
53 |
|
54 |
<pattern-item _name="Bash commands" style="Others 2"> |
55 |
<regex>(\bmake\b|\b(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\b)</regex> |
56 |
</pattern-item> |
57 |
|
58 |
<pattern-item _name="Portage variables" style="Keyword"> |
59 |
<regex>\b((ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)|(S|D|T|PV|PF|P|PN|A)|C(XX)?FLAGS|LDFLAGS|C(HOST|TARGET|BUILD))\b</regex> |
60 |
</pattern-item> |
61 |
|
62 |
<pattern-item _name="Portage commands" style="Data Type"> |
63 |
<regex>\b(e(begin|end|conf|install|make|warn|infon?|error|patch)|die|use(_(with|enable))?|inherit|has|(has|best)_version|unpack|(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)|do(python|sed|dir|hard|sym|html|jar|mo)|keepdir|prepall(|docs|info|man|strip)|prep(info|lib|lib\.(so|a)|man|strip)|(|doc|ins|exe)into|f(owners|perms)|(exe|ins|dir)opts)\b</regex> |
64 |
</pattern-item> |
65 |
|
66 |
<pattern-item _name="Portage functions" style="Function"> |
67 |
<regex>^(src_(unpack|compile|install|test)|pkg_(config|nofetch|setup|(pre|post)(inst|rm)))</regex> |
68 |
</pattern-item> |
69 |
|
70 |
<pattern-item _name="Inherits and USE flags" style="Specials"> |
71 |
<regex>(\buse(_(with|enable))?\b [\!a-zA-Z0-9_+ -]*|inherit*$)</regex> |
72 |
</pattern-item> |
73 |
|
74 |
</language> |
75 |
|
76 |
|
77 |
|
78 |
1.1 x11-libs/gtksourceview/files/digest-gtksourceview-1.8.5-r1 |
79 |
|
80 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtksourceview/files/digest-gtksourceview-1.8.5-r1?rev=1.1&view=markup |
81 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtksourceview/files/digest-gtksourceview-1.8.5-r1?rev=1.1&content-type=text/plain |
82 |
|
83 |
Index: digest-gtksourceview-1.8.5-r1 |
84 |
=================================================================== |
85 |
MD5 de67df2944c1cccbc2d0b4a738e11050 gtksourceview-1.8.5.tar.bz2 785000 |
86 |
RMD160 978c59d5f99baeb5d8b9c3c14246ffc48ce150f8 gtksourceview-1.8.5.tar.bz2 785000 |
87 |
SHA256 19c6575457fb99764f3e71197503e4c275bd03e35245afe1cf3b584e70bf0f8d gtksourceview-1.8.5.tar.bz2 785000 |
88 |
|
89 |
|
90 |
|
91 |
-- |
92 |
gentoo-commits@g.o mailing list |