Compare commits

...

100 Commits

Author SHA1 Message Date
Anthony Scopatz
1aa64a86cf
Merge pull request #345 from anderseknert/Rego
Add support for Rego
2020-12-17 10:35:28 -06:00
Anders Eknert
88081acf78 Add support for Rego
The policy language of Open Policy Agent.

Signed-off-by: Anders Eknert <anders@eknert.com>
2020-12-17 09:42:22 +01:00
Anthony Scopatz
06f170cb40
Merge pull request #344 from palto42/sytsmed_timer_and_comments
systemd .timer & comments color for dark terminal
2020-11-24 13:15:41 -06:00
Anthony Scopatz
510517c93e
Merge pull request #342 from miku86/patch-1
Fix typo: "cotal" => "octal"
2020-11-24 13:15:00 -06:00
palto42
15de1acdde
systemd .timer & comments color for dark terminal 2020-11-22 11:42:58 +01:00
Anthony Scopatz
4297786d09
Merge pull request #343 from moorscode/patch-1
Also highlight TypeScript (.ts) as JavaScript
2020-11-21 21:23:14 -06:00
Jip
ed51c7c00c
Also highlight TypeScript (.ts) as JavaScript
As TypeScript extends JavaScript to add types, the basics of JavaScript still apply.
This change will parse `.ts` files as if they are JavaScript files, providing basic highlighting support.
2020-11-21 23:28:55 +01:00
miku86
342d31a7b1
Fix typo: "cotal" => "octal" 2020-11-19 16:49:48 +01:00
Anthony Scopatz
6130726c7f
Merge pull request #339 from palto42/ini_comments
Adjusted comment color of ini files for visibility on dark terminals
2020-11-08 15:41:52 -06:00
palto42
a66a284004
comment color for visibility on dark terminals 2020-11-08 09:00:24 +01:00
Anthony Scopatz
6807e67d2d Updated authorship for 2020.10.10 2020-10-10 14:25:18 -05:00
Anthony Scopatz
11b7039c24 authors update 2020-10-10 14:24:15 -05:00
Anthony Scopatz
c676fc4915
Merge pull request #336 from int-ua/patch-1
Highlight second curly bracket in html.nanorc
2020-10-08 11:12:38 -05:00
Serhiy Zahoriya
b67784acaf
Highlight second curly bracket in html.nanorc 2020-10-08 18:43:13 +03:00
Anthony Scopatz
b0be31cd84
Merge pull request #334 from Fedict/GH-333-sparql
GH-333 initial sparql support
2020-10-07 15:17:30 -05:00
Bart Hanssens
5a29d4957c GH-333 initial sparql support
Signed-off-by: Bart Hanssens <bart.hanssens@bosa.fgov.be>
2020-10-07 18:32:33 +02:00
Anthony Scopatz
b34c716167
Merge pull request #332 from Exonorid/zig
Added support for Zig
2020-10-05 11:29:44 -05:00
Exonorid
cca764ce6c Added support for Zig 2020-10-02 00:46:00 -07:00
Anthony Scopatz
87befaf064
Merge pull request #331 from davidhcefx/master
A Better Syntax Highlighting for Batch-file Shell Script
2020-08-31 16:12:08 -05:00
davidhcefx
66c3512fab
Add a link 2020-09-01 05:05:02 +08:00
davidhcefx
79b2b9d951
Create batch.nanorc 2020-08-31 10:22:18 +08:00
davidhcefx
f9c86cd3b7
Delete batch.nanorc 2020-08-31 10:21:54 +08:00
Anthony Scopatz
bee93b333b
Merge pull request #330 from DanteFalzone0/master
Added highlighting for printf format specifiers
2020-08-27 09:48:44 -05:00
Dante Falzone
56b1d0af87
Added highlighting for printf format specifiers 2020-08-27 09:44:59 -05:00
Anthony Scopatz
b20013a049
Merge pull request #329 from DanteFalzone0/master
Fixed higlighting of inline comments in several languages
2020-08-27 09:33:16 -05:00
Dante Falzone
09d9216ff5
Fixed highlighting of inline comments in javascript.nanorc 2020-08-27 09:19:51 -05:00
Dante Falzone
4980f57239
Fixed higlighting of inline comments in java.nanorc 2020-08-27 09:18:20 -05:00
Dante Falzone
7d8b17832a
Fixed highlighting of inline comments in c.nanorc 2020-08-27 09:17:08 -05:00
Anthony Scopatz
dcad108a3b
Merge pull request #328 from czechuuu/master
Added highlighting for bool and ___bool__
2020-08-26 12:22:09 -05:00
czechuuu
bf2b6e4627 Added highlighting for bool and ___bool__ 2020-08-26 19:13:33 +02:00
Anthony Scopatz
f92db0db98
Merge pull request #326 from Gaibhne/master
Add a red highlight to YAML lines with trailing whitespace
2020-08-14 15:02:12 -05:00
Joerg Stoever
1b25243ee2 Add a red highlight to YAML lines with trailing whitespace 2020-08-14 13:04:24 +02:00
Anthony Scopatz
1d1c3aa712
Merge pull request #324 from rashil2000/master
Added PowerShell support in Nano
2020-08-10 09:44:38 -05:00
Rashil Gandhi
ad73d1ba5b Add PowerShell syntax file 2020-08-10 18:42:56 +05:30
Anthony Scopatz
b2d2eb3f3b
Merge pull request #323 from DanteFalzone0/master
Added support for Batch (CMD.EXE)
2020-08-05 14:11:35 -05:00
Dante Falzone
ee9ce56003
fixed file extension matching for batch.nanorc 2020-08-05 13:57:56 -05:00
Dante Falzone
94f8d695c1
Added support for Batch (CMD.EXE) 2020-08-05 13:56:49 -05:00
Anthony Scopatz
7e40acc1e3
Merge pull request #320 from earboxer/php-symbols
* PHP: Improve operator coloring, support Nowdocs, Heredocs
2020-07-18 14:19:41 -05:00
Zach DeCook
e50fb095bf * PHP: Make paamayim nekodotayim same color as arrow 2020-07-15 14:52:33 -04:00
Zach DeCook
d307f5a75b * PHP: Decrease priority of inline comment 2020-07-14 17:20:52 -04:00
Zach DeCook
421f4b36b2 * PHP: Improve operator coloring, support Nowdocs, Heredocs 2020-07-14 17:14:05 -04:00
Anthony Scopatz
4bc02fc561
Merge pull request #317 from msfjarvis/kotlin
kotlin: add sealed as a class modifier
2020-06-21 16:58:04 -05:00
Harsh Shandilya
8f5c3cc429
kotlin: add sealed as a class modifier
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-06-20 23:03:33 +05:30
Anthony Scopatz
38a85e3ea4
Merge pull request #314 from oileurre/patch-1
Fix collisions between lists and emphasis
2020-06-09 09:28:29 -05:00
Oïleurre
71c21911c4
Fix collisions between lists and emphasis 2020-06-08 12:29:48 +02:00
Anthony Scopatz
a3e85b9271
Merge pull request #313 from oileurre/master
Create creole.nanorc
2020-06-07 12:08:33 -05:00
Oïleurre
816a67f202
Create creole.nanorc 2020-06-07 14:20:21 +02:00
Anthony Scopatz
a73f290502
Merge pull request #310 from yzzyx-network/master
Add support for MoonScript
2020-05-12 12:31:00 -04:00
Anthony Scopatz
f62bed1be9
Merge pull request #309 from hdquemada/master
Update groff.nanorc
2020-05-12 12:30:16 -04:00
Anthony Scopatz
1240f5e2f2
Merge pull request #308 from G-Rath/patch-6
fix(php): only highlight the spaces that are trailing
2020-05-12 12:30:02 -04:00
yzzyx
b847f09c59 Add Sieve script syntax
resolves issue #303
2020-05-08 12:15:24 -05:00
yzzyx
e5dad505ff
Add support for MoonScript
Based on https://github.com/leafo/moonscript-vim
2020-05-05 06:46:23 -05:00
yzzyx
fb34814488
Merge pull request #1 from scopatz/master
merge changes
2020-05-05 06:42:29 -05:00
hdquemada
694cacc285 Update groff.nanorc
added original line to allow color of some macros that only have one letter after .
2020-04-30 21:10:06 -04:00
Gareth Jones
1ef8583bae
fix(php): only highlight the spaces that are trailing 2020-05-01 10:22:23 +12:00
Anthony Scopatz
2c00b969da
Merge pull request #307 from hdquemada/master
groff.nanorc update
2020-04-30 14:15:46 -04:00
hdquemada
104dde0fb1 Update groff.nanorc
2020-04-30 deleted old line commented out
2020-04-30 10:36:04 -04:00
hdquemada
e35d6674f4 Update groff.nanorc
2020-04-30

