Re: [Seed7-users] Nano editor syntax file
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
From: Duke N. <duk...@gm...> - 2022-06-12 13:36:32
|
On Sun, 12 Jun 2022 11:29:23 +0200 Thomas Mertes <tho...@gm...> wrote: > On Tue, 7 Jun 2022 16:59:00 +0200 Duke Normadin <dukeof...@gm...> > wrote: > > I've just put together a syntax file for the nano editor. > > It can/needs improvement(s), but it works just fine as is. > > I can make it available. How? > > Great. If it is a text file (XML, JSON or otherwise non-binary) > you can just send the file(s) content just as part of a mail like: > ---------- begin seed7.nanorc ---------- # Seed7 syntax highlighting for Nano editor # on Debian distros, this file lives in $HOME/.config/nano/ # change the colours to suit your taste. syntax "seed7" "\.sd7" ##[Keywords 1] color brightcyan "\<(begin|case|const|do|downto|else|elsif|end|enum| exp|for|forward|func|false|if|in|include|inout|is|local|new|of|otherwise|param|range|ref|repeat|result|return|sci|struct|syntax|system|then|to|true|until|val|var|when|while) exp|for|forward|func|false|if|in|include|inout|is|local|new|of|otherwise|param|range|ref|repeat|result|return|sci|struct|syntax|system|then|to|true|until|val|var|when|\>" ##[Keywords 2] color brightred "array|biginteger|bigrational|bitset|boolean|char| color|complex|duration|expr|file|float|func|hash|integer|object|proc|program|rational|reference|ref_list| color|complex|duration|expr|file|float|func|hash|integer|object|proc|program|rational|reference|set|string|text|time|type|varfunc|void" ## strings ##color green ""(\\.|[^"])*"" ## Strings, double-quoted color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "% [QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" ##[Keywords 3] ## color cyan "\+|-|\>|\<|\^|:|=|:=|<>|<=|>=|><|**|<<|>>|<&|+:=|-:=| ## \*:=|\/:=|\<<:=|>>:=|\&:=|\@:=" ##[Keywords 4] color magenta "\<(and|conv|digits|div|exp|lpad|lpad0|mdiv|mod|mult| not|or|parse|rem|rpad|sci|times|varconv)\>" ##[Keyword 5] color brightblue "read|readln|write|writeln" > ---------- end seed7.nanorc ---------- This nano syntax file is a WIP and my first attempt to get something working. It needs improvement that is certain. :) -- Duke ** Bottom-posting, text-only is the netiquette way! ** |