mirror of
https://github.com/scopatz/nanorc
synced 2025-04-05 13:30:05 +02:00
Compare commits
100 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
1aa64a86cf | ||
|
88081acf78 | ||
|
06f170cb40 | ||
|
510517c93e | ||
|
15de1acdde | ||
|
4297786d09 | ||
|
ed51c7c00c | ||
|
342d31a7b1 | ||
|
6130726c7f | ||
|
a66a284004 | ||
|
6807e67d2d | ||
|
11b7039c24 | ||
|
c676fc4915 | ||
|
b67784acaf | ||
|
b0be31cd84 | ||
|
5a29d4957c | ||
|
b34c716167 | ||
|
cca764ce6c | ||
|
87befaf064 | ||
|
66c3512fab | ||
|
79b2b9d951 | ||
|
f9c86cd3b7 | ||
|
bee93b333b | ||
|
56b1d0af87 | ||
|
b20013a049 | ||
|
09d9216ff5 | ||
|
4980f57239 | ||
|
7d8b17832a | ||
|
dcad108a3b | ||
|
bf2b6e4627 | ||
|
f92db0db98 | ||
|
1b25243ee2 | ||
|
1d1c3aa712 | ||
|
ad73d1ba5b | ||
|
b2d2eb3f3b | ||
|
ee9ce56003 | ||
|
94f8d695c1 | ||
|
7e40acc1e3 | ||
|
e50fb095bf | ||
|
d307f5a75b | ||
|
421f4b36b2 | ||
|
4bc02fc561 | ||
|
8f5c3cc429 | ||
|
38a85e3ea4 | ||
|
71c21911c4 | ||
|
a3e85b9271 | ||
|
816a67f202 | ||
|
a73f290502 | ||
|
f62bed1be9 | ||
|
1240f5e2f2 | ||
|
b847f09c59 | ||
|
e5dad505ff | ||
|
fb34814488 | ||
|
694cacc285 | ||
|
1ef8583bae | ||
|
2c00b969da | ||
|
104dde0fb1 | ||
|
e35d6674f4 | ||
|
d3d3097a27 | ||
|
be00d820d5 | ||
|
815eb014c5 | ||
|
6cbe4a99af | ||
|
913f6d75e7 | ||
|
4874956f42 | ||
|
5488e5f746 | ||
|
c82f8da661 | ||
|
c58f276f3b | ||
|
8b3b92ae39 | ||
|
4c2b1e934e | ||
|
cfa6717850 | ||
|
3fb2783d75 | ||
|
69818fa425 | ||
|
2df2d9c058 | ||
|
6ff09050d0 | ||
|
bcdbd5a782 | ||
|
154ba5bbdd | ||
|
d573d03ccf | ||
|
15d54a8cc5 | ||
|
1b96a23960 | ||
|
0eb16aceaf | ||
|
791982df22 | ||
|
935008947c | ||
|
c9c2175bff | ||
|
31e9fd8c8d | ||
|
6e22afe76f | ||
|
3a1a94936c | ||
|
b6627d0641 | ||
|
56e63831c4 | ||
|
137cac79fa | ||
|
b39fe98f6d | ||
|
233a018cc8 | ||
|
0f32f4755c | ||
|
cdb3a12cc7 | ||
|
195b8b21ec | ||
|
a527805ceb | ||
|
1d741c83ab | ||
|
9e8ff03ada | ||
|
2dca712157 | ||
|
ae1e602188 | ||
|
72787edbc5 |
102
.authors.yml
102
.authors.yml
@ -252,9 +252,11 @@
|
|||||||
github: hawk93
|
github: hawk93
|
||||||
- name: Harsh Shandilya
|
- name: Harsh Shandilya
|
||||||
email: msfjarvis@gmail.com
|
email: msfjarvis@gmail.com
|
||||||
num_commits: 10
|
num_commits: 13
|
||||||
first_commit: 2019-09-19 15:52:44
|
first_commit: 2019-09-19 15:52:44
|
||||||
github: msfjarvis
|
github: msfjarvis
|
||||||
|
alternate_emails:
|
||||||
|
- me@msfjarvis.dev
|
||||||
- name: DesertPunk
|
- name: DesertPunk
|
||||||
email: 38014530+DesertPunk@users.noreply.github.com
|
email: 38014530+DesertPunk@users.noreply.github.com
|
||||||
num_commits: 2
|
num_commits: 2
|
||||||
@ -335,7 +337,7 @@
|
|||||||
github: TJProgrammer
|
github: TJProgrammer
|
||||||
- name: Anthony Scopatz
|
- name: Anthony Scopatz
|
||||||
email: scopatz@gmail.com
|
email: scopatz@gmail.com
|
||||||
num_commits: 50
|
num_commits: 52
|
||||||
first_commit: 2010-07-28 18:15:43
|
first_commit: 2010-07-28 18:15:43
|
||||||
github: astronautlevel
|
github: astronautlevel
|
||||||
- name: PhilipRoman
|
- name: PhilipRoman
|
||||||
@ -556,16 +558,16 @@
|
|||||||
email: zdecook@ccel.org
|
email: zdecook@ccel.org
|
||||||
alternate_emails:
|
alternate_emails:
|
||||||
- zachdecook@librem.one
|
- zachdecook@librem.one
|
||||||
num_commits: 6
|
num_commits: 10
|
||||||
first_commit: 2019-12-18 09:34:49
|
first_commit: 2019-12-18 09:34:49
|
||||||
github: earboxer
|
github: earboxer
|
||||||
- name: Gareth Jones
|
- name: Gareth Jones
|
||||||
email: Jones258@Gmail.com
|
email: Jones258@Gmail.com
|
||||||
num_commits: 3
|
num_commits: 11
|
||||||
first_commit: 2019-11-01 23:57:35
|
first_commit: 2019-11-01 23:57:35
|
||||||
- name: Dante Falzone
|
- name: Dante Falzone
|
||||||
email: 48266179+DanteFalzone0@users.noreply.github.com
|
email: 48266179+DanteFalzone0@users.noreply.github.com
|
||||||
num_commits: 2
|
num_commits: 8
|
||||||
first_commit: 2019-12-25 22:55:19
|
first_commit: 2019-12-25 22:55:19
|
||||||
github: DanteFalzone0
|
github: DanteFalzone0
|
||||||
- name: CryptoDragonLady
|
- name: CryptoDragonLady
|
||||||
@ -583,3 +585,93 @@
|
|||||||
num_commits: 4
|
num_commits: 4
|
||||||
first_commit: 2017-05-23 11:12:47
|
first_commit: 2017-05-23 11:12:47
|
||||||
github: ritiek
|
github: ritiek
|
||||||
|
- name: hdquemada
|
||||||
|
email: 44162051+hdquemada@users.noreply.github.com
|
||||||
|
num_commits: 4
|
||||||
|
first_commit: 2020-04-26 23:09:25
|
||||||
|
github: hdquemada
|
||||||
|
- name: Oïleurre
|
||||||
|
email: 66210874+oileurre@users.noreply.github.com
|
||||||
|
num_commits: 2
|
||||||
|
first_commit: 2020-06-07 07:20:21
|
||||||
|
github: oileurre
|
||||||
|
- name: Joerg Stoever
|
||||||
|
email: stoever@dtv-verkehrsconsult.de
|
||||||
|
num_commits: 1
|
||||||
|
first_commit: 2020-08-14 06:04:10
|
||||||
|
github: Gaibhne
|
||||||
|
- name: emidiostani
|
||||||
|
email: emidiostani@gmail.com
|
||||||
|
num_commits: 1
|
||||||
|
first_commit: 2020-02-05 05:48:21
|
||||||
|
github: EmidioStani
|
||||||
|
- name: Justin P
|
||||||
|
email: Jpartain89@gmail.com
|
||||||
|
num_commits: 1
|
||||||
|
first_commit: 2020-01-30 23:28:08
|
||||||
|
github: jpartain89
|
||||||
|
- name: Yvan Satyawan
|
||||||
|
email: y_satyawan@hotmail.com
|
||||||
|
num_commits: 2
|
||||||
|
first_commit: 2020-03-16 08:40:58
|
||||||
|
github: yvan674
|
||||||
|
- name: Paulo S. Costa
|
||||||
|
email: pauloscosta5@gmail.com
|
||||||
|
num_commits: 2
|
||||||
|
first_commit: 2020-01-27 17:18:02
|
||||||
|
github: pscosta5
|
||||||
|
- name: czechuuu
|
||||||
|
email: czechuuu@users.noreply.github.com
|
||||||
|
num_commits: 1
|
||||||
|
first_commit: 2020-08-26 12:13:33
|
||||||
|
github: czechuuu
|
||||||
|
- name: msuska
|
||||||
|
email: Martin.Suska@dhl.com
|
||||||
|
num_commits: 1
|
||||||
|
first_commit: 2020-03-21 10:18:26
|
||||||
|
github: Betlista
|
||||||
|
- name: davidhcefx
|
||||||
|
email: davidhu0903ex3@gmail.com
|
||||||
|
num_commits: 3
|
||||||
|
first_commit: 2020-08-30 21:21:54
|
||||||
|
github: davidhcefx
|
||||||
|
- name: Mlendea, Horațiu
|
||||||
|
email: Mlendea.Horatiu@GMail.com
|
||||||
|
num_commits: 2
|
||||||
|
first_commit: 2020-02-09 03:50:20
|
||||||
|
github: hmlendea
|
||||||
|
- name: Exonorid
|
||||||
|
email: exonorid@gmail.com
|
||||||
|
num_commits: 1
|
||||||
|
first_commit: 2020-10-02 02:46:00
|
||||||
|
github: Exonorid
|
||||||
|
- name: yzzyx
|
||||||
|
email: yzzyx@yzzyx.network
|
||||||
|
alternate_emails:
|
||||||
|
- yzzyx@cock.li
|
||||||
|
num_commits: 3
|
||||||
|
first_commit: 2020-04-24 09:22:09
|
||||||
|
- name: Aiden Gall
|
||||||
|
email: aidentvgall@gmail.com
|
||||||
|
num_commits: 1
|
||||||
|
first_commit: 2020-03-14 18:09:11
|
||||||
|
github: Wasby
|
||||||
|
- name: Rashil Gandhi
|
||||||
|
email: rashil2000@gmail.com
|
||||||
|
num_commits: 1
|
||||||
|
first_commit: 2020-08-10 08:12:56
|
||||||
|
github: rashil2000
|
||||||
|
- name: Ryan Westlund
|
||||||
|
email: rlwestlund@gmail.com
|
||||||
|
num_commits: 2
|
||||||
|
first_commit: 2020-04-08 08:16:57
|
||||||
|
github: yujiri8
|
||||||
|
- name: Serhiy Zahoriya
|
||||||
|
email: serhiy.int@gmail.com
|
||||||
|
num_commits: 1
|
||||||
|
first_commit: 2020-10-08 10:43:13
|
||||||
|
- name: Bart Hanssens
|
||||||
|
email: bart.hanssens@bosa.fgov.be
|
||||||
|
num_commits: 1
|
||||||
|
first_commit: 2020-10-07 11:30:35
|
||||||
|
github: Fedict
|
||||||
|
26
.mailmap
26
.mailmap
@ -12,13 +12,15 @@
|
|||||||
Anthony Scopatz <scopatz@gmail.com>
|
Anthony Scopatz <scopatz@gmail.com>
|
||||||
Elof <elofu17@users.noreply.github.com>
|
Elof <elofu17@users.noreply.github.com>
|
||||||
Simon Volpert <simon@simonvolpert.com>
|
Simon Volpert <simon@simonvolpert.com>
|
||||||
|
Harsh Shandilya <msfjarvis@gmail.com> Harsh Shandilya <me@msfjarvis.dev>
|
||||||
Andrea Dejan Grande <dejan-grande@mail.com>
|
Andrea Dejan Grande <dejan-grande@mail.com>
|
||||||
Alex Taber <aft.pokemon@gmail.com>
|
Alex Taber <aft.pokemon@gmail.com>
|
||||||
Harsh Shandilya <msfjarvis@gmail.com>
|
Gareth Jones <Jones258@Gmail.com>
|
||||||
|
Zach DeCook <zdecook@ccel.org> Zach DeCook <zachdecook@librem.one>
|
||||||
Mariusz Smykuła <mariuszs@gmail.com>
|
Mariusz Smykuła <mariuszs@gmail.com>
|
||||||
|
Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com>
|
||||||
Michael Straube <m.s.online@gmx.de> Michael Straube <straubem@gmx.de>
|
Michael Straube <m.s.online@gmx.de> Michael Straube <straubem@gmx.de>
|
||||||
CoffeeTableEnnui <thiabaud.engelbrecht@gmail.com>
|
CoffeeTableEnnui <thiabaud.engelbrecht@gmail.com>
|
||||||
Zach DeCook <zdecook@ccel.org> Zach DeCook <zachdecook@librem.one>
|
|
||||||
Daniel Kaplun <dan@beardtree.com>
|
Daniel Kaplun <dan@beardtree.com>
|
||||||
Philipp <creekpld@users.noreply.github.com>
|
Philipp <creekpld@users.noreply.github.com>
|
||||||
Tiago Almeida <tjamadeira@gmail.com>
|
Tiago Almeida <tjamadeira@gmail.com>
|
||||||
@ -27,6 +29,7 @@ nl6720 <nl6720@gmail.com>
|
|||||||
Thomas Rosenau <thomasr@fantasymail.de> ThomasR <thomasr@fantasymail.de>
|
Thomas Rosenau <thomasr@fantasymail.de> ThomasR <thomasr@fantasymail.de>
|
||||||
Matthew Cox <matthewcpcox@gmail.com>
|
Matthew Cox <matthewcpcox@gmail.com>
|
||||||
Ritiek Malhotra <Ritiek@users.noreply.github.com>
|
Ritiek Malhotra <Ritiek@users.noreply.github.com>
|
||||||
|
hdquemada <44162051+hdquemada@users.noreply.github.com>
|
||||||
Birger Jarl <codefuhrer@gmail.com>
|
Birger Jarl <codefuhrer@gmail.com>
|
||||||
divinity76 <divinity76@gmail.com>
|
divinity76 <divinity76@gmail.com>
|
||||||
CirKu17 <cirku17@gmail.com> CirKu17 <CirKu17@gmail.com>
|
CirKu17 <cirku17@gmail.com> CirKu17 <CirKu17@gmail.com>
|
||||||
@ -37,7 +40,8 @@ Huub de Beer <Huub@heerdebeer.org>
|
|||||||
Mikael O. Bonnier <mikael.bonnier@gmail.com>
|
Mikael O. Bonnier <mikael.bonnier@gmail.com>
|
||||||
Jeppe Fihl-Pearson <jeppe@tenzer.dk>
|
Jeppe Fihl-Pearson <jeppe@tenzer.dk>
|
||||||
Ondřej Ešler <ondrej.esler@intraworlds.com>
|
Ondřej Ešler <ondrej.esler@intraworlds.com>
|
||||||
Gareth Jones <Jones258@Gmail.com>
|
davidhcefx <davidhu0903ex3@gmail.com>
|
||||||
|
yzzyx <yzzyx@yzzyx.network> yzzyx <yzzyx@cock.li>
|
||||||
Dan Kaplun <dbkaplun@gmail.com>
|
Dan Kaplun <dbkaplun@gmail.com>
|
||||||
Aryan Ebrahimpour <aryanebrahimpour@gmail.com>
|
Aryan Ebrahimpour <aryanebrahimpour@gmail.com>
|
||||||
Paduct <paduct@list.ru> Bro <paduct@list.ru>
|
Paduct <paduct@list.ru> Bro <paduct@list.ru>
|
||||||
@ -56,8 +60,12 @@ Bryan Ross <bryan@liquidstate.net>
|
|||||||
Nicholas Christopoulos <nereusx@users.noreply.github.com>
|
Nicholas Christopoulos <nereusx@users.noreply.github.com>
|
||||||
Sina <sina6002@gmail.com>
|
Sina <sina6002@gmail.com>
|
||||||
Ross Smith II <ross@smithii.com>
|
Ross Smith II <ross@smithii.com>
|
||||||
Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com>
|
|
||||||
Hunter Peavey <vrywjvgviuotxeioqipx@disroot.org>
|
Hunter Peavey <vrywjvgviuotxeioqipx@disroot.org>
|
||||||
|
Oïleurre <66210874+oileurre@users.noreply.github.com>
|
||||||
|
Yvan Satyawan <y_satyawan@hotmail.com>
|
||||||
|
Paulo S. Costa <pauloscosta5@gmail.com>
|
||||||
|
Mlendea, Horațiu <Mlendea.Horatiu@GMail.com>
|
||||||
|
Ryan Westlund <rlwestlund@gmail.com>
|
||||||
Dan Pasanen <invisiblek@cyanogenmod.org>
|
Dan Pasanen <invisiblek@cyanogenmod.org>
|
||||||
Marcus Willock <crazcalm@gmail.com> Crazcalm <crazcalm@gmail.com>
|
Marcus Willock <crazcalm@gmail.com> Crazcalm <crazcalm@gmail.com>
|
||||||
Dario Ostuni <another.code.996@gmail.com>
|
Dario Ostuni <another.code.996@gmail.com>
|
||||||
@ -124,3 +132,13 @@ John S Long <john@128.io>
|
|||||||
Ghost-NULL <maatpeter@hotmail.com>
|
Ghost-NULL <maatpeter@hotmail.com>
|
||||||
PN Wu (小平) <PingNote@users.noreply.github.com>
|
PN Wu (小平) <PingNote@users.noreply.github.com>
|
||||||
CryptoDragonLady <celeste.weingartner@gmail.com>
|
CryptoDragonLady <celeste.weingartner@gmail.com>
|
||||||
|
Joerg Stoever <stoever@dtv-verkehrsconsult.de>
|
||||||
|
emidiostani <emidiostani@gmail.com>
|
||||||
|
Justin P <Jpartain89@gmail.com>
|
||||||
|
czechuuu <czechuuu@users.noreply.github.com>
|
||||||
|
msuska <Martin.Suska@dhl.com>
|
||||||
|
Exonorid <exonorid@gmail.com>
|
||||||
|
Aiden Gall <aidentvgall@gmail.com>
|
||||||
|
Rashil Gandhi <rashil2000@gmail.com>
|
||||||
|
Serhiy Zahoriya <serhiy.int@gmail.com>
|
||||||
|
Bart Hanssens <bart.hanssens@bosa.fgov.be>
|
||||||
|
26
AUTHORS.rst
26
AUTHORS.rst
@ -4,13 +4,15 @@ Authors are sorted by number of commits.
|
|||||||
* Anthony Scopatz
|
* Anthony Scopatz
|
||||||
* Elof
|
* Elof
|
||||||
* Simon Volpert
|
* Simon Volpert
|
||||||
|
* Harsh Shandilya
|
||||||
* Andrea Dejan Grande
|
* Andrea Dejan Grande
|
||||||
* Alex Taber
|
* Alex Taber
|
||||||
* Harsh Shandilya
|
* Gareth Jones
|
||||||
|
* Zach DeCook
|
||||||
* Mariusz Smykuła
|
* Mariusz Smykuła
|
||||||
|
* Dante Falzone
|
||||||
* Michael Straube
|
* Michael Straube
|
||||||
* CoffeeTableEnnui
|
* CoffeeTableEnnui
|
||||||
* Zach DeCook
|
|
||||||
* Daniel Kaplun
|
* Daniel Kaplun
|
||||||
* Philipp
|
* Philipp
|
||||||
* Tiago Almeida
|
* Tiago Almeida
|
||||||
@ -19,6 +21,7 @@ Authors are sorted by number of commits.
|
|||||||
* Thomas Rosenau
|
* Thomas Rosenau
|
||||||
* Matthew Cox
|
* Matthew Cox
|
||||||
* Ritiek Malhotra
|
* Ritiek Malhotra
|
||||||
|
* hdquemada
|
||||||
* Birger Jarl
|
* Birger Jarl
|
||||||
* divinity76
|
* divinity76
|
||||||
* CirKu17
|
* CirKu17
|
||||||
@ -29,7 +32,8 @@ Authors are sorted by number of commits.
|
|||||||
* Mikael O. Bonnier
|
* Mikael O. Bonnier
|
||||||
* Jeppe Fihl-Pearson
|
* Jeppe Fihl-Pearson
|
||||||
* Ondřej Ešler
|
* Ondřej Ešler
|
||||||
* Gareth Jones
|
* davidhcefx
|
||||||
|
* yzzyx
|
||||||
* Dan Kaplun
|
* Dan Kaplun
|
||||||
* Aryan Ebrahimpour
|
* Aryan Ebrahimpour
|
||||||
* Paduct
|
* Paduct
|
||||||
@ -48,8 +52,12 @@ Authors are sorted by number of commits.
|
|||||||
* Nicholas Christopoulos
|
* Nicholas Christopoulos
|
||||||
* Sina
|
* Sina
|
||||||
* Ross Smith II
|
* Ross Smith II
|
||||||
* Dante Falzone
|
|
||||||
* Hunter Peavey
|
* Hunter Peavey
|
||||||
|
* Oïleurre
|
||||||
|
* Yvan Satyawan
|
||||||
|
* Paulo S. Costa
|
||||||
|
* Mlendea, Horațiu
|
||||||
|
* Ryan Westlund
|
||||||
* Dan Pasanen
|
* Dan Pasanen
|
||||||
* Marcus Willock
|
* Marcus Willock
|
||||||
* Dario Ostuni
|
* Dario Ostuni
|
||||||
@ -116,3 +124,13 @@ Authors are sorted by number of commits.
|
|||||||
* Ghost-NULL
|
* Ghost-NULL
|
||||||
* PN Wu (小平)
|
* PN Wu (小平)
|
||||||
* CryptoDragonLady
|
* CryptoDragonLady
|
||||||
|
* Joerg Stoever
|
||||||
|
* emidiostani
|
||||||
|
* Justin P
|
||||||
|
* czechuuu
|
||||||
|
* msuska
|
||||||
|
* Exonorid
|
||||||
|
* Aiden Gall
|
||||||
|
* Rashil Gandhi
|
||||||
|
* Serhiy Zahoriya
|
||||||
|
* Bart Hanssens
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$"
|
syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$"
|
||||||
|
|
||||||
# main header
|
# main header
|
||||||
color red "^====+$"
|
color brightred "^=[[:space:]].+$"
|
||||||
# h1
|
# h1
|
||||||
color red "^==[[:space:]].*$"
|
color red "^==[[:space:]].*$"
|
||||||
color red "^----+$"
|
color red "^----+$"
|
||||||
@ -24,7 +24,7 @@ color red "\+\+\+\{[a-z0-9]*\}\+\+\+"
|
|||||||
# Paragraph Title
|
# Paragraph Title
|
||||||
color yellow "^\..*$"
|
color yellow "^\..*$"
|
||||||
|
|
||||||
# source
|
# source
|
||||||
color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]"
|
color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]"
|
||||||
|
|
||||||
# Other markup
|
# Other markup
|
||||||
|
34
batch.nanorc
Normal file
34
batch.nanorc
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
## Here is an example for Batch file shell script.
|
||||||
|
## Author: davidhcefx (https://github.com/davidhcefx), based on Mitch Bumgarner's version.
|
||||||
|
## License: MIT License
|
||||||
|
|
||||||
|
syntax "batch" "\.(bat|cmd)$"
|
||||||
|
header "^@[eE](cho|CHO) (on|off|ON|OFF)"
|
||||||
|
comment "::"
|
||||||
|
|
||||||
|
# Native commands, symbols, and comparisons.
|
||||||
|
icolor green "\<(ASSOC|CALL|CD|CLS|CMDEXTVERSION|COLOR|COPY|DATE|DEL|DIR|ECHO|ENDLOCAL|ERASE|ERRORLEVEL|EXIT|FOR|FTYPE|GOTO|IF|MD|MKLINK|MOVE|PATH|PAUSE|POPD|PROMPT|PUSHD|RD|REM|REN|SET|SETLOCAL|SHIFT|START|TIME|TITLE|TYPE|VER|VERIFY|VOL)\>"
|
||||||
|
icolor green "\<(EQU|NEQ|LSS|LEQ|GTR|GEQ|DEFINED|EXIST|NOT)\>"
|
||||||
|
color green "[:|<>=&@\\^]"
|
||||||
|
|
||||||
|
# Options.
|
||||||
|
color brightmagenta "[[:blank:]]/[A-Za-z]+\>"
|
||||||
|
|
||||||
|
# Common commands. (with Sublime and Github highlighting as a reference)
|
||||||
|
icolor brightblue "\<(APPEND|ARP|AT|ATTRIB|AUTOFAIL|BACKUP|BCDBOOT|BCDEDIT|BITSADMIN|BREAK|CACLS|CERTREQ|CERTUTIL|CHANGE|CHCP|CHDIR|CHKDSK|CHKNTFS|CHOICE|CIPHER|CleanMgr|CLIP|CMD|CMDKEY|COMP|COMPACT|CONVERT|CSVDE|DEFRAG|DELTREE|DevCon|DIRQUOTA|DISKCOMP|DISKCOPY|DISKPART|DISKSHADOW|DNSCMD|DOSKEY|DriverQuery|DSACLs|DSAdd|DSGet|DSQuery|DSMod|DSMove|DSRM|Dsmgmt|EVENTCREATE|EXPAND|EXPLORER|EXTRACT|FC|FIND|FINDSTR|FORFILES|FORMAT|FREEDISK|FSUTIL|FTP|GETMAC|GPRESULT|GPUPDATE|GRAFTABL|HELP|HOSTNAME|iCACLS|IEXPRESS|IPCONFIG|INUSE|KEYB|LABEL|LODCTR|LOGMAN|LOGOFF|MAKECAB|MKDIR|MODE|MORE|MOUNTVOL|MSG|MSIEXEC|MSINFO32|MSTSC|NET|NETDOM|NETSH|NBTSTAT|NETSTAT|NLTEST|NSLOOKUP|NTBACKUP|NTDSUtil|OPENFILES|PATHPING|PING|POWERCFG|PRINT|PRNCNFG|PRNMNGR|Query|RASDIAL|RASPHONE|RECOVER|REG|REGEDIT|REGSVR32|REGINI|RENAME|REPLACE|Reset|RESTORE|RMDIR|ROBOCOPY|ROUTE|RUNAS|RUNDLL32|SC|SCHTASKS|SetSPN|SETX|SFC|SHUTDOWN|SORT|SSH|SUBINACL|SUBST|SYSTEMINFO|TAKEOWN|TASKLIST|TASKKILL|TELNET|TIMEOUT|TRACERT|TREE|TSDISCON|TSKILL|TypePerf|TZUTIL|VSSADMIN|W32TM|WAITFOR|WBADMIN|WECUTIL|WEVTUTIL|WHERE|WHOAMI|WINRM|WINRS|WMIC|XCACLS|XCOPY)\>"
|
||||||
|
|
||||||
|
# Variable names. (spaces not allowed)
|
||||||
|
color brightred "%([[:alpha:]`~@#$*(){}:',.?+=_-]|\[|\])([[:alnum:]`~@#$*(){}:',.?+=_-]|\[|\])*%"
|
||||||
|
color brightred "!([[:alnum:]`~@#$%*(){}:',.?+=_-]|\[|\])([[:alnum:]`~@#$%*(){}:',.?+=_-]|\[|\])*!"
|
||||||
|
|
||||||
|
# Parameter names for arguments and loop.
|
||||||
|
color brightred "%(~[[:alpha:]$]*)?[0-9*]\>" "%%(~[[:alpha:]$]*)?[[:alpha:]]\>"
|
||||||
|
|
||||||
|
# Comments.
|
||||||
|
icolor cyan "^[[:space:]]*(\<rem\>|::).*"
|
||||||
|
|
||||||
|
# Strings.
|
||||||
|
icolor brightyellow ""(\^.|[^"])*""
|
||||||
|
|
||||||
|
# Trailling whitespace
|
||||||
|
color ,green "[[:space:]]+$"
|
9
c.nanorc
9
c.nanorc
@ -3,7 +3,7 @@
|
|||||||
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino"
|
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino"
|
||||||
magic "^(C|C\+\+) (source|program)"
|
magic "^(C|C\+\+) (source|program)"
|
||||||
comment "//"
|
comment "//"
|
||||||
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
||||||
color green "\<(float|double|bool|char|wchar_t|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
|
color green "\<(float|double|bool|char|wchar_t|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
|
||||||
color green "\<((s?size)|(char(16|32))|((u_?)?int(_fast|_least)?(8|16|32|64))|u?int(max|ptr))_t\>"
|
color green "\<((s?size)|(char(16|32))|((u_?)?int(_fast|_least)?(8|16|32|64))|u?int(max|ptr))_t\>"
|
||||||
color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
|
color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
|
||||||
@ -21,7 +21,7 @@ color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\
|
|||||||
color green "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
|
color green "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
|
||||||
|
|
||||||
#Operator Color
|
#Operator Color
|
||||||
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
|
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
|
||||||
|
|
||||||
#Parenthetical Color
|
#Parenthetical Color
|
||||||
color magenta "[(){}]" "\[" "\]"
|
color magenta "[(){}]" "\[" "\]"
|
||||||
@ -36,8 +36,11 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*""
|
|||||||
## This string is VERY resource intensive!
|
## This string is VERY resource intensive!
|
||||||
#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
||||||
|
|
||||||
|
## printf-family format specifiers
|
||||||
|
color yellow "%(\#|(0-+))?(hh|h|l|ll|q|L|j|z|Z|t)?[A-Za-z]" "%%"
|
||||||
|
|
||||||
## Comment highlighting
|
## Comment highlighting
|
||||||
color brightblue "^\s*//.*"
|
color brightblue "//.*"
|
||||||
color brightblue start="/\*" end="\*/"
|
color brightblue start="/\*" end="\*/"
|
||||||
|
|
||||||
# Highlighting for documentation comments
|
# Highlighting for documentation comments
|
||||||
|
22
creole.nanorc
Normal file
22
creole.nanorc
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
syntax "Creole" "\.creole$"
|
||||||
|
|
||||||
|
# Headers
|
||||||
|
color magenta "^=.*=$"
|
||||||
|
|
||||||
|
# Lists
|
||||||
|
color green "^[#*]+\s.*"
|
||||||
|
|
||||||
|
# Links and images
|
||||||
|
color cyan start="\[\[" end="\]\]"
|
||||||
|
color cyan start="\{\{" end="\}\}"
|
||||||
|
|
||||||
|
# Emphasis
|
||||||
|
color yellow "//.*//"
|
||||||
|
color brightyellow "\*\*.*\*\*"
|
||||||
|
|
||||||
|
# Pre and tables
|
||||||
|
color red start="\{\{\{" end="\}\}\}"
|
||||||
|
color red "\|"
|
||||||
|
color brightred "\|="
|
||||||
|
|
||||||
|
color ,red "\s+$"
|
@ -1,5 +1,5 @@
|
|||||||
syntax "Email"
|
syntax "Email" "\.em(ai)?l$"
|
||||||
|
|
||||||
color magenta "^>([^>].*|$)"
|
color magenta "^>([^>].*|$)"
|
||||||
color blue "^>>([^>].*|$)"
|
color blue "^> ?>([^>].*|$)"
|
||||||
color green "^>>>.*"
|
color green "^> ?> ?>.*"
|
||||||
|
21
gemini.nanorc
Normal file
21
gemini.nanorc
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
## syntax highlighting for gemini:// markup language
|
||||||
|
|
||||||
|
syntax gemini "\.(gemini|gmi)$"
|
||||||
|
|
||||||
|
# Heading levels
|
||||||
|
color brightgreen "^#.*"
|
||||||
|
color brightcyan "^##.*"
|
||||||
|
color brightmagenta "^###.*"
|
||||||
|
|
||||||
|
# Link Text
|
||||||
|
color brightred "^=>\s*\S+\s+.*"
|
||||||
|
# Link URL
|
||||||
|
color green "^=>\s*\S+"
|
||||||
|
# Link Prefix
|
||||||
|
color yellow "^=>"
|
||||||
|
|
||||||
|
# Bullet Lists
|
||||||
|
color brightblue "^\*.*"
|
||||||
|
|
||||||
|
# Monospaced Blocks
|
||||||
|
color white,black start="^```" end="^```"
|
45
gophermap.nanorc
Normal file
45
gophermap.nanorc
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
## syntax for gophernicus gophermaps
|
||||||
|
|
||||||
|
syntax gophermap "\.(gophermap|gph)$"
|
||||||
|
|
||||||
|
|
||||||
|
# Port Numbers
|
||||||
|
color yellow "^.[ -~]*.[ -~]*.[ -~]*.[ -~]+"
|
||||||
|
|
||||||
|
# Domains
|
||||||
|
color red "^.[ -~]*.[ -~]*.[ -~]+"
|
||||||
|
|
||||||
|
# Resource Path (no directories)
|
||||||
|
color green "^[^1][ -~]*.[ -~]*"
|
||||||
|
|
||||||
|
# Directories (w/ Name)
|
||||||
|
color brightmagenta "^1[ -~]*.[ -~]*"
|
||||||
|
|
||||||
|
# Names
|
||||||
|
color brightblue "^[ -~]+."
|
||||||
|
|
||||||
|
# Directories (w/o Name)
|
||||||
|
color brightyellow "^1[ -~]+.$"
|
||||||
|
|
||||||
|
# URLs
|
||||||
|
color brightcyan "URL:.*"
|
||||||
|
|
||||||
|
|
||||||
|
# Types
|
||||||
|
|
||||||
|
# General
|
||||||
|
color magenta "^."
|
||||||
|
|
||||||
|
# HTML & Interactive Content
|
||||||
|
color brightcyan "^(h|7|8)"
|
||||||
|
|
||||||
|
# Info Text
|
||||||
|
color cyan "^i.*"
|
||||||
|
color cyan "^[ -~]*$"
|
||||||
|
color blue "^i"
|
||||||
|
|
||||||
|
# Special Tags & Characters
|
||||||
|
color brightgreen "^(!|-|:|~|%|=|\*|\.).*"
|
||||||
|
|
||||||
|
# Comments
|
||||||
|
color white,blue "#.*"
|
@ -4,7 +4,7 @@ syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
|
|||||||
comment ".\""
|
comment ".\""
|
||||||
|
|
||||||
## The argument of .ds or .nr
|
## The argument of .ds or .nr
|
||||||
color cyan "^\.(ds|nr) [^[[:space:]]]*"
|
color cyan "^\.(ds|nr) [^[[:space:]]]*[^[[:space:]]]*"
|
||||||
## Single character escapes
|
## Single character escapes
|
||||||
color brightmagenta "\\."
|
color brightmagenta "\\."
|
||||||
## Highlight the argument of \f or \s in the same color
|
## Highlight the argument of \f or \s in the same color
|
||||||
@ -13,6 +13,7 @@ color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]"
|
|||||||
color cyan "(\\|\\\\)n(.|\(..)"
|
color cyan "(\\|\\\\)n(.|\(..)"
|
||||||
color cyan start="(\\|\\\\)n\[" end="]"
|
color cyan start="(\\|\\\\)n\[" end="]"
|
||||||
## Requests
|
## Requests
|
||||||
|
color brightgreen "^\.[[:space:]]*[^[[:space:]]]*[^[[:space:]]]*"
|
||||||
color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
|
color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
|
||||||
## Comments
|
## Comments
|
||||||
color yellow "^\.\\".*$"
|
color yellow "^\.\\".*$"
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
syntax "Haskell" "\.hs$"
|
syntax "haskell" "\.hs$"
|
||||||
|
comment "--"
|
||||||
|
|
||||||
## Keywords
|
## Keywords
|
||||||
color red "[ ](as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix|infixl|infixr|instance|let|in|mdo|module|newtype|qualified|type|where)[ ]"
|
color red "\<(as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix|infixl|infixr|instance|let|in|mdo|module|newtype|qualified|type|where)\>"
|
||||||
color red "(^data|^foreign|^import|^infix|^infixl|^infixr|^instance|^module|^newtype|^type)[ ]"
|
|
||||||
color red "[ ](as$|case$|of$|class$|data$|default$|deriving$|do$|forall$|foreign$|hiding$|if$|then$|else$|import$|infix$|infixl$|infixr$|instance$|let$|in$|mdo$|module$|newtype$|qualified$|type$|where$)"
|
|
||||||
|
|
||||||
## Various symbols
|
## Various symbols
|
||||||
color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
|
color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
|
||||||
@ -12,17 +11,19 @@ color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
|
|||||||
color magenta "(==|/=|&&|\|\||<|>|<=|>=)"
|
color magenta "(==|/=|&&|\|\||<|>|<=|>=)"
|
||||||
|
|
||||||
## Various symbols
|
## Various symbols
|
||||||
color cyan "(->|<-)"
|
color cyan "(->|<-|=>)"
|
||||||
color magenta "\.|\$"
|
color magenta "\.|\$"
|
||||||
|
|
||||||
## Data constructors
|
## Data constructors
|
||||||
color magenta "(True|False|Nothing|Just|Left|Right|LT|EQ|GT)"
|
color magenta "\<(True|False|Nothing|Just|Left|Right|LT|EQ|GT)\>"
|
||||||
|
|
||||||
## Data classes
|
## Data classes
|
||||||
color magenta "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
|
color magenta "\<(Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)\>"
|
||||||
|
|
||||||
## Strings
|
## Strings
|
||||||
color yellow ""[^\"]*""
|
color yellow ""([^\"]|\\.)*""
|
||||||
|
## Chars
|
||||||
|
color brightyellow "'([^\']|\\.)'"
|
||||||
|
|
||||||
## Comments
|
## Comments
|
||||||
color green "--.*"
|
color green "--.*"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Original author: John Boero
|
# Original author: John Boero
|
||||||
# License: GPLv3 or newer
|
# License: GPLv3 or newer
|
||||||
|
|
||||||
syntax hcl "\.(tf|hcl)$"
|
syntax "hcl" "\.(tf|hcl)$"
|
||||||
# No comments are permitted in JSON.
|
# No comments are permitted in JSON.
|
||||||
comment ""
|
comment ""
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ color yellow ""(\\.|[^"])*""
|
|||||||
color red "&#?[[:alnum:]]*;"
|
color red "&#?[[:alnum:]]*;"
|
||||||
|
|
||||||
## Template strings (not in the HTML spec, but very commonly used)
|
## Template strings (not in the HTML spec, but very commonly used)
|
||||||
color magenta "\{[^\}]*\}"
|
color magenta "\{[^\}]*\}\}?"
|
||||||
color brightgreen "[[:space:]]((end)?if|(end)?for|in|not|(end)?block)[[:space:]]"
|
color brightgreen "[[:space:]]((end)?if|(end)?for|in|not|(end)?block)[[:space:]]"
|
||||||
|
|
||||||
## Comments
|
## Comments
|
||||||
|
@ -6,6 +6,6 @@ color cyan "^[[:space:]]*[^=]*="
|
|||||||
color brightmagenta "^[[:space:]]*\[.*\]$"
|
color brightmagenta "^[[:space:]]*\[.*\]$"
|
||||||
color red "[=;]"
|
color red "[=;]"
|
||||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||||
color brightblack "(^|[[:space:]])(#([^{].*)?|;.*)$"
|
color brightblue "(^|[[:space:]])(#([^{].*)?|;.*)$"
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
color ,red " + +| + +"
|
color ,red " + +| + +"
|
||||||
|
@ -40,6 +40,7 @@ case "$1" in
|
|||||||
-h|--help)
|
-h|--help)
|
||||||
echo "Install script for nanorc syntax highlights"
|
echo "Install script for nanorc syntax highlights"
|
||||||
echo "Call with -l or --lite to update .nanorc with secondary precedence to existing .nanorc includes"
|
echo "Call with -l or --lite to update .nanorc with secondary precedence to existing .nanorc includes"
|
||||||
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interfa
|
|||||||
color red ""[^"]*""
|
color red ""[^"]*""
|
||||||
color yellow "\<(true|false|null)\>"
|
color yellow "\<(true|false|null)\>"
|
||||||
icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b"
|
icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b"
|
||||||
color blue "^\s*//.*"
|
color blue "//.*"
|
||||||
color blue start="^\s*/\*" end="\*/"
|
color blue start="^\s*/\*" end="\*/"
|
||||||
color brightblue start="/\*\*" end="\*/"
|
color brightblue start="/\*\*" end="\*/"
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
syntax "JavaScript" "\.js$"
|
syntax "JavaScript" "\.(js|ts)$"
|
||||||
comment "//"
|
comment "//"
|
||||||
color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
|
color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
|
||||||
color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
|
color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
|
||||||
@ -17,7 +17,7 @@ color green "\<(Number|Object|RegExp|String)\>"
|
|||||||
color red "[-+/*=<>!~%?:&|]"
|
color red "[-+/*=<>!~%?:&|]"
|
||||||
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
|
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
|
||||||
color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
||||||
color brightblack "(^|[[:space:]])//.*"
|
color brightblack "//.*"
|
||||||
color brightblack "/\*.+\*/"
|
color brightblack "/\*.+\*/"
|
||||||
color brightwhite,cyan "TODO:?"
|
color brightwhite,cyan "TODO:?"
|
||||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)"
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)"
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting
|
## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting
|
||||||
|
|
||||||
syntax "JavaScript" "\.(js)$"
|
syntax "JavaScript" "\.(js)$"
|
||||||
|
header "^#!.*\/(env +)node"
|
||||||
comment "//"
|
comment "//"
|
||||||
|
|
||||||
## Default
|
## Default
|
||||||
@ -41,6 +42,8 @@ color red "\<(true|false)\>"
|
|||||||
## String
|
## String
|
||||||
color brightyellow "L?\"(\\"|[^"])*\""
|
color brightyellow "L?\"(\\"|[^"])*\""
|
||||||
color brightyellow "L?'(\'|[^'])*'"
|
color brightyellow "L?'(\'|[^'])*'"
|
||||||
|
color brightcyan "L?`(\`|[^`])*`"
|
||||||
|
color brightwhite,blue start="\$\{" end="\}"
|
||||||
|
|
||||||
## Trailing spaces
|
## Trailing spaces
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
syntax "kotlin" "\.kt$" "\.kts$"
|
syntax "kotlin" "\.kt$" "\.kts$"
|
||||||
color magenta "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b"
|
color magenta "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b"
|
||||||
color yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&"
|
color yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&"
|
||||||
color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor|companion|const)\>"
|
color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor|companion|const|suspend|sealed)\>"
|
||||||
color yellow "\<(true|false|null)\>"
|
color yellow "\<(true|false|null)\>"
|
||||||
color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>"
|
color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>"
|
||||||
color brightred "\<(inner|outer)\>"
|
color brightred "\<(inner|outer)\>"
|
||||||
|
22
m3u.nanorc
Normal file
22
m3u.nanorc
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
syntax "m3u" "\.(m3u|m3u8)$"
|
||||||
|
|
||||||
|
# Header text
|
||||||
|
color brightcyan "^#EXTINF.*,[^,]*$"
|
||||||
|
|
||||||
|
# Header property values
|
||||||
|
color brightyellow "^#[^:]*:[^ ,]*"
|
||||||
|
color brightyellow "=[^ ,]*"
|
||||||
|
color brightyellow "=[\"][^\"]*[\"]"
|
||||||
|
|
||||||
|
# Header property keys
|
||||||
|
color brightgreen "[a-zA-Z-]*="
|
||||||
|
|
||||||
|
# Headers
|
||||||
|
color brightred "^#EXT[-A-Z]*:"
|
||||||
|
color brightmagenta "^#EXTM3U"
|
||||||
|
|
||||||
|
# Separators
|
||||||
|
color normal "[,=]"
|
||||||
|
|
||||||
|
# URLs
|
||||||
|
color normal "^[^#].*"
|
54
moonscript.nanorc
Normal file
54
moonscript.nanorc
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
#syntax highlighting for MoonScript
|
||||||
|
#based on leafo/moonscript-vim
|
||||||
|
|
||||||
|
syntax "MoonScript" "\.moon$"
|
||||||
|
|
||||||
|
#statement
|
||||||
|
color yellow "\<(return|break|continue)\>"
|
||||||
|
#conditional
|
||||||
|
color yellow "\<(if|else|elseif|then|switch|when|unless)\>"
|
||||||
|
#keyword
|
||||||
|
color yellow "\<(export|local|import|from|with|in|and|or|not|class|extends|super|using|do)\>"
|
||||||
|
#repeat
|
||||||
|
color yellow "\<(for|while)\>"
|
||||||
|
#identifiers (lua 5.1 functions)
|
||||||
|
color green "\<(assert|collectgarbage|dofile|error|next|print|rawget|rawset|tonumber|tostring)\>"
|
||||||
|
color green "\<(type|_VERSION|_G|getfenv|getmetatable|ipairs|loadfile|loadstring|pairs)\>"
|
||||||
|
color green "\<(pcall|rawequal|require|setfenv|setmetatable|unpack|xpcallload|module|select)\>"
|
||||||
|
color green "package\.(cpath|loaded|loadlib|path|preload|seeall)"
|
||||||
|
color green "coroutine\.(running|create|resume|status|wrap|yield)"
|
||||||
|
color green "string\.(byte|char|dump|find|len|lower|rep|sub|upper|format|gsub|gmatch|match|reverse)"
|
||||||
|
color green "table\.(maxn|concat|sort|insert|remove)"
|
||||||
|
color green "math\.(abs|acos|asin|atan|atan2|ceil|sin|cos|tan|deg|exp|floor|log|log10|max|min|fmod|modf|cosh|sinh|tanh|pow|rad|sqrt|frexp|ldexp|random|randomseed|pi)"
|
||||||
|
color green "io\.(stdin|stdout|stderr|close|flush|input|lines|open|output|popen|read|tmpfile|type|write)"
|
||||||
|
color green "os\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)"
|
||||||
|
color green "debug\.(debug|gethook|getinfo|getlocal|getupvalue|setlocal|setupvalue|sethook|traceback|getfenv|getmetatable|getregistry|setfenv|setmetatable)"
|
||||||
|
#operator
|
||||||
|
color red "[-+=^*.<>&?%#@!:|\/\\]+"
|
||||||
|
color red "(and=|or=)"
|
||||||
|
#function
|
||||||
|
color brightblue "(->|=>|\(|\)|\[|\]|\{|\}|!\s|!$)"
|
||||||
|
#boolean
|
||||||
|
color brightcyan "\<(true|false)\>"
|
||||||
|
#special type
|
||||||
|
color brightred "\<(nil)\>"
|
||||||
|
#class-like name starting with a capital letter
|
||||||
|
color green "\<[A-Z]\w*\>"
|
||||||
|
#special variable
|
||||||
|
color green "\<(self|self\.\w+)\>"
|
||||||
|
color green "\B@@?\w*"
|
||||||
|
#constant
|
||||||
|
color brightgreen "\<[A-Z0-9_]+\>"
|
||||||
|
#integer (incl. leading plus or minus)
|
||||||
|
color brightmagenta "\<[-+]?[0-9]+\>"
|
||||||
|
#float (incl. leading plus or minus)
|
||||||
|
color brightmagenta "\<[-+]?[0-9]+\.[0-9]+\>"
|
||||||
|
#hex number
|
||||||
|
color brightmagenta "\<0[xX]\x+\>"
|
||||||
|
#some common errors
|
||||||
|
color green,red "(;$|[[:space:]]+$)"
|
||||||
|
#string
|
||||||
|
color brightyellow start="\"" end="\""
|
||||||
|
color brightyellow start="\'" end="\'"
|
||||||
|
#comment
|
||||||
|
color blue "--.*"
|
@ -8,6 +8,6 @@ color brightyellow "\$[A-Za-z][A-Za-z0-9_]*"
|
|||||||
color red "[*]"
|
color red "[*]"
|
||||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||||
color yellow start="'$" end="';$"
|
color yellow start="'$" end="';$"
|
||||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
color brightblue "(^|[[:space:]])#([^{].*)?$"
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
color ,red " + +| + +"
|
color ,red " + +| + +"
|
||||||
|
51
php.nanorc
51
php.nanorc
@ -1,42 +1,61 @@
|
|||||||
## PHP Syntax Highlighting
|
## PHP Syntax Highlighting
|
||||||
syntax "PHP" "\.php[2345s~]?$"
|
syntax "PHP" "\.php[2345s~]?$|\.module$"
|
||||||
magic "PHP script"
|
magic "PHP script"
|
||||||
comment "//"
|
comment "//"
|
||||||
color white start="<\?(php|=)?" end="\?>"
|
color white start="<\?(php|=)?" end="\?>"
|
||||||
# Functions
|
|
||||||
color brightblue "([a-zA-Z0-9_-]*)\("
|
|
||||||
# Constructs
|
# Constructs
|
||||||
color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)"
|
color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)"
|
||||||
color green "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}"
|
color brightblue "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}"
|
||||||
color brightblue "[a-zA-Z0-9_]+:"
|
color brightblue "[a-zA-Z0-9_]+:"
|
||||||
# Variables
|
# Variables
|
||||||
color white "\$[a-zA-Z_0-9$]*|[=!<>]"
|
color green "\$[a-zA-Z_0-9$]*|[=!<>]"
|
||||||
color white "\->[a-zA-Z_0-9$]*|[=!<>]"
|
color green "\->[a-zA-Z_0-9$]*|[=!<>]"
|
||||||
|
# Functions
|
||||||
|
color brightblue "([a-zA-Z0-9_-]*)\("
|
||||||
|
# Special values
|
||||||
|
color brightmagenta "[^a-z0-9_-]{1}(true|false|null|TRUE|FALSE|NULL)$"
|
||||||
|
color brightmagenta "[^a-z0-9_-]{1}(true|false|null|TRUE|FALSE|NULL)[^a-z0-9_-]{1}"
|
||||||
# Special Characters
|
# Special Characters
|
||||||
color yellow "[.,{}();]"
|
color yellow "[.,{}();]"
|
||||||
color yellow "\["
|
color cyan "\["
|
||||||
color yellow "\]"
|
color cyan "\]"
|
||||||
color yellow "[=][^>]"
|
|
||||||
# Numbers
|
# Numbers
|
||||||
color magenta "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*"
|
color magenta "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*"
|
||||||
color magenta "0x[0-9a-zA-Z]*"
|
color magenta "0x[0-9a-zA-Z]*"
|
||||||
# Special Variables
|
# Special Variables
|
||||||
color brightblue "(\$this|parent::|self::|\$this->)"
|
color brightblue "(\$this|parent::|self::|\$this->)"
|
||||||
|
color magenta ";"
|
||||||
|
# Comparison operators
|
||||||
|
color yellow "(<|>)"
|
||||||
|
# Assignment operator
|
||||||
|
color brightblue "="
|
||||||
# Bitwise Operations
|
# Bitwise Operations
|
||||||
color magenta "(\;|\||\^){1}"
|
color magenta "(&|\||\^)"
|
||||||
|
color magenta "(<<|>>)"
|
||||||
|
# Comparison operators
|
||||||
|
color yellow "(==|===|!=|<>|!==|<=|>=|<=>)"
|
||||||
|
# Logical Operators
|
||||||
|
color yellow "( and | or | xor |!|&&|\|\|)"
|
||||||
# And/Or/SRO/etc
|
# And/Or/SRO/etc
|
||||||
color green "(\;\;|\|\||::|=>|->)"
|
color cyan "(\;\;|\|\||::|=>|->)"
|
||||||
# Online Comments
|
# Double quoted STRINGS!
|
||||||
color brightyellow "(#.*|//.*)$"
|
color red "(\"[^\"]*\")"
|
||||||
# STRINGS!
|
# Heredoc (typically ends with a semicolon).
|
||||||
color red "('[^']*')|(\"[^\"]*\")"
|
color red start="<<<['\"]?[A-Z][A-Z0-9_]*['\"]?" end="^[A-Z][A-Z0-9_]*;"
|
||||||
# Inline Variables
|
# Inline Variables
|
||||||
color white "\{\$[^}]*\}"
|
color white "\{\$[^}]*\}"
|
||||||
|
# Single quoted string
|
||||||
|
color red "('[^']*')"
|
||||||
|
# Online Comments
|
||||||
|
color brightyellow "^(#.*|//.*)$"
|
||||||
|
color brightyellow "[ | ](#.*|//.*)$"
|
||||||
# PHP Tags
|
# PHP Tags
|
||||||
color red "(<\?(php)?|\?>)"
|
color red "(<\?(php)?|\?>)"
|
||||||
# General HTML
|
# General HTML
|
||||||
color red start="\?>" end="<\?(php|=)?"
|
color red start="\?>" end="<\?(php|=)?"
|
||||||
# trailing whitespace
|
# trailing whitespace
|
||||||
color ,green "[^[:space:]]{1}[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
# multi-line comments
|
# multi-line comments
|
||||||
color brightyellow start="/\*" end="\*/"
|
color brightyellow start="/\*" end="\*/"
|
||||||
|
# Nowdoc
|
||||||
|
color red start="<<<'[A-Z][A-Z0-9_]*'" end="^[A-Z][A-Z0-9_]*;"
|
||||||
|
34
powershell.nanorc
Normal file
34
powershell.nanorc
Normal file
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
## Here is a prolog example.
|
## Here is a prolog example.
|
||||||
|
|
||||||
syntax prolog "\.pl"
|
syntax "prolog" "\.pl"
|
||||||
comment "%"
|
comment "%"
|
||||||
|
|
||||||
# Reset everything
|
# Reset everything
|
||||||
|
6
properties.nanorc
Normal file
6
properties.nanorc
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
syntax "properties" "\.properties$"
|
||||||
|
# property key
|
||||||
|
icolor green "^[^:=]+[:=]"
|
||||||
|
|
||||||
|
# comments
|
||||||
|
icolor blue "([[:space:]])*[#!].*$"
|
@ -12,11 +12,11 @@ color cyan "\<(None|self|True|False)\>"
|
|||||||
## built-in attributes
|
## built-in attributes
|
||||||
color cyan "\<(__builtin__|__dict__|__methods__|__members__|__class__|__bases__|__import__|__name__|__doc__|__self__|__debug__)\>"
|
color cyan "\<(__builtin__|__dict__|__methods__|__members__|__class__|__bases__|__import__|__name__|__doc__|__self__|__debug__)\>"
|
||||||
## built-in functions
|
## built-in functions
|
||||||
color cyan "\<(abs|append|apply|buffer|callable|chr|clear|close|closed|cmp|coerce|compile|complex|conjugate|copy|count|delattr|dir|divmod|eval|execfile|exec|extend|fileno|filter|float|flush|get|getattr|globals|has_key|hasattr|hash|hex|id|index|input|insert|int|intern|isatty|isinstance|issubclass|items|keys|len|list|locals|long|map|max|min|mode|name|oct|open|ord|pop|pow|print|range|raw_input|read|readline|readlines|reduce|reload|remove|repr|reverse|round|seek|setattr|slice|softspace|sort|str|tell|truncate|tuple|type|unichr|unicode|update|values|vars|write|writelines|xrange|zip)\>"
|
color cyan "\<(abs|append|apply|buffer|callable|chr|clear|close|closed|cmp|coerce|compile|complex|conjugate|copy|count|delattr|dir|divmod|eval|execfile|exec|extend|fileno|filter|float|flush|get|getattr|globals|has_key|hasattr|hash|hex|id|index|input|insert|int|intern|isatty|isinstance|issubclass|items|keys|len|list|locals|long|map|max|min|mode|name|oct|open|ord|pop|pow|print|range|raw_input|read|readline|readlines|reduce|reload|remove|repr|reverse|round|seek|setattr|slice|softspace|sort|str|tell|truncate|tuple|type|unichr|unicode|update|values|vars|write|writelines|xrange|zip|bool)\>"
|
||||||
## built-in functions that were previously keywords
|
## built-in functions that were previously keywords
|
||||||
color brightblue "\<(print|exec)\>([[:space:]]|$)"
|
color brightblue "\<(print|exec)\>([[:space:]]|$)"
|
||||||
## special method names
|
## special method names
|
||||||
color cyan "\<(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|__concat__|__contains__|__del__|__delattr__|__delitem__|__delslice__|__div__|__divmod__|__float__|__getattr__|__getitem__|__getslice__|__hash__|__hex__|__init__|__int__|__inv__|__invert__|__len__|__long__|__lshift__|__mod__|__mul__|__neg__|__nonzero__|__oct__|__or__|__pos__|__pow__|__radd__|__rand__|__rcmp__|__rdiv__|__rdivmod__|__repeat__|__repr__|__rlshift__|__rmod__|__rmul__|__ror__|__rpow__|__rrshift__|__rshift__|__rsub__|__rxor__|__setattr__|__setitem__|__setslice__|__str__|__sub__|__xor__)\>"
|
color cyan "\<(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|__concat__|__contains__|__del__|__delattr__|__delitem__|__delslice__|__div__|__divmod__|__float__|__getattr__|__getitem__|__getslice__|__hash__|__hex__|__init__|__int__|__inv__|__invert__|__len__|__long__|__lshift__|__mod__|__mul__|__neg__|__nonzero__|__oct__|__or__|__pos__|__pow__|__radd__|__rand__|__rcmp__|__rdiv__|__rdivmod__|__repeat__|__repr__|__rlshift__|__rmod__|__rmul__|__ror__|__rpow__|__rrshift__|__rshift__|__rsub__|__rxor__|__setattr__|__setitem__|__setslice__|__str__|__sub__|__xor__|__bool__)\>"
|
||||||
## exception classes
|
## exception classes
|
||||||
color cyan "\<(Exception|StandardError|ArithmeticError|LookupError|EnvironmentError|AssertionError|AttributeError|EOFError|FloatingPointError|IOError|ImportError|IndexError|KeyError|KeyboardInterrupt|MemoryError|NameError|NotImplementedError|OSError|OverflowError|RuntimeError|SyntaxError|SystemError|SystemExit|TypeError|UnboundLocalError|UnicodeError|ValueError|WindowsError|ZeroDivisionError)\>"
|
color cyan "\<(Exception|StandardError|ArithmeticError|LookupError|EnvironmentError|AssertionError|AttributeError|EOFError|FloatingPointError|IOError|ImportError|IndexError|KeyError|KeyboardInterrupt|MemoryError|NameError|NotImplementedError|OSError|OverflowError|RuntimeError|SyntaxError|SystemError|SystemExit|TypeError|UnboundLocalError|UnicodeError|ValueError|WindowsError|ZeroDivisionError)\>"
|
||||||
## types
|
## types
|
||||||
|
@ -20,6 +20,8 @@ If your machine doesn't have `curl` command, use this code:
|
|||||||
wget https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh -O- | sh
|
wget https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh -O- | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This automatically unpacks all the `.nanorc` files to `~/.nano`.
|
||||||
|
|
||||||
#### Note
|
#### Note
|
||||||
|
|
||||||
Some syntax definitions which exist in Nano upstream may be preferable to the ones provided by this package.
|
Some syntax definitions which exist in Nano upstream may be preferable to the ones provided by this package.
|
||||||
|
22
rego.nanorc
Normal file
22
rego.nanorc
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# Syntax highlighting for Rego (https://www.openpolicyagent.org/)
|
||||||
|
|
||||||
|
syntax "Rego" "\.rego"
|
||||||
|
comment "#"
|
||||||
|
|
||||||
|
## Reserved words
|
||||||
|
color cyan "\<(as|default|else|import|package|not|some|with)\>"
|
||||||
|
color brightblue "\<(false|null|true)\>"
|
||||||
|
|
||||||
|
## Built-ins
|
||||||
|
### Generated from `cat v0.25.2.json | jq -r .builtins[].name | tr '\n' '|'`
|
||||||
|
color yellow "\<(abs|all|and|any|array.concat|array.slice|assign|base64.decode|base64.encode|base64.is_valid|base64url.decode|base64url.encode|base64url.encode_no_pad|bits.and|bits.lsh|bits.negate|bits.or|bits.rsh|bits.xor|cast_array|cast_boolean|cast_null|cast_object|cast_set|cast_string|concat|contains|count|crypto.md5|crypto.sha1|crypto.sha256|crypto.x509.parse_certificate_request|crypto.x509.parse_certificates|div|endswith|eq|equal|format_int|glob.match|glob.quote_meta|graph.reachable|gt|gte|hex.decode|hex.encode|http.send|indexof|intersection|io.jwt.decode|io.jwt.decode_verify|io.jwt.encode_sign|io.jwt.encode_sign_raw|io.jwt.verify_es256|io.jwt.verify_es384|io.jwt.verify_es512|io.jwt.verify_hs256|io.jwt.verify_hs384|io.jwt.verify_hs512|io.jwt.verify_ps256|io.jwt.verify_ps384|io.jwt.verify_ps512|io.jwt.verify_rs256|io.jwt.verify_rs384|io.jwt.verify_rs512|is_array|is_boolean|is_null|is_number|is_object|is_set|is_string|json.filter|json.is_valid|json.marshal|json.patch|json.remove|json.unmarshal|lower|lt|lte|max|min|minus|mul|neq|net.cidr_contains|net.cidr_contains_matches|net.cidr_expand|net.cidr_intersects|net.cidr_merge|net.cidr_overlap|numbers.range|object.filter|object.get|object.remove|object.union|opa.runtime|or|plus|product|re_match|regex.find_all_string_submatch_n|regex.find_n|regex.globs_match|regex.is_valid|regex.match|regex.split|regex.template_match|rego.parse_module|rem|replace|round|semver.compare|semver.is_valid|set_diff|sort|split|sprintf|startswith|strings.replace_n|substring|sum|time.add_date|time.clock|time.date|time.now_ns|time.parse_duration_ns|time.parse_ns|time.parse_rfc3339_ns|time.weekday|to_number|trace|trim|trim_left|trim_prefix|trim_right|trim_space|trim_suffix|type_name|union|units.parse_bytes|upper|urlquery.decode|urlquery.decode_object|urlquery.encode|urlquery.encode_object|uuid.rfc4122|walk|yaml.is_valid|yaml.marshal|yaml.unmarshal)\>"
|
||||||
|
|
||||||
|
# Numbers
|
||||||
|
color purple "\<([0-9]+)\>"
|
||||||
|
|
||||||
|
# Strings
|
||||||
|
color green ""(\\.|[^"])*""
|
||||||
|
color green "`(\\.|[^\\`])*`"
|
||||||
|
|
||||||
|
## Comments
|
||||||
|
color brightblack "^\s*#.*"
|
187
sieve.nanorc
Normal file
187
sieve.nanorc
Normal file
@ -0,0 +1,187 @@
|
|||||||
|
#syntax highlighting for the Sieve email filtering language
|
||||||
|
#based on:
|
||||||
|
# RFC's { 3894,5173,5228,5229,5230,5231,5232,5233
|
||||||
|
# 5235,5260,5293,5435,5437,5463,5490,5703
|
||||||
|
# 6009,6131,6134,6558,6609,7352,8579,8580 }
|
||||||
|
# vnd.dovecot { debug,execute,report }
|
||||||
|
# Spec Drafts { IETF Sieve Regex,Martin Sieve Notify
|
||||||
|
# Melnikov Sieve IMAPFlags }
|
||||||
|
|
||||||
|
syntax Sieve "\.(siv|sieve)$"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##control
|
||||||
|
#RFC 5228 (base spec)
|
||||||
|
icolor yellow "\<(stop|require)\>"
|
||||||
|
#RFC 5463 (ihave extension)
|
||||||
|
icolor yellow "\<(error)\>"
|
||||||
|
#RFC 6609 (include extension)
|
||||||
|
icolor yellow "\<(include)\>"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##conditional
|
||||||
|
#RFC 5228 (base spec)
|
||||||
|
icolor brightgreen "\<(if|else|elsif)\>"
|
||||||
|
#RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure)
|
||||||
|
icolor brightgreen "\<(foreverypart)\>"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##test modifiers
|
||||||
|
#RFC 5228 (base spec)
|
||||||
|
icolor brightred "\<(allof|anyof|true|false|not)\>"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##tests
|
||||||
|
#RFC 5228 (base spec)
|
||||||
|
icolor brightcyan "\<(address|envelope|exists|header|size)\>"
|
||||||
|
#RFC 5173 (body extension)
|
||||||
|
icolor brightcyan "\<(body)\>"
|
||||||
|
#RFC 5183 (environment extension)
|
||||||
|
icolor brightcyan "\<(environment)\>"
|
||||||
|
#RFC 5232 (imap4flags extension)
|
||||||
|
icolor brightcyan "\<(hasflag)\>"
|
||||||
|
#RFC 5235 (spamtest and virustest extensions)
|
||||||
|
icolor brightcyan "\<(spamtest|virustest)\>"
|
||||||
|
#RFC 5260 (date and index extensions)
|
||||||
|
icolor brightcyan "\<(date|currentdate)\>"
|
||||||
|
#RFC 5437 (notification mechanism for xmpp)
|
||||||
|
icolor brightcyan "\<(notify_method_capability)\>"
|
||||||
|
#RFC 5463 (ihave extension)
|
||||||
|
icolor brightcyan "\<(ihave)\>"
|
||||||
|
#RFC 5490 (extensions for checking mailbox status and accessing mailbox metadata)
|
||||||
|
icolor brightcyan "\<(mailboxexists|metadata|metadataexists)\>"
|
||||||
|
icolor brightcyan "\<(servermetadata|servermetadataexists)\>"
|
||||||
|
#RFC 6134 (extension for externally stored lists)
|
||||||
|
icolor brightcyan "\<(valid_ext_list)\>"
|
||||||
|
#RFC 7352 (extension for detecting duplicate deliveries)
|
||||||
|
icolor brightcyan "\<(duplicate)\>"
|
||||||
|
#RFC 8579 (extension for delivering to special-use mailboxes)
|
||||||
|
icolor brightcyan "\<(specialuse_exists)\>"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##comparators
|
||||||
|
#RFC 5228 (base spec)
|
||||||
|
icolor cyan "\s:(contains|is|matches|over|under)\>"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##match-types
|
||||||
|
#RFC 5228 (base spec)
|
||||||
|
icolor green "\s:(localpart|domain|all)\>"
|
||||||
|
#RFC 5231 (relational extension)
|
||||||
|
icolor green "\s:(count|value)\>"
|
||||||
|
#RFC 5233 (subaddress extension)
|
||||||
|
icolor green "\s:(user|detail)\>"
|
||||||
|
#RFC 5235 (spamtest and virustest extensions)
|
||||||
|
icolor green "\s:(percent)\>"
|
||||||
|
#RFC 5260 (date and index extensions)
|
||||||
|
icolor green "\s:(zone|originalzone|index|last)\>"
|
||||||
|
#RFC 6134 (extension for externally stored lists)
|
||||||
|
icolor green "\s:(list)\>"
|
||||||
|
#Draft IETF Sieve Regex 01 (regular expression extension)
|
||||||
|
icolor green "\s:(regex|quoteregex)\>"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##variables
|
||||||
|
#RFC 5229" (variables extension)
|
||||||
|
color red "\$\{.*\}"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##actions
|
||||||
|
#RFC 5228 (base spec)
|
||||||
|
icolor brightblue "\<(keep|fileinto|discard|reject|redirect)\>"
|
||||||
|
#RFC 5229 (variables extension)
|
||||||
|
icolor brightblue "\<(set)\>"
|
||||||
|
#RFC 5230 (vacation extension)
|
||||||
|
icolor brightblue "\<(vacation)\>"
|
||||||
|
#RFC 5232 (imap4flags extension)
|
||||||
|
icolor brightblue "\<(setflag|addflag|removeflag)\>"
|
||||||
|
#RFC 5293 (editheader extension)
|
||||||
|
icolor brightblue "\<(addheader|deleteheader)\>"
|
||||||
|
#RFC 5429 (reject and ereject extensions)
|
||||||
|
icolor brightblue "\<(reject|ereject)\>"
|
||||||
|
#RFC 5435 (extension for notifications)
|
||||||
|
icolor brightblue "\<(notify)\>"
|
||||||
|
#RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure)
|
||||||
|
icolor brightblue "\<(break|replace|enclose|extracttext)\>"
|
||||||
|
#RFC 6558 (extension for converting messages before delivery)
|
||||||
|
icolor brightblue "\<(convert)\>"
|
||||||
|
#RFC 6609 (include extension)
|
||||||
|
icolor brightblue "\<(return)\>"
|
||||||
|
#vnd.dovecot.debug (extension for logging debug messages)
|
||||||
|
icolor brightblue "\<(debug_log)\>"
|
||||||
|
#vnd.dovecot.execute (extension for external programs)
|
||||||
|
icolor brightblue "\<(pipe|filter|execute)\>"
|
||||||
|
#vnd.dovecot.report (extension for sending abuse feedback reports)
|
||||||
|
icolor brightblue "\<(report)\>"
|
||||||
|
#Draft Martin Sieve Notify 01 (extension for providing instant notifications) [deprecated]
|
||||||
|
icolor brightblue "\<(denotify)\>"
|
||||||
|
#Draft Melnikov Sieve IMAPFlags 04 (imap flag extension) [deprecated]
|
||||||
|
icolor brightblue "\<(mark|unmark)\>"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##modifiers, parameters, etc.
|
||||||
|
#RFC 5228 (base spec)
|
||||||
|
icolor magenta "\s:(comparator)\>"
|
||||||
|
#RFC 3894 (extension for copying without side effects)
|
||||||
|
icolor magenta "\s:(copy)\>"
|
||||||
|
#RFC 5173 (body extension)
|
||||||
|
icolor magenta "\s:(raw|content|text)\>"
|
||||||
|
#RFC 5229 (variables extension)
|
||||||
|
icolor magenta "\s:(length|quotewildcard)\>"
|
||||||
|
icolor magenta "\s:(upper|lower|upperfirst|lowerfirst)\>"
|
||||||
|
#RFC 5230 (vacation extension)
|
||||||
|
icolor magenta "\s:(days|subject|from|addresses|handle)\>"
|
||||||
|
#RFC 5232 (imap4flags extension)
|
||||||
|
icolor magenta "\s:(flags)\>"
|
||||||
|
#RFC 5435 (extension for notifications)
|
||||||
|
icolor magenta "\s:(from|importance|options|message)\>"
|
||||||
|
#RFC 5490 (extensions for checking mailbox status and accessing mailbox metadata)
|
||||||
|
icolor magenta "\s:(create)\>"
|
||||||
|
#RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure)
|
||||||
|
icolor magenta "\s:(name|mime|anychild|type|subtype)\>"
|
||||||
|
icolor magenta "\s:(contenttype|param|headers|first)\>"
|
||||||
|
#RFC 6009 (dsn and deliver-by extensions)
|
||||||
|
icolor magenta "\s:(notify|ret|bymode|bytrace)\>"
|
||||||
|
icolor magenta "\s:(bytimerelative|bytimeabsolute)\>"
|
||||||
|
#RFC 6131 (vacation extension seconds parameter)
|
||||||
|
icolor magenta "\s:(seconds)\>"
|
||||||
|
#RFC 6609 (include extension)
|
||||||
|
icolor magenta "\s:(once|optional|personal|global)\>"
|
||||||
|
#RFC 7352 (extension for detecting duplicate deliveries)
|
||||||
|
icolor magenta "\s:(header|uniqueid)\>"
|
||||||
|
#RFC 8579 (extension for delivering to special-use mailboxes)
|
||||||
|
icolor magenta "\s:(specialuse)\>"
|
||||||
|
#RFC 8580 (extension for file carbon copy)
|
||||||
|
icolor magenta "\s:(fcc)\>"
|
||||||
|
#vnd.dovecot.execute (extension for external programs)
|
||||||
|
icolor magenta "\s:(try|pipe|input|output)\>"
|
||||||
|
#Draft Martin Sieve Notify 01 (extension for providing instant notifications) [deprecated]
|
||||||
|
icolor magenta "\s:(method|id|low|normal|high)\>"
|
||||||
|
#Draft Melnikov Sieve IMAPFlags 04 (imap flag extension) [deprecated]
|
||||||
|
icolor magenta "\s:(globalflags)(_plus|_minus)?\>"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##number (incl. proceeding K, M, or G)
|
||||||
|
icolor brightmagenta "\<[0-9]+[KMG]?\>"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##comment
|
||||||
|
color blue "\#.*"
|
||||||
|
|
||||||
|
#-----------------------------#
|
||||||
|
|
||||||
|
##string
|
||||||
|
color brightyellow start="\"" end="\""
|
||||||
|
color brightyellow start="\/\*" end="\*\/"
|
||||||
|
icolor brightyellow start="text\:.*" end="^.$"
|
49
sparql.nanorc
Normal file
49
sparql.nanorc
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
## SPARQL 1.1 and SPARQL 1.1 UPDATE
|
||||||
|
#
|
||||||
|
syntax "SPARQL" ".*\.(rq|sparql)$"
|
||||||
|
|
||||||
|
icolor brightcyan "\<(ADD|AS|ASK)\>"
|
||||||
|
icolor brightcyan "\<(BIND|BY)\>"
|
||||||
|
icolor brightcyan "\<(CLEAR|CONSTRUCT|CREATE)\>"
|
||||||
|
icolor brightcyan "\<(DATA|DEFAULT|DELETE|DESCRIBE|DISTINCT|DROP)\>"
|
||||||
|
icolor brightcyan "\<(FILTER|FROM)\>"
|
||||||
|
icolor brightcyan "\<(GRAPH|GROUP)\>"
|
||||||
|
icolor brightcyan "\<(HAVING)\>"
|
||||||
|
icolor brightcyan "\<(INSERT)\>"
|
||||||
|
icolor brightcyan "\<(LIMIT|LOAD)\>"
|
||||||
|
icolor brightcyan "\<(MINUS|MOVE)\>"
|
||||||
|
icolor brightcyan "\<(NAMED|NOT)\>"
|
||||||
|
icolor brightcyan "\<(OFFSET|OPTIONAL|ORDER)\>"
|
||||||
|
icolor brightcyan "\<(PREFIX)\>"
|
||||||
|
icolor brightcyan "\<(REDUCED)\>"
|
||||||
|
icolor brightcyan "\<(SELECT|SERVICE|SILENT)\>"
|
||||||
|
icolor brightcyan "\<(TO)\>"
|
||||||
|
icolor brightcyan "\<(UPDATE|USING)\>"
|
||||||
|
icolor brightcyan "\<(VALUES)\>"
|
||||||
|
icolor brightcyan "\<(WHERE|WITH)\>"
|
||||||
|
|
||||||
|
# functions
|
||||||
|
icolor brightmagenta "\<(ABS|AVG)\>"
|
||||||
|
icolor brightmagenta "\<(BNODE|BOUND)\>"
|
||||||
|
icolor brightmagenta "\<(CEIL|COALESCE|CONCAT|CONTAINS|COUNT)\>"
|
||||||
|
icolor brightmagenta "\<(DATATYPE|DAY)\>"
|
||||||
|
icolor brightmagenta "\<(ENCODE_FOR_URI|EXISTS)\>"
|
||||||
|
icolor brightmagenta "\<(FLOOR)\>"
|
||||||
|
icolor brightmagenta "\<(GROUP_CONCAT)\>"
|
||||||
|
icolor brightmagenta "\<(HOURS)\>"
|
||||||
|
icolor brightmagenta "\<(IF|IN|IRI|ISBLANK|ISIRI|ISLITERAL|ISNUMERIC)\>"
|
||||||
|
icolor brightmagenta "\<(LANG|LANGMATCHES|LCASE)\>"
|
||||||
|
icolor brightmagenta "\<(MAX|MD5|MIN|MINUTES|MONTH)\>"
|
||||||
|
icolor brightmagenta "\<(NOW)\>"
|
||||||
|
icolor brightmagenta "\<(RAND|REGEX|REPLACE|ROUND)\>"
|
||||||
|
icolor brightmagenta "\<(SAMETERM|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRLANG|STRLEN|STRSTARTS|STRUUID|SUBSTR|SUM)\>"
|
||||||
|
icolor brightmagenta "\<(TIMEZONE|TZ)\>"
|
||||||
|
icolor brightmagenta "\<(UCASE|UUID)\>"
|
||||||
|
icolor brightmagenta "\<(YEAR)\>"
|
||||||
|
|
||||||
|
# variables, IRI
|
||||||
|
#
|
||||||
|
icolor cyan "\?\w+"
|
||||||
|
icolor brightgreen "<.+:[^ >]+>"
|
||||||
|
icolor green " \w+:"
|
||||||
|
|
@ -1,12 +1,12 @@
|
|||||||
syntax "Systemd" "\.(service|socket)$"
|
syntax "Systemd" "\.(service|socket|timer)$"
|
||||||
header "^\[Unit\]$"
|
header "^\[Unit\]$"
|
||||||
|
|
||||||
color cyan "^(Accept|After|Alias|AllowIsolate|Also|AmbientCapabilities|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateDevices|PrivateNetwork|PrivateTmp|PropagatesReloadTo|ProtectHome|ProtectSystem|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)="
|
color cyan "^(Accept|After|Alias|AllowIsolate|Also|AmbientCapabilities|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateDevices|PrivateNetwork|PrivateTmp|PropagatesReloadTo|ProtectControlGroups|ProtectHome|ProtectKernelModules|ProtectKernelTunables|ProtectSystem|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RestrictAddressFamilies|RestrictNamespaces|RestrictRealtime|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallArchitectures|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)="
|
||||||
color brightblue "^\.include\>"
|
color green "^\.include\>"
|
||||||
color red "="
|
color red "="
|
||||||
color brightmagenta "^\[(Unit|Install|Service|Socket)\]"
|
color brightmagenta "^\[(Unit|Install|Service|Socket)\]"
|
||||||
color brightyellow "\$MAINPID"
|
color brightyellow "\$MAINPID"
|
||||||
color brightcyan "\<(true|false)\>"
|
color brightcyan "\<(true|false)\>"
|
||||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
color brightblue "(^|[[:space:]])#([^{].*)?$"
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
color ,red " + +| + +"
|
color ,red " + +| + +"
|
||||||
|
54
toml.nanorc
Normal file
54
toml.nanorc
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
syntax "toml" "\.toml$"
|
||||||
|
comment "#"
|
||||||
|
|
||||||
|
# Booleans
|
||||||
|
color magenta "true|false"
|
||||||
|
|
||||||
|
# Numbers
|
||||||
|
color green "[+-]?[[:space:]]*[0-9]+(\.[0-9]+)?([Ee][+-]?[0-9]+)?"
|
||||||
|
color green "[0-9]+(_[0-9]+)*"
|
||||||
|
|
||||||
|
# Tables / unwrapped keys
|
||||||
|
color brightgreen "[a-zA-Z0-9_]*(\.[a-zA-Z0-9_]+)*"
|
||||||
|
|
||||||
|
# Invalid Table names
|
||||||
|
color ,red "^[[:space:]]*\[\]"
|
||||||
|
color ,red "^[[:space:]]*\[[a-zA-Z0-9_]\.\]"
|
||||||
|
color ,red "^[[:space:]]*\[.*\.\..*\]"
|
||||||
|
color ,red "^[[:space:]]*\[\..*?\]"
|
||||||
|
|
||||||
|
# Strings
|
||||||
|
color brightyellow ""(\.|[^"])*"" "'(\.|[^'])*'"
|
||||||
|
color yellow start="\"\"\"" end="\"\"\""
|
||||||
|
|
||||||
|
# Comments
|
||||||
|
color brightblue "#.*"
|
||||||
|
|
||||||
|
# Keyless value
|
||||||
|
color ,red "^[[:space:]]*=.*"
|
||||||
|
|
||||||
|
# Trailing whitespace
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
|
||||||
|
|
||||||
|
# MIT License
|
||||||
|
|
||||||
|
# Copyright (c) 2017 Uninteresting Account
|
||||||
|
|
||||||
|
# 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.
|
12
ts.nanorc
12
ts.nanorc
@ -1,9 +1,10 @@
|
|||||||
syntax "typescript" "\.(ts)$"
|
syntax "typescript" "\.(ts)$"
|
||||||
|
header "^#!.*\/(env +)ts-node"
|
||||||
|
|
||||||
## Default
|
## Default
|
||||||
color white "^.+$"
|
color white "^.+$"
|
||||||
|
|
||||||
## Decimal, cotal and hexadecimal numbers
|
## Decimal, octal and hexadecimal numbers
|
||||||
color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
|
color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
|
||||||
|
|
||||||
## Floating point number with at least one digit before decimal point
|
## Floating point number with at least one digit before decimal point
|
||||||
@ -11,15 +12,18 @@ color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
|
|||||||
color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
|
color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
|
||||||
|
|
||||||
## Keywords
|
## Keywords
|
||||||
color green "\<(abstract|boolean|break|byte|case|catch|set)\>"
|
color green "\<(as|abstract|asserts|boolean|break|byte|case|catch)\>"
|
||||||
color green "\<(class|const|continue|debugger|default|delete|readonly)\>"
|
color green "\<(class|const|continue|debugger|default|delete|readonly)\>"
|
||||||
color green "\<(do|else|enum|export|extends|finally|final|for)\>"
|
color green "\<(do|else|enum|export|extends|finally|final|for)\>"
|
||||||
color green "\<(from|function|goto|if|implements|import|instanceof)\>"
|
color green "\<(from|function|goto|if|implements|import|instanceof)\>"
|
||||||
color green "\<(var|interface|int|in|let|new|package|private)\>"
|
color green "\<(var|interface|int|in|is|infer|let|new|package|private)\>"
|
||||||
color green "\<(protected|public|return|static|super|switch)\>"
|
color green "\<(protected|public|return|static|super|switch)\>"
|
||||||
color green "\<(this|throw|try|typeof)\>"
|
color green "\<(this|throw|try|typeof|type)\>"
|
||||||
color green "\<(void|while|with|yield)\>"
|
color green "\<(void|while|with|yield)\>"
|
||||||
color green "\<(async|await)\>"
|
color green "\<(async|await)\>"
|
||||||
|
color green "\<(set|get)\>"
|
||||||
|
color green "\<(module|namespace)\>"
|
||||||
|
color green "\<(declare)\>"
|
||||||
|
|
||||||
## Type specifiers
|
## Type specifiers
|
||||||
color red "\<(Array|Boolean|Date|Enumerator|Error|Function)\>"
|
color red "\<(Array|Boolean|Date|Enumerator|Error|Function)\>"
|
||||||
|
@ -19,3 +19,6 @@ color brightwhite ":(\s|\t|$)"
|
|||||||
|
|
||||||
# Comments
|
# Comments
|
||||||
color brightblue "(^|[[:space:]])#.*$"
|
color brightblue "(^|[[:space:]])#.*$"
|
||||||
|
|
||||||
|
# Trailing whitespace
|
||||||
|
color ,red "[[:space:]]+$"
|
||||||
|
9
zig.nanorc
Normal file
9
zig.nanorc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
syntax "Zig" "\.zig$$"
|
||||||
|
color latte "\<(align|allowzero|and|anyframe|anytype|asm|async|await|break|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|noalias|nosuspend|or|orelse|packed|pub|resume|return|linksection|struct|suspend|switch|test|threadlocal|try|union|unreachable|usingnamespace|var|volatile|while)\>"
|
||||||
|
color brightcyan "@[a-zA-Z]+[0-9]{0,2}"
|
||||||
|
color cyan "(true|false|null|undefined)"
|
||||||
|
color cyan "\<(0[xob])?([0-9]_?)+\>"
|
||||||
|
color blue "\<([iu][0-9]{1,5}|f16|f32|f64|f128)\>"
|
||||||
|
color magenta "\"[^"]*\""
|
||||||
|
comment "//"
|
||||||
|
tabgives " "
|
Loading…
x
Reference in New Issue
Block a user