made the pack completely portable and wrote relevent bat files to go with it
This commit is contained in:
39
gitportable/usr/share/nano/extra/ada.nanorc
Normal file
39
gitportable/usr/share/nano/extra/ada.nanorc
Normal file
@@ -0,0 +1,39 @@
|
||||
## Syntax highlighting for Ada.
|
||||
|
||||
## Original author: Andreas K. Foerster
|
||||
## License: GPL version 3 or newer
|
||||
|
||||
## Language reference: http://www.ada-auth.org/standards/12rm/html/RM-TTL.html
|
||||
|
||||
syntax ada "\.ad[abcs]$"
|
||||
comment "--"
|
||||
|
||||
# This linter command leaves an ALI file in the working directory.
|
||||
linter gcc -c -gnatc
|
||||
|
||||
# Reserved Words (RM 2.9)
|
||||
icolor yellow "\<(abort|abs|abstract|accept|access|aliased|all|and|array|at)\>"
|
||||
icolor yellow "\<(begin|body|case|constant|declare|delay|delta|do)\>"
|
||||
icolor yellow "\<(else|elsif|end|entry|exception|exit|for|function|generic|goto)\>"
|
||||
icolor yellow "\<(if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding)\>"
|
||||
icolor yellow "\<(package|pragma|private|procedure|protected|raise|range|record|rem|renames)\>"
|
||||
icolor yellow "\<(requeue|return|reverse|select|separate|some|subtype|synchronized)\>"
|
||||
icolor yellow "\<(tagged|task|terminate|then|type|until|use|when|while|with|xor)\>"
|
||||
|
||||
# Separators / Operators
|
||||
color magenta "'|&|\*|\+|\-|\.|\,|\/|:|;|\(|\)|<|>|\||="
|
||||
|
||||
# Attributes
|
||||
color cyan "'[[:alnum:]]+"
|
||||
|
||||
# Numbers (RM 2.4)
|
||||
color green "\<[0-9][0-9A-Fa-f_#.+-]*"
|
||||
|
||||
# Characters / Strings
|
||||
color red "'.'|"[^"]*""
|
||||
|
||||
# Comments
|
||||
color brightblue "--.*"
|
||||
|
||||
# Trailing whitespace
|
||||
color ,blue "[[:space:]]+$"
|
||||
42
gitportable/usr/share/nano/extra/fortran.nanorc
Normal file
42
gitportable/usr/share/nano/extra/fortran.nanorc
Normal file
@@ -0,0 +1,42 @@
|
||||
## Syntax highlighting for Fortran 90/95.
|
||||
|
||||
## Original author: Pascal Gentil
|
||||
|
||||
syntax fortran "\.(f|for|f90|f95)$"
|
||||
comment "!"
|
||||
|
||||
color red "\<[0-9]+\>"
|
||||
|
||||
icolor green "\<(action|advance|all|allocatable|allocated|any|apostrophe)\>"
|
||||
icolor green "\<(append|asis|assign|assignment|associated|character|common)\>"
|
||||
icolor green "\<(complex|data|default|delim|dimension|double precision)\>"
|
||||
icolor green "\<(elemental|epsilon|external|file|fmt|form|format|huge)\>"
|
||||
icolor green "\<(implicit|include|index|inquire|integer|intent|interface)\>"
|
||||
icolor green "\<(intrinsic|iostat|kind|logical|module|none|null|only)\>"
|
||||
icolor green "\<(operator|optional|pack|parameter|pointer|position|private)\>"
|
||||
icolor green "\<(program|public|real|recl|recursive|selected_int_kind)\>"
|
||||
icolor green "\<(selected_real_kind|subroutine|status)\>"
|
||||
|
||||
icolor cyan "\<(abs|achar|adjustl|adjustr|allocate|bit_size|call|char)\>"
|
||||
icolor cyan "\<(close|contains|count|cpu_time|cshift|date_and_time)\>"
|
||||
icolor cyan "\<(deallocate|digits|dot_product|eor|eoshift|function|iachar)\>"
|
||||
icolor cyan "\<(iand|ibclr|ibits|ibset|ichar|ieor|iolength|ior|ishft|ishftc)\>"
|
||||
icolor cyan "\<(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\>"
|
||||
icolor cyan "\<(minexponent|minloc|minval|mvbits|namelist|nearest|nullify)\>"
|
||||
icolor cyan "\<(open|pad|present|print|product|pure|quote|radix)\>"
|
||||
icolor cyan "\<(random_number|random_seed|range|read|readwrite|replace)\>"
|
||||
icolor cyan "\<(reshape|rewind|save|scan|sequence|shape|sign|size|spacing)\>"
|
||||
icolor cyan "\<(spread|sum|system_clock|target|transfer|transpose|trim)\>"
|
||||
icolor cyan "\<(ubound|unpack|verify|write|tiny|type|use|yes)\>"
|
||||
|
||||
icolor yellow "\<(.and.|case|do|else|else?if|else?where|end|end?do|end?if)\>"
|
||||
icolor yellow "\<(end?select|.eqv.|forall|if|lge|lgt|lle|llt|.neqv.|.not.)\>"
|
||||
icolor yellow "\<(.or.|repeat|select case|then|where|while)\>"
|
||||
|
||||
icolor magenta "\<(continue|cycle|exit|go?to|result|return)\>"
|
||||
|
||||
# Strings.
|
||||
color yellow ""([^"\]|\\.)*""
|
||||
|
||||
# Comments.
|
||||
color blue "!.*"
|
||||
40
gitportable/usr/share/nano/extra/haskell.nanorc
Normal file
40
gitportable/usr/share/nano/extra/haskell.nanorc
Normal file
@@ -0,0 +1,40 @@
|
||||
## Syntax highlighting for Haskell files.
|
||||
|
||||
## Original author: Alex Taber
|
||||
## License: GPL version 3
|
||||
|
||||
syntax "haskell" "\.hs$"
|
||||
comment "--"
|
||||
|
||||
# Keywords
|
||||
color red "\<(as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix(l|r)?|instance|let|in|mdo|module|newtype|qualified|type|where)\>"
|
||||
|
||||
# Various symbols
|
||||
color cyan "\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\}"
|
||||
|
||||
# Operators
|
||||
color magenta "==|/=|&&|\|\||<|>|<=|>="
|
||||
|
||||
# More symbols
|
||||
color cyan "->|<-|=>"
|
||||
color magenta "\.|\$"
|
||||
|
||||
# Data constructors
|
||||
color magenta "\<(True|False|Nothing|Just|Left|Right|LT|EQ|GT)\>"
|
||||
# Data classes
|
||||
color magenta "\<(Bounded|Data|Enum|Eq|Floating|Fractional|Functor|Integral|Monad|MonadPlus|Num|Ord|Read|Real|RealFloat|RealFrac|Show|Typeable)\>"
|
||||
|
||||
# Special keyword
|
||||
color brightred "undefined"
|
||||
|
||||
# Strings
|
||||
color yellow ""([^"\]|\\.)*""
|
||||
# Characters
|
||||
color brightyellow "'([^'\]|\\.)'"
|
||||
|
||||
# Comments
|
||||
color green "--.*"
|
||||
color green start="\{-" end="-\}"
|
||||
|
||||
# Trailing whitespace
|
||||
color ,green "[[:space:]]+$"
|
||||
18
gitportable/usr/share/nano/extra/povray.nanorc
Normal file
18
gitportable/usr/share/nano/extra/povray.nanorc
Normal file
@@ -0,0 +1,18 @@
|
||||
## Syntax highlighting for POV-Ray files.
|
||||
|
||||
## Original author: Donnie Berkholz
|
||||
|
||||
syntax pov "\.(pov|POV|povray|POVRAY)$"
|
||||
comment "//"
|
||||
|
||||
color brightcyan "^[[:space:]]*#[[:space:]]*(declare)"
|
||||
color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>"
|
||||
color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>"
|
||||
color brightyellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>"
|
||||
color brightred "\<(background|camera|fog|light_source|object|texture)\>"
|
||||
color green "\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|"
|
||||
color brightmagenta "\<(union|group|subgroup)\>"
|
||||
|
||||
# Comments.
|
||||
color brightblue "//.*"
|
||||
color brightblue start="/\*" end="\*/"
|
||||
45
gitportable/usr/share/nano/extra/spec.nanorc
Normal file
45
gitportable/usr/share/nano/extra/spec.nanorc
Normal file
@@ -0,0 +1,45 @@
|
||||
## Syntax highlighting for RPM spec files.
|
||||
|
||||
## Original author: Asterios Dramis
|
||||
|
||||
syntax spec "\.spec(\.[^/]+)?$"
|
||||
comment "#"
|
||||
|
||||
# Main tags.
|
||||
color brightblue "\<(Name|Version|Release|Summary|Group|URL|Url|Epoch|Icon|Serial)[[:space:]]*:"
|
||||
color brightblue "\<(BuildArch(itectures)?|Exclusive(Arch|OS)|Exclude(Arch|OS))[[:space:]]*:"
|
||||
color brightblue "\<(Provides|Requires(\(.*\))?|Obsoletes|Conflicts|Recommends|Suggests|Supplements|Enhances|PreReq)[[:space:]]*:"
|
||||
color brightblue "\<(BuildRoot|BuildRequires|BuildConflicts|Prefix|RemovePathPostfixes)[[:space:]]*:"
|
||||
color brightblue "\<(AutoReq|AutoProv|AutoReqProv)[[:space:]]*:"
|
||||
color brightblue "\<(License|Copyright|Distribution|Vendor|Packager)[[:space:]]*:"
|
||||
color brightblue "\<((Source|Patch)[0-9]*|Nosource|Nopatch)[[:space:]]*:"
|
||||
# Architectures.
|
||||
color brightred "\<((a|loong)arch64|alpha(ev(56?|67?)|pca56)?|amd64|armv(3l|4b|4l|5t(ej?)?l|6h?l|7(hn?)?l|8h?l)|athlon|em64t|geode|i370|i(3|4|5|6)86|ia32e|ia64|m68k(mint)?|mips(64)?(el|r6|r6el)?)\>"
|
||||
color brightred "\<(pentium(3|4)|ppc(32dy4|8260|8560)?|ppc64(le|p7)?|ppc(64)?(i|p)series|riscv64|rs6000|s390x?|sgi|sh(3|4|4a)?|sparc(64v?|v8|v9v?)?|x86_64(_v2|_v3|_v4)?|xtensa)\>"
|
||||
|
||||
# Architecture and OS conditionals.
|
||||
color brightred "%(ifarch|elifarch|ifnarch|ifos|elifos|ifnos)\>"
|
||||
# %* strings.
|
||||
color green "%([A-Z_a-z_0-9_]*)"
|
||||
color magenta "%_([A-Z_a-z_0-9_]*)"
|
||||
color yellow start="%__" end="\ "
|
||||
color magenta start="%\{" end="\}"
|
||||
color yellow start="%\{__" end="\}"
|
||||
# Sections.
|
||||
color red "^%((prep|build|install|check|clean)$|(description|files|package|changelog)\>)"
|
||||
color red "^%((pre|post)(trans|un)?|trigger(prein|in|un|postun)?)\>"
|
||||
color red "^%(trans)?filetrigger(in|un|postun)\>"
|
||||
color red "^%(sourcelist|patchlist|generate_buildrequires|verifyscript)\>"
|
||||
# Conditionals and defines.
|
||||
color brightred "%(if|elif|else|endif|define|global|undefine)\>"
|
||||
|
||||
# Comments.
|
||||
color cyan "(#|%dnl[[:space:]]).*"
|
||||
# Special case: "# norootforbuild" is handled as main tag.
|
||||
color brightblue "^# norootforbuild"
|
||||
# For %changelog entries: first the author, then just the date.
|
||||
color yellow "^\* .+>"
|
||||
color brightyellow "^\* [[:alnum:] ]+ [0-9]{4} "
|
||||
|
||||
# Trailing whitespace.
|
||||
color ,green "[[:space:]]+$"
|
||||
Reference in New Issue
Block a user