Changed to allow coloring of more than the first letter of the macro commancs
2020-04-30 10:31:24 -04:00
Anthony Scopatz
d3d3097a27
Merge pull request #306 from hdquemada/master
Update asciidoc.nanorc
2020-04-28 15:15:29 -04:00
hdquemada
be00d820d5 Update asciidoc.nanorc
2020-04-27
2020-04-27 00:09:25 -04:00
Anthony Scopatz
815eb014c5
Merge pull request #305 from yzzyx-network/master
Add support for Gophermap and Gemini markdown files
2020-04-24 13:29:05 -04:00
yzzyx
6cbe4a99af
Add support for Gophermap and Gemini markdown files 2020-04-24 09:22:09 -05:00
Anthony Scopatz
913f6d75e7
Merge pull request #304 from earboxer/email
* Email: Use file extension, allow spaces after quote indent
2020-04-23 17:18:03 -04:00
Zach DeCook
4874956f42 * Email: Use extension, allow spaces after quote indent 2020-04-19 17:33:58 -04:00
Anthony Scopatz
5488e5f746
Merge pull request #302 from G-Rath/patch-5
feat(js): format template strings
2020-04-15 20:03:40 -05:00
Gareth Jones
c82f8da661
feat(js): format template strings 2020-04-16 12:33:49 +12:00
Anthony Scopatz
c58f276f3b
Merge pull request #301 from yujiri8/master
Make comments not black in nginx syntax
2020-04-15 10:56:22 -05:00
Ryan Westlund
8b3b92ae39 Fix #299: Make comments not black in nginx syntax 2020-04-12 09:30:31 -04:00
Anthony Scopatz
4c2b1e934e
Merge pull request #300 from yujiri8/master
Improve haskell.nanorc
2020-04-08 08:48:59 -05:00
Ryan Westlund
cfa6717850 Improve haskell.nanorc 2020-04-08 09:16:57 -04:00
Anthony Scopatz
3fb2783d75
Merge pull request #295 from msfjarvis/refactor/kotlin
kotlin: Add suspend modifier
2020-03-26 09:24:39 -05:00
Harsh Shandilya
69818fa425
kotlin: Add suspend modifier
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-26 11:15:36 +05:30
Anthony Scopatz
2df2d9c058
Merge pull request #294 from Betlista/master
highlighting file for Java .properties files
2020-03-21 18:26:55 -04:00
msuska
6ff09050d0 highlighting file for Java .properties files 2020-03-21 16:18:26 +01:00
Anthony Scopatz
bcdbd5a782
Merge pull request #292 from G-Rath/patch-4
Quote syntax names to improve v2.9 support
2020-03-18 12:29:45 -05:00
Anthony Scopatz
154ba5bbdd
Merge pull request #293 from G-Rath/patch-5
Add headers for ts & js nanorcs
2020-03-18 00:19:36 -05:00
Gareth Jones
d573d03ccf
feat(js): add header regex 2020-03-18 14:46:45 +13:00
Gareth Jones
15d54a8cc5
feat(ts): add header regex 2020-03-18 14:45:31 +13:00
Gareth Jones
1b96a23960
fix(prolog): quote syntax name to improve v2.9 support 2020-03-18 14:10:35 +13:00
Gareth Jones
0eb16aceaf
fix(hcl): quote syntax name to improve v2.9 support 2020-03-18 14:09:28 +13:00
Anthony Scopatz
791982df22
Merge pull request #291 from yvan674/patch-1
Some minor Readme clarification
2020-03-16 11:21:52 -05:00
Yvan Satyawan
935008947c
Clarified where the .nanorc files are unpacked to 2020-03-16 14:44:12 +01:00
Yvan Satyawan
c9c2175bff
Clarifies where the .nanorc files are unpacked to 2020-03-16 14:40:58 +01:00
Anthony Scopatz
31e9fd8c8d
Merge pull request #289 from Wasby/patch-1
(Haskell) Made "=>" cyan.
2020-03-14 19:41:26 -04:00
Aiden Gall
6e22afe76f
Made "=>" cyan.
Added "=>" (typeclass constraint) because the "equals" appeared cyan and the "more than" appeared magenta. This should be one colour (cyan) as it is one symbol.
2020-03-14 23:09:11 +00:00
Anthony Scopatz
3a1a94936c
Merge pull request #288 from G-Rath/patch-3
fix(ts): add missing keywords
2020-03-11 23:15:18 -04:00
Gareth Jones
b6627d0641
fix(ts): add asserts and is keyword 2020-03-12 15:36:48 +13:00
Gareth Jones
56e63831c4
fix(ts): add missing keywords 2020-03-12 15:35:16 +13:00
Anthony Scopatz
137cac79fa
Merge pull request #287 from msfjarvis/refactor/systemd
systemd: Add more directives
2020-02-24 21:11:56 -05:00
Anthony Scopatz
b39fe98f6d
Merge pull request #285 from hmlendea/master
M3U playlist syntax
2020-02-24 21:11:34 -05:00
Harsh Shandilya
233a018cc8
systemd: Add more directives
ProtectControlGroups
ProtectKernelModules
ProtectKernelTunables
RestrictAddressFamilies
RestrictNamespaces
RestrictRealtime
SystemCallArchitectures

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-20 03:50:53 +05:30
Mlendea, Horațiu
0f32f4755c Fixed main header highlighting 2020-02-09 11:57:37 +02:00
Mlendea, Horațiu
cdb3a12cc7 M3U playlist syntax 2020-02-09 11:50:20 +02:00
Anthony Scopatz
195b8b21ec
Merge pull request #283 from EmidioStani/master
include PHP syntax highlighting for .module files (used by Drupal)
2020-02-05 11:30:43 -06:00
emidiostani
a527805ceb include PHP syntax highlighting for .module files (used by Drupal) 2020-02-05 12:48:21 +01:00
Anthony Scopatz
1d741c83ab
Merge pull request #281 from pscosta5/master
Add toml support
2020-02-04 19:29:09 -05:00
Paulo S. Costa
9e8ff03ada
Add copyright notice 2020-02-04 11:19:43 -08:00
Anthony Scopatz
2dca712157
Merge pull request #282 from jpartain89/patch-1
Update to install.sh
2020-02-03 15:38:08 -05:00
Justin P
ae1e602188
Update to install.sh
When you would run `install.sh -h` or with `--help` flag, it would print those two `echo` lines, but it'd continue on its merry way, installing everything still! A `help` flag is not supposed to do that! So I added an `exit 0` to the help flag.
2020-01-30 23:28:08 -06:00
Paulo S. Costa
72787edbc5
Add toml support 2020-01-27 15:18:02 -08:00
37 changed files with 789 additions and 65 deletions

