From f384647e4bf4d8995767c1213ee9fc7272a02d7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Christophe=20Beaupr=C3=A9?= Date: Mon, 26 Jun 2017 14:42:21 -0400 Subject: [PATCH] gtksourceview: Rewrite the language definition MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The new definition includes: * A more accurate and up-to-date grammar * A more accurate style list * A list of built-in annotations * Heuristics for embedded languages * Spell-checking only enabled for comments * Styles for operators and lower-case identifiers available if needed (but not highlighted by default) Signed-off-by: Jean-Christophe Beaupré --- NOTICE | 10 - misc/gtksourceview/nit.lang | 571 +++++++++++++++++++++++++++---------------- 2 files changed, 366 insertions(+), 215 deletions(-) diff --git a/NOTICE b/NOTICE index 5a96547..32b5754 100644 --- a/NOTICE +++ b/NOTICE @@ -72,16 +72,6 @@ Files: share/nitdoc/scripts/jquery-1.7.1.min.js Copyright: 2011 John Resig, http://jquery.com/ Licence: BSD 2 (see LICENSE-BSD) -Files: /misc/gtksourceview/nit.lang -Copyright: 2009-2011 Alexis Laferrière - 2011-2017 Jean Privat - Based on ruby.lang from - 2004 Archit Baweja - 2005 Michael Witrant - 2006 Gabriel Bauman -License: GPL 2.0 (see LICENSE-GPL-2) -Comment: GPL because the original work is GPL - Files: /share/png/* Copyright: 1998-2014 Glenn Randers-Pehrson 1996-1997 Andreas Dilger diff --git a/misc/gtksourceview/nit.lang b/misc/gtksourceview/nit.lang index 2e7a08e..977c50f 100644 --- a/misc/gtksourceview/nit.lang +++ b/misc/gtksourceview/nit.lang @@ -1,214 +1,375 @@ + + + + text/x-nit + *.nit + # + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + +