Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Emmanuel Bourg Newsgroups: linux.debian.bugs.dist,linux.debian.maint.java Subject: Bug#801103: nano: Syntax highlighting for Groovy files Date: Tue, 06 Oct 2015 12:40:02 +0200 Message-ID: X-Original-To: Debian Bug Tracking System X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Oct 6 10:33:16 2015 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -4.197 Reply-To: Emmanuel Bourg , 801103@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: ebourg@apache.org, debian-java@lists.debian.org, Jordi Mallach X-Debian-Pr-Message: report 801103 X-Debian-Pr-Package: nano X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: nano X-Spam-Bayes: score:0.0000 Tokens: new, 6; hammy, 137; neutral, 53; spammy, 3. spammytokens:0.956-+--H*r:bugs.debian.org, 0.918-+--popular, 0.900-+--super hammytokens:0.000-+--HX-Debbugs-Cc:sk:debian-, 0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug Content-Type: multipart/mixed; boundary="===============4496154242747608701==" MIME-Version: 1.0 X-Mailer: reportbug 6.6.5 X-Debian-Message: from BTS X-Mailing-List: archive/latest/1214524 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 58 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 06 Oct 2015 12:31:57 +0200 X-Original-Message-ID: <20151006103157.31841.63753.reportbug@icare.ariane-software.com> Xref: csiph.com linux.debian.bugs.dist:685103 linux.debian.maint.java:8427 This is a multi-part MIME message sent by reportbug. --===============4496154242747608701== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Package: nano Version: 2.4.2-1 Severity: wishlist Tags: patch Dear Maintainer, Could you please consider adding syntax highlighting for Groovy files? This language is increasingly popular in the Java ecosystem, and several packages now use Groovy based build files. Proper syntax highlighting would make editing these files easier. Thank you, Emmanuel Bourg --===============4496154242747608701== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="groovy.nanorc" ## Here is an example for Groovy. syntax "groovy" "\.(groovy|gradle)$" # Keywords color brightblue "\<(boolean|byte|char|double|enum|float|int|long|new|short|super|this|transient)\>" color brightblue "\<(as|assert|break|case|catch|continue|default|do|else|finally|for|goto|if|in|return|switch|throw|try|while)\>" color brightblue "\<(abstract|class|extends|implements|import|interface|native|package|private|protected|public|static|strictfp|synchronized|throws|trait|void|volatile)\>" color brightblue "\<(const|def|final|instanceof)\>" color brightblue "\<(true|false|null)\>" # Strings color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" # Interpolation icolor yellow "\$\{[^\}]*}" # Comments color cyan "^//.*" color cyan "\s//.*" color cyan start="^/\*(\*)?" end="\*/" color cyan start="\s/\*(\*)?" end="\*/" # Trailing whitespace color ,green "[[:space:]]+$" --===============4496154242747608701==--