View File

@ -252,9 +252,11 @@
github: hawk93
- name: Harsh Shandilya
email: msfjarvis@gmail.com
num_commits: 10
num_commits: 13
first_commit: 2019-09-19 15:52:44
github: msfjarvis
alternate_emails:
- me@msfjarvis.dev
- name: DesertPunk
email: 38014530+DesertPunk@users.noreply.github.com
num_commits: 2
@ -335,7 +337,7 @@
github: TJProgrammer
- name: Anthony Scopatz
email: scopatz@gmail.com
num_commits: 50
num_commits: 52
first_commit: 2010-07-28 18:15:43
github: astronautlevel
- name: PhilipRoman
@ -556,16 +558,16 @@
email: zdecook@ccel.org
alternate_emails:
- zachdecook@librem.one
num_commits: 6
num_commits: 10
first_commit: 2019-12-18 09:34:49
github: earboxer
- name: Gareth Jones
email: Jones258@Gmail.com
num_commits: 3
num_commits: 11
first_commit: 2019-11-01 23:57:35
- name: Dante Falzone
email: 48266179+DanteFalzone0@users.noreply.github.com
num_commits: 2
num_commits: 8
first_commit: 2019-12-25 22:55:19
github: DanteFalzone0
- name: CryptoDragonLady
@ -583,3 +585,93 @@
num_commits: 4
first_commit: 2017-05-23 11:12:47
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

