summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gryniewicz <dang@gentoo.org>2007-09-19 19:01:10 +0000
committerDaniel Gryniewicz <dang@gentoo.org>2007-09-19 19:01:10 +0000
commit690103817fcb3d76d9dfab70bc097387fea04fbd (patch)
tree4b9744f6074d7deba3f904f2363f05fbbe7127a8 /x11-libs/gtksourceview/files
parentStable on ppc; bug #191739. (diff)
downloadgentoo-2-690103817fcb3d76d9dfab70bc097387fea04fbd.tar.gz
gentoo-2-690103817fcb3d76d9dfab70bc097387fea04fbd.tar.bz2
gentoo-2-690103817fcb3d76d9dfab70bc097387fea04fbd.zip
Add a language spec for ebuilds; bug #155350
(Portage version: 2.1.3.9)
Diffstat (limited to 'x11-libs/gtksourceview/files')
-rw-r--r--x11-libs/gtksourceview/files/digest-gtksourceview-1.8.5-r13
-rw-r--r--x11-libs/gtksourceview/files/gentoo.lang59
2 files changed, 62 insertions, 0 deletions
diff --git a/x11-libs/gtksourceview/files/digest-gtksourceview-1.8.5-r1 b/x11-libs/gtksourceview/files/digest-gtksourceview-1.8.5-r1
new file mode 100644
index 000000000000..2908af7aa67f
--- /dev/null
+++ b/x11-libs/gtksourceview/files/digest-gtksourceview-1.8.5-r1
@@ -0,0 +1,3 @@
+MD5 de67df2944c1cccbc2d0b4a738e11050 gtksourceview-1.8.5.tar.bz2 785000
+RMD160 978c59d5f99baeb5d8b9c3c14246ffc48ce150f8 gtksourceview-1.8.5.tar.bz2 785000
+SHA256 19c6575457fb99764f3e71197503e4c275bd03e35245afe1cf3b584e70bf0f8d gtksourceview-1.8.5.tar.bz2 785000
diff --git a/x11-libs/gtksourceview/files/gentoo.lang b/x11-libs/gtksourceview/files/gentoo.lang
new file mode 100644
index 000000000000..ead788cf894b
--- /dev/null
+++ b/x11-libs/gtksourceview/files/gentoo.lang
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language SYSTEM "language.dtd">
+
+<!--
+ GtkSourceView syntax highlight for Gentoo-specific files
+ Leonardo Ferreira Fontenelle <leo.fontenelle@gmail.com>, 2006.
+ Distributed under the same license(s) as gtksourceview.
+
+ This .lang file should provide almost the same behaviour of
+ gentoo.nanorc. The exceptions are the line-comment and string elements.
+ If you get little
+
+ TODO:
+ - some styles don't get automatic colors, why?
+ - add syntax for /etc/portage/*
+-->
+
+<language _name="Gentoo" version="1.0" _section="Scripts" mimetypes="text/plain">
+
+ <escape-char>\</escape-char>
+
+ <line-comment _name="Line Comment" style="Comment">
+ <start-regex>#</start-regex>
+ </line-comment>
+
+ <string _name="String" style="String" end-at-line-end="false">
+ <start-regex>&quot;</start-regex>
+ <end-regex>&quot;</end-regex>
+ </string>
+
+ <pattern-item _name="Bash syntax" style="Operator">
+ <regex>(\b(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\b|(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|&gt;|%lt;|!|=|&amp;|\|)|-(e|d|f|r|g|u|w|x|L)\b|-(eq|ne|gt|lt|ge|le|s|n|z)\b)</regex>
+ </pattern-item>
+
+ <pattern-item _name="Bash variables" style="Others">
+ <regex>\$\{?[a-zA-Z_0-9]+\}?</regex>
+ </pattern-item>
+
+ <pattern-item _name="Bash commands" style="Others 2">
+ <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>
+ </pattern-item>
+
+ <pattern-item _name="Portage variables" style="Keyword">
+ <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>
+ </pattern-item>
+
+ <pattern-item _name="Portage commands" style="Data Type">
+ <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>
+ </pattern-item>
+
+ <pattern-item _name="Portage functions" style="Function">
+ <regex>^(src_(unpack|compile|install|test)|pkg_(config|nofetch|setup|(pre|post)(inst|rm)))</regex>
+ </pattern-item>
+
+ <pattern-item _name="Inherits and USE flags" style="Specials">
+ <regex>(\buse(_(with|enable))?\b [\!a-zA-Z0-9_+ -]*|inherit*$)</regex>
+ </pattern-item>
+
+</language>