[geany/geany] d19f77: Add Groovy custom filetype (#2188)
Nick Treleaven
git-noreply at xxxxx
Sat Aug 17 10:34:44 UTC 2019
Branch: refs/heads/master
Author: Nick Treleaven <n at trelsoft.com>
Committer: GitHub <noreply at github.com>
Date: Sat, 17 Aug 2019 10:34:44 UTC
Commit: d19f7719a5c3c81b4fa87df4bd2c7d8f3959e117
https://github.com/geany/geany/commit/d19f7719a5c3c81b4fa87df4bd2c7d8f3959e117
Log Message:
-----------
Add Groovy custom filetype (#2188)
* Add Groovy custom filetype
* Don't highlight lines with unterminated string literal; C++ tags
* filetype registration
* Add *.gradle and build menu commands
Modified Paths:
--------------
data/Makefile.am
data/filedefs/filetypes.Groovy.conf
data/filetype_extensions.conf
Modified: data/Makefile.am
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -37,6 +37,7 @@ filetypes = \
filedefs/filetypes.glsl \
filedefs/filetypes.go \
filedefs/filetypes.Graphviz.conf \
+ filedefs/filetypes.Groovy.conf \
filedefs/filetypes.haskell \
filedefs/filetypes.haxe \
filedefs/filetypes.html \
Modified: data/filedefs/filetypes.Groovy.conf
30 lines changed, 30 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,30 @@
+[styling=C]
+stringeol=string_1
+
+[keywords]
+# http://docs.groovy-lang.org/docs/next/html/documentation/#_keywords
+primary=as assert break case catch class const continue def default do else enum extends false finally for goto if implements import in instanceof interface new null package return super switch this throw throws trait true try while
+# http://groovy-lang.org/objectorientation.html#_primitive_types
+secondary=boolean byte char double float int long short void
+# documentation keywords for javadoc
+doccomment=author deprecated exception param return see serial serialData serialField since throws todo version
+typedefs=
+
+[lexer_properties=C]
+lexer.cpp.allow.dollars=1
+lexer.cpp.triplequoted.strings=1
+
+[settings]
+lexer_filetype=C
+tag_parser=C++
+extension=groovy
+mime_type=text/x-groovy
+
+[build-menu]
+FT_00_LB=_Compile
+FT_00_CM=groovyc "%f"
+FT_00_WD=
+
+EX_00_LB=Execute _Script
+EX_00_CM=groovy "%f"
+EX_00_WD=
Modified: data/filetype_extensions.conf
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -35,6 +35,7 @@ Genie=*.gs;
GLSL=*.glsl;*.frag;*.vert;
Go=*.go;
Graphviz=*.gv;*.dot;
+Groovy=*.groovy;*.gradle;
Haskell=*.hs;*.lhs;*.hs-boot;*.lhs-boot;
Haxe=*.hx;
HTML=*.htm;*.html;*.shtml;*.hta;*.htd;*.htt;*.cfm;*.tpl;
@@ -77,7 +78,7 @@ None=*;
# Note: restarting is required after editing groups
[Groups]
-Programming=Arduino;Clojure;CUDA;Cython;Genie;Kotlin;Scala;Swift;
+Programming=Arduino;Clojure;CUDA;Cython;Genie;Groovy;Kotlin;Scala;Swift;
Script=Graphviz;
Markup=
Misc=JSON;
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list