View File

@ -12,13 +12,15 @@
Anthony Scopatz <scopatz@gmail.com>
Elof <elofu17@users.noreply.github.com>
Simon Volpert <simon@simonvolpert.com>
Harsh Shandilya <msfjarvis@gmail.com> Harsh Shandilya <me@msfjarvis.dev>
Andrea Dejan Grande <dejan-grande@mail.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>
Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com>
Michael Straube <m.s.online@gmx.de> Michael Straube <straubem@gmx.de>
CoffeeTableEnnui <thiabaud.engelbrecht@gmail.com>
Zach DeCook <zdecook@ccel.org> Zach DeCook <zachdecook@librem.one>
Daniel Kaplun <dan@beardtree.com>
Philipp <creekpld@users.noreply.github.com>
Tiago Almeida <tjamadeira@gmail.com>
@ -27,6 +29,7 @@ nl6720 <nl6720@gmail.com>
Thomas Rosenau <thomasr@fantasymail.de> ThomasR <thomasr@fantasymail.de>
Matthew Cox <matthewcpcox@gmail.com>
Ritiek Malhotra <Ritiek@users.noreply.github.com>
hdquemada <44162051+hdquemada@users.noreply.github.com>
Birger Jarl <codefuhrer@gmail.com>
divinity76 <divinity76@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>
Jeppe Fihl-Pearson <jeppe@tenzer.dk>
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>
Aryan Ebrahimpour <aryanebrahimpour@gmail.com>
Paduct <paduct@list.ru> Bro <paduct@list.ru>
@ -56,8 +60,12 @@ Bryan Ross <bryan@liquidstate.net>
Nicholas Christopoulos <nereusx@users.noreply.github.com>
Sina <sina6002@gmail.com>
Ross Smith II <ross@smithii.com>
Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com>
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>
Marcus Willock <crazcalm@gmail.com> Crazcalm <crazcalm@gmail.com>
Dario Ostuni <another.code.996@gmail.com>
@ -124,3 +132,13 @@ John S Long <john@128.io>
Ghost-NULL <maatpeter@hotmail.com>
PN Wu (小平) <PingNote@users.noreply.github.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>

