From e9cd0045317c036523f6503f319d3d71f627e12e Mon Sep 17 00:00:00 2001 From: tqo50396 <150492926+tqo50396@users.noreply.github.com> Date: Sun, 10 Dec 2023 23:39:19 +0700 Subject: [PATCH 1/3] Create LICENSE Felix syntax coloring for Geany --- src/misc/geany/LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/misc/geany/LICENSE diff --git a/src/misc/geany/LICENSE b/src/misc/geany/LICENSE new file mode 100644 index 000000000..17d2caf4d --- /dev/null +++ b/src/misc/geany/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 tqo50396 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 1f12c3515675c63cb1146e0b5308b7cf8e6199d1 Mon Sep 17 00:00:00 2001 From: tqo50396 <150492926+tqo50396@users.noreply.github.com> Date: Sun, 10 Dec 2023 23:39:48 +0700 Subject: [PATCH 2/3] Create README.md Felix syntax coloring for Geany --- src/misc/geany/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/misc/geany/README.md diff --git a/src/misc/geany/README.md b/src/misc/geany/README.md new file mode 100644 index 000000000..add6c897a --- /dev/null +++ b/src/misc/geany/README.md @@ -0,0 +1,8 @@ +# Felix syntax coloring for Geany + +Download the file `filetypes.Felix.conf` and copy it to: + +- Linux: `~/.config/geany/filedefs/` +- Windows: `%AppData%\geany\filedefs` or `"Installation directory of Geany"\data\filedefs` + +Register `filetypes.Felix.conf` with Geany: `Tools -> Configuration Files -> filetype_extensions.conf` and add `Felix=*.flx;` to `[Extensions]` From fdf93421d166af555e42c49b40329cffda1bc7b8 Mon Sep 17 00:00:00 2001 From: tqo50396 <150492926+tqo50396@users.noreply.github.com> Date: Sun, 10 Dec 2023 23:40:26 +0700 Subject: [PATCH 3/3] Create filetypes.Felix.conf Felix syntax coloring for Geany --- src/misc/geany/filetypes.Felix.conf | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/misc/geany/filetypes.Felix.conf diff --git a/src/misc/geany/filetypes.Felix.conf b/src/misc/geany/filetypes.Felix.conf new file mode 100644 index 000000000..a6fba09fe --- /dev/null +++ b/src/misc/geany/filetypes.Felix.conf @@ -0,0 +1,50 @@ +# For complete documentation of this file, please see Geany's main documentation + +[styling=C] + +[keywords] +# all items must be in one line +primary=break continue repeat end catch try endtry assert axiom body break call case proj aproj inj ainj caseno casearg cfun class comment continue const cproc cstruct ctor subtype supertype ctypes def do done begin elif else otherwise endcase endif chainmatch ormatch endmatch enum cenum cflags expect extern for forget fork functor fun gen goto halt header ident include incomplete inf in instance is inherit inline jump lemma library let loop lval macro module namespace NaN new box unbox noinline nonterm noreturn not package pod private proc property routine callcc reduce ref rename requires return from SCHEME syntax literal spawn_fthread schedule_fthread spawn_process spawn_pthread static struct then todo to typedef typeset typefun type union variant use val var once virtual where when with yield uncopyable _gc_pointer _gc_type _svc _deref and implies as callback code false if isin match noexpand of or the true typematch typecase chip device connect connector circuit endcircuit wire _ body comment export header finaliser encoder decoder scanner include inherit inline macro noinline open package pod private publish reduce rename todo use inherit this root self all as attempt call case caseno code const class ctypes def endattempt except exceptions finally fork functor fun cfun goto interface inf method object extends implements extend jump lambda loop namespace module NaN obj of proc cproc raise ref regexp return regdef parse parser struct to type typedef typeof union when with if then else elif endif match typematch regmatch endmatch typecase endcase for do done downto until upto while next perform true false +secondary=unit void bool any byte address offset tiny short int long vlong utiny ushort uint ulong uvlong int8 int16 int32 int64 uint8 uint16 uint32 uint64 size ssize intptr uintptr intmax uintmax ptrdiff offset float double ldouble char wchar uchar string ustring cont pin array varray darray sarray bsarray carray list + +[lexer_properties=C] + +[settings] +lexer_filetype=C + +# default extension used when saving files +extension=flx + +# MIME type +mime_type=text/x-felix + +# these characters define word boundaries when making selections and searching +# using word matching options +#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 + +# single comments, like # in this file +comment_single=// +# multiline comments +comment_open=/* +comment_close=*/ + +# set to false if a comment character/string should start at column 0 of a line, true uses any +# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d +# #command_example(); +# setting to false would generate this +# # command_example(); +# This setting works only for single line comments +comment_use_indent=true + +# context action command (please see Geany's main documentation for details) +context_action_cmd= + +[indentation] +#width=4 +# 0 is spaces, 1 is tabs, 2 is tab & spaces +#type=1 + +[build-menu] +EX_00_LB=_Run +EX_00_CM=flx "%f" +EX_00_WD=