View File

@ -4,13 +4,15 @@ Authors are sorted by number of commits.
* Anthony Scopatz
* Elof
* Simon Volpert
* Harsh Shandilya
* Andrea Dejan Grande
* Alex Taber
* Harsh Shandilya
* Gareth Jones
* Zach DeCook
* Mariusz Smykuła
* Dante Falzone
* Michael Straube
* CoffeeTableEnnui
* Zach DeCook
* Daniel Kaplun
* Philipp
* Tiago Almeida
@ -19,6 +21,7 @@ Authors are sorted by number of commits.
* Thomas Rosenau
* Matthew Cox
* Ritiek Malhotra
* hdquemada
* Birger Jarl
* divinity76
* CirKu17
@ -29,7 +32,8 @@ Authors are sorted by number of commits.
* Mikael O. Bonnier
* Jeppe Fihl-Pearson
* Ondřej Ešler
* Gareth Jones
* davidhcefx
* yzzyx
* Dan Kaplun
* Aryan Ebrahimpour
* Paduct
@ -48,8 +52,12 @@ Authors are sorted by number of commits.
* Nicholas Christopoulos
* Sina
* Ross Smith II
* Dante Falzone
* Hunter Peavey
* Oïleurre
* Yvan Satyawan
* Paulo S. Costa
* Mlendea, Horațiu
* Ryan Westlund
* Dan Pasanen
* Marcus Willock
* Dario Ostuni
@ -116,3 +124,13 @@ Authors are sorted by number of commits.
* Ghost-NULL
* PN Wu (小平)
* CryptoDragonLady
* Joerg Stoever
* emidiostani
* Justin P
* czechuuu
* msuska
* Exonorid
* Aiden Gall
* Rashil Gandhi
* Serhiy Zahoriya
* Bart Hanssens

View File

@ -1,7 +1,7 @@
syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$"
# main header
color red "^====+$"
color brightred "^=[[:space:]].+$"
# h1
color red "^==[[:space:]].*$"
color red "^----+$"
@ -24,7 +24,7 @@ color red "\+\+\+\{[a-z0-9]*\}\+\+\+"
# Paragraph Title
color yellow "^\..*$"
# source
# source
color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]"
# Other markup

34
batch.nanorc Normal file
View 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:]]+$"

View File

@ -3,7 +3,7 @@
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino"
magic "^(C|C\+\+) (source|program)"
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 "\<((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)\>"
@ -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)__"
#Operator Color
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
#Parenthetical Color
color magenta "[(){}]" "\[" "\]"
@ -36,8 +36,11 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*""
## This string is VERY resource intensive!
#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
color brightblue "^\s*//.*"
color brightblue "//.*"
color brightblue start="/\*" end="\*/"
# Highlighting for documentation comments

22
creole.nanorc Normal file
View 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+$"

View File

@ -1,5 +1,5 @@
syntax "Email"
syntax "Email" "\.em(ai)?l$"
color magenta "^>([^>].*|$)"
color blue "^>>([^>].*|$)"
color green "^>>>.*"
color blue "^> ?>([^>].*|$)"
color green "^> ?> ?>.*"

21
gemini.nanorc Normal file
View 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
View 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 "#.*"

View File

@ -4,7 +4,7 @@ syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
comment ".\""
## The argument of .ds or .nr
color cyan "^\.(ds|nr) [^[[:space:]]]*"
color cyan "^\.(ds|nr) [^[[:space:]]]*[^[[:space:]]]*"
## Single character escapes
color brightmagenta "\\."
## 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 start="(\\|\\\\)n\[" end="]"
## Requests
color brightgreen "^\.[[:space:]]*[^[[:space:]]]*[^[[:space:]]]*"
color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
## Comments
color yellow "^\.\\".*$"

View File

@ -1,9 +1,8 @@
syntax "Haskell" "\.hs$"
syntax "haskell" "\.hs$"
comment "--"
## 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 "(^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$)"
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
color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
@ -12,17 +11,19 @@ color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
color magenta "(==|/=|&&|\|\||<|>|<=|>=)"
## Various symbols
color cyan "(->|<-)"
color cyan "(->|<-|=>)"
color magenta "\.|\$"
## 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
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
color yellow ""[^\"]*""
color yellow ""([^\"]|\\.)*""
## Chars
color brightyellow "'([^\']|\\.)'"
## Comments
color green "--.*"

View File

@ -4,7 +4,7 @@
# Original author: John Boero
# License: GPLv3 or newer
syntax hcl "\.(tf|hcl)$"
syntax "hcl" "\.(tf|hcl)$"
# No comments are permitted in JSON.
comment ""

View File

@ -28,7 +28,7 @@ color yellow ""(\\.|[^"])*""
color red "&#?[[:alnum:]]*;"
## 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:]]"
## Comments

View File

@ -6,6 +6,6 @@ color cyan "^[[:space:]]*[^=]*="
color brightmagenta "^[[:space:]]*\[.*\]$"
color red "[=;]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])(#([^{].*)?|;.*)$"
color brightblue "(^|[[:space:]])(#([^{].*)?|;.*)$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

View File

@ -40,6 +40,7 @@ case "$1" in
-h|--help)
echo "Install script for nanorc syntax highlights"
echo "Call with -l or --lite to update .nanorc with secondary precedence to existing .nanorc includes"
exit 0
;;
esac

View File

@ -10,7 +10,7 @@ color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interfa
color red ""[^"]*""
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"
color blue "^\s*//.*"
color blue "//.*"
color blue start="^\s*/\*" end="\*/"
color brightblue start="/\*\*" end="\*/"

View File

@ -1,4 +1,4 @@
syntax "JavaScript" "\.js$"
syntax "JavaScript" "\.(js|ts)$"
comment "//"
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]?"
@ -17,7 +17,7 @@ color green "\<(Number|Object|RegExp|String)\>"
color red "[-+/*=<>!~%?:&|]"
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
color brightblack "(^|[[:space:]])//.*"
color brightblack "//.*"
color brightblack "/\*.+\*/"
color brightwhite,cyan "TODO:?"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)"

View File

@ -13,6 +13,7 @@
## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting
syntax "JavaScript" "\.(js)$"
header "^#!.*\/(env +)node"
comment "//"
## Default
@ -41,6 +42,8 @@ color red "\<(true|false)\>"
## String
color brightyellow "L?\"(\\"|[^"])*\""
color brightyellow "L?'(\'|[^'])*'"
color brightcyan "L?`(\`|[^`])*`"
color brightwhite,blue start="\$\{" end="\}"
## Trailing spaces
color ,green "[[:space:]]+$"

View File

@ -8,7 +8,7 @@
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 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 cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>"
color brightred "\<(inner|outer)\>"

22
m3u.nanorc Normal file
View 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
View 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 "--.*"

View File

@ -8,6 +8,6 @@ color brightyellow "\$[A-Za-z][A-Za-z0-9_]*"
color red "[*]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color yellow start="'$" end="';$"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color brightblue "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

View File

@ -1,42 +1,61 @@
## PHP Syntax Highlighting
syntax "PHP" "\.php[2345s~]?$"
syntax "PHP" "\.php[2345s~]?$|\.module$"
magic "PHP script"
comment "//"
color white start="<\?(php|=)?" end="\?>"
# Functions
color brightblue "([a-zA-Z0-9_-]*)\("
# Constructs
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_]+:"
# Variables
color white "\$[a-zA-Z_0-9$]*|[=!<>]"
color white "\->[a-zA-Z_0-9$]*|[=!<>]"
color green "\$[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
color yellow "[.,{}();]"
color yellow "\["
color yellow "\]"
color yellow "[=][^>]"
color cyan "\["
color cyan "\]"
# Numbers
color magenta "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*"
color magenta "0x[0-9a-zA-Z]*"
# Special Variables
color brightblue "(\$this|parent::|self::|\$this->)"
color magenta ";"
# Comparison operators
color yellow "(<|>)"
# Assignment operator
color brightblue "="
# Bitwise Operations
color magenta "(\;|\||\^){1}"
color magenta "(&|\||\^)"
color magenta "(<<|>>)"
# Comparison operators
color yellow "(==|===|!=|<>|!==|<=|>=|<=>)"
# Logical Operators
color yellow "( and | or | xor |!|&&|\|\|)"
# And/Or/SRO/etc
color green "(\;\;|\|\||::|=>|->)"
# Online Comments
color brightyellow "(#.*|//.*)$"
# STRINGS!
color red "('[^']*')|(\"[^\"]*\")"
color cyan "(\;\;|\|\||::|=>|->)"
# Double quoted STRINGS!
color red "(\"[^\"]*\")"
# Heredoc (typically ends with a semicolon).
color red start="<<<['\"]?[A-Z][A-Z0-9_]*['\"]?" end="^[A-Z][A-Z0-9_]*;"
# Inline Variables
color white "\{\$[^}]*\}"
# Single quoted string
color red "('[^']*')"
# Online Comments
color brightyellow "^(#.*|//.*)$"
color brightyellow "[ | ](#.*|//.*)$"
# PHP Tags
color red "(<\?(php)?|\?>)"
# General HTML
color red start="\?>" end="<\?(php|=)?"
# trailing whitespace
color ,green "[^[:space:]]{1}[[:space:]]+$"
color ,green "[[:space:]]+$"
# multi-line comments
color brightyellow start="/\*" end="\*/"
# Nowdoc
color red start="<<<'[A-Z][A-Z0-9_]*'" end="^[A-Z][A-Z0-9_]*;"

34
powershell.nanorc Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
## Here is a prolog example.
syntax prolog "\.pl"
syntax "prolog" "\.pl"
comment "%"
# Reset everything

6
properties.nanorc Normal file
View File

@ -0,0 +1,6 @@
syntax "properties" "\.properties$"
# property key
icolor green "^[^:=]+[:=]"
# comments
icolor blue "([[:space:]])*[#!].*$"

View File

@ -12,11 +12,11 @@ color cyan "\<(None|self|True|False)\>"
## built-in attributes
color cyan "\<(__builtin__|__dict__|__methods__|__members__|__class__|__bases__|__import__|__name__|__doc__|__self__|__debug__)\>"
## 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
color brightblue "\<(print|exec)\>([[:space:]]|$)"
## 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
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

View File

@ -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
```
This automatically unpacks all the `.nanorc` files to `~/.nano`.
#### Note
Some syntax definitions which exist in Nano upstream may be preferable to the ones provided by this package.

22
rego.nanorc Normal file
View 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
View 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
View 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+:"

View File

@ -1,12 +1,12 @@
syntax "Systemd" "\.(service|socket)$"
syntax "Systemd" "\.(service|socket|timer)$"
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 brightblue "^\.include\>"
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 green "^\.include\>"
color red "="
color brightmagenta "^\[(Unit|Install|Service|Socket)\]"
color brightyellow "\$MAINPID"
color brightcyan "\<(true|false)\>"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color brightblue "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

54
toml.nanorc Normal file
View 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.

View File

@ -1,9 +1,10 @@
syntax "typescript" "\.(ts)$"
header "^#!.*\/(env +)ts-node"
## Default
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]?)?\>"
## 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]?"
## 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 "\<(do|else|enum|export|extends|finally|final|for)\>"
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 "\<(this|throw|try|typeof)\>"
color green "\<(this|throw|try|typeof|type)\>"
color green "\<(void|while|with|yield)\>"
color green "\<(async|await)\>"
color green "\<(set|get)\>"
color green "\<(module|namespace)\>"
color green "\<(declare)\>"
## Type specifiers
color red "\<(Array|Boolean|Date|Enumerator|Error|Function)\>"

View File

@ -19,3 +19,6 @@ color brightwhite ":(\s|\t|$)"
# Comments
color brightblue "(^|[[:space:]])#.*$"
# Trailing whitespace
color ,red "[[:space:]]+$"

9
zig.nanorc Normal file
View 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 " "