Compare commits

...

620 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
Anthony Scopatz
ec4e86c44b Updated authorship for 2020.1.25 2020-01-25 21:15:16 -05:00
Anthony Scopatz
d2ddb52222 added zach 2 2020-01-25 21:14:25 -05:00
Anthony Scopatz
29b82b6f3b added zach 2020-01-25 21:12:38 -05:00
Anthony Scopatz
e2ebb2be34
Merge pull request #272 from msfjarvis/bug/block-comments-highlighting
Fix block comments highlighting
2020-01-25 16:22:24 -05:00
Anthony Scopatz
12a814bb5b
Merge pull request #268 from earboxer/morefiles
* Syntax Files: Detect more files for highlighting
2020-01-25 16:17:50 -05:00
Anthony Scopatz
d7b7d3c52e
Merge pull request #274 from DanteFalzone0/master
Added support for documentation comments to java.nanorc and c.nanorc
2020-01-25 16:16:44 -05:00
Anthony Scopatz
0c664ff31d
Merge pull request #276 from CryptoDragonLady/master
Fixed readme errors and wording
2020-01-25 16:16:07 -05:00
Anthony Scopatz
34b4fdaf77
Merge pull request #273 from msfjarvis/bug/kotlin-qualifiers
kotlin: Add some additional qualifiers
2020-01-25 16:14:30 -05:00
Anthony Scopatz
b996b90471
Merge pull request #279 from G-Rath/patch-1
ts: highlight async/await keywords
2020-01-25 16:14:08 -05:00
Gareth Jones
745a0469d6
ts: highlight async/await keywords 2020-01-11 15:09:43 +13:00
Harsh Shandilya
39a6f5d9b6
kotlin: Add companion and const qualifiers
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2020-01-01 23:20:28 +05:30
CryptoDragonLady
5a86342efe Fixed readme errors and wording 2019-12-30 02:00:29 -07:00
Dante Falzone
8959baefff
added documentation comments to c.nanorc 2019-12-25 21:57:14 -06:00
Dante Falzone
c06c2b0a4f
Added syntax highlighting for javadoc 2019-12-25 21:55:19 -06:00
Harsh Shandilya
d1d39ec8e9
kotlin: Add the 'constructor' qualifier
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-12-22 17:00:19 +05:30
Harsh Shandilya
a22ad89b77
Fix block comments highlighting
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-12-22 16:57:25 +05:30
Zach DeCook
aaee778ba5 - syntax: Add a few more file endings 2019-12-18 22:08:43 -05:00
Zach DeCook
c8e328c847 Merge remote-tracking branch 'origin/master' into morefiles 2019-12-18 15:23:01 -05:00
Anthony Scopatz
8a999dde46
Merge pull request #269 from earboxer/colornanorc
* Nanorc: Color the colors as the colors
2019-12-18 14:19:22 -05:00
Anthony Scopatz
54c354037a
Merge pull request #270 from earboxer/updatecommentmagiclinter
Add comment, magic, and linter to files
2019-12-18 14:06:04 -05:00
Zach DeCook
db98b9f1b5 * NanoRC Files: Copy linter and magic from nano 4.6 configs 2019-12-18 11:20:31 -05:00
Zach DeCook
97f06f6c73 * Nanorc: Copy comment syntax from nano 4.6 nanorcs 2019-12-18 11:13:13 -05:00
Zach DeCook
45db478648 * Nanorc: Color the colors as the colors
This makes editing nanorc files more visual!
2019-12-18 10:10:58 -05:00
Zach DeCook
021cd02963 * CSS Syntax highlighting: highlight .less files 2019-12-18 09:41:41 -05:00
Zach DeCook
391ed68163 * Syntax Files: Detect more files for highlighting 2019-12-18 09:34:49 -05:00
Anthony Scopatz
c705a50603
Merge pull request #265 from msfjarvis/systemd
systemd: Add more qualifiers
2019-12-02 15:47:43 -05:00
Anthony Scopatz
469f9e6fd5
Merge pull request #266 from msfjarvis/comment-fix
Enforce leading space for comments in all languages
2019-12-02 10:14:01 -05:00
Harsh Shandilya
3cbbea4a30
Handle this the proper way
Suggested-by: SuperSandro2000 <sandro.jaeckel@posteo.de>
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-12-02 18:58:54 +05:30
Harsh Shandilya
8b6b6b5ad8
Enforce leading spaces for comments in all languages
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-12-02 15:58:00 +05:30
Harsh Shandilya
586cbc3e43
kotlin: Enforce one leading space
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-12-02 15:58:00 +05:30
Harsh Shandilya
a0d2186fd9
systemd: Add more qualifiers
AmbientCapabilities: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#AmbientCapabilities=
PrivateDevices: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#PrivateDevices=
ProtectHome: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectHome=
ProtectSystem: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectSystem=

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-12-02 15:56:49 +05:30
Anthony Scopatz
aa46e20170
Merge pull request #262 from msfjarvis/msf/java-comments-fix
java: Enforce atleast one leading space for comments
2019-11-10 12:13:49 -05:00
Harsh Shandilya
ed2409da61
java: Enforce atleast one leading space for comments
This might not be the best way to approach the problem

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-11-10 19:28:25 +05:30
Anthony Scopatz
1ba2698c05
Merge pull request #261 from G-Rath/patch-3
Highlight trailing whitespace (nanorc.nanorc)
2019-11-02 11:10:54 -04:00
Gareth Jones
7c6dc77d82
Highlight trailing whitespace (nanorc.nanorc) 2019-11-02 17:05:37 +13:00
Anthony Scopatz
2f8c7aba4b
Merge pull request #260 from G-Rath/patch-2
Highlight trailing whitespace
2019-11-02 00:03:59 -04:00
Gareth Jones
8ac8d00e08
Highlight trailing whitespace 2019-11-02 16:57:35 +13:00
Anthony Scopatz
54ba247767
Merge pull request #259 from msfjarvis/msf/kotlin-update
kotlin: Add lateinit to qualifiers
2019-10-31 12:56:10 -05:00
Harsh Shandilya
7b2faa354a
kotlin: Add lateinit to qualifiers
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-31 22:24:27 +05:30
Anthony Scopatz
6bee1b23bf
Merge pull request #258 from krathalan/master
Add official Arch Linux package
2019-10-18 21:25:58 -04:00
Hunter Peavey
017cccbc7f
Fix spacing 2019-10-18 16:45:33 -07:00
Hunter Peavey
db62155f3a
Add official Arch Linux package; change a few words to fit; and fixed a few typos 2019-10-18 16:38:17 -07:00
Anthony Scopatz
f71033167d
Merge pull request #150 from ritiek/patch-1
Add kotlin
2019-10-18 13:07:13 -04:00
Anthony Scopatz
421a5c47cb Updated authorship for 2019.10.17 2019-10-17 16:34:43 -04:00
Anthony Scopatz
46d06fc390 rever fix 2019-10-17 16:34:06 -04:00
Anthony Scopatz
cc54e0c46a rever setup 2019-10-17 16:31:26 -04:00
Anthony Scopatz
e3d317163b initial rever 2019-10-17 16:14:51 -04:00
Anthony Scopatz
1269c232fd initial rever 2019-10-17 16:07:17 -04:00
Anthony Scopatz
eeed400b8c
Merge pull request #254 from TJProgrammer/master
More convenient info in Readme file.
2019-10-12 14:11:27 -04:00
Tiago Almeida
6af8c5909a More convenient info. 2019-10-12 13:30:49 +01:00
Anthony Scopatz
9f6482ef2c
Merge pull request #252 from crazcalm/add_python_async_keywords
Add python async and await keywords
2019-10-07 15:02:14 -04:00
Crazcalm
28d0c9f08c Add python keywords async and await to highlight list 2019-10-07 14:41:40 -04:00
Marcus Willock
98ad894b8a
Merge pull request #1 from scopatz/master
Updating fork
2019-10-07 14:36:31 -04:00
Anthony Scopatz
f7740b3442
Merge pull request #250 from TJProgrammer/master
Some thecnical information
2019-10-05 11:21:33 -04:00
Tiago Almeida
92d5125fa7 Correct typos 2019-10-05 15:17:58 +01:00
Tiago Almeida
857d4047c4 Correct typos 2019-10-05 15:16:52 +01:00
Tiago Almeida
225e9972ef Resolved merge conflict 2019-10-05 15:12:35 +01:00
Tiago Almeida
3bf1072f86 Update with some techical explanations...
This is for someone (like me) that doesn't know how nano works.
2019-10-05 15:00:43 +01:00
Anthony Scopatz
e4b5e155c8
Merge pull request #249 from msfjarvis/msf/gradle
Add Gradle syntax highlighting
2019-10-03 13:06:08 -04:00
Anthony Scopatz
71b75641f6
Merge pull request #248 from vpont/master
Fix regex error in Rnw.nanorc
2019-10-02 08:19:40 -04:00
Harsh Shandilya
b50db7f96e
Add Gradle syntax highlighting
Taken from https://lists.debian.org/debian-java/2015/10/msg00019.html

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-02 16:42:17 +05:30
Víctor Pont
1c96a4830f
Fix regex error in Rnw.nanorc
An error would show up:
Error en /home/user/.nano/Rnw.nanorc en la línea 19: Regex «([a-zA-Z0-9_-.$]*)\(» incorrecta: Final de rango inválido
The regex was invalid.
2019-10-02 11:08:36 +02:00
Anthony Scopatz
37c5b36068
Merge pull request #247 from matnovak-foi/master
Addded support for Rnw files
2019-09-25 16:08:42 -04:00
matnovak
d69a47ef8c Addded support for Rnw files 2019-09-25 10:54:00 +02:00
Anthony Scopatz
d8fcf5fd0f
Merge pull request #246 from SuperSandro2000/patch-1
Fix heading levels, remove quote sections
2019-09-13 14:34:25 -04:00
Sandro
d60e0a1b3a
Fix heading levels, remove quote sections 2019-09-13 13:36:00 +02:00
Anthony Scopatz
66df684e08
Merge pull request #244 from TJProgrammer/new_readme
New Readme file, with more organised information.
2019-09-13 07:25:06 -04:00
Tiago Programmer
c64805f3a6
Correct a typo 2019-09-13 00:35:14 +01:00
Tiago Almeida
d34d3661e3 New Readme file, with more organised information. 2019-09-13 00:16:01 +01:00
Anthony Scopatz
5873ea106f
Merge pull request #241 from Tenzer/improve-nanorc.nanorc
Widen support in nanorc.nanorc
2019-07-27 07:36:43 -07:00
Jeppe Fihl-Pearson
4e028d3454 Add highlighting of colors after "set <keyword>"
This required the color highlighting to happen before the keywords were
highlighted as ERE doesn't support non-capturing groups.
2019-07-27 08:58:17 +01:00
Jeppe Fihl-Pearson
c336296fe1 Add "normal" to the list of highlighted colors
It's an allowed color as per
https://www.nano-editor.org/dist/latest/nanorc.5.html.
2019-07-27 08:56:57 +01:00
Jeppe Fihl-Pearson
74c48dd85c Support all the .nanorc keywords
The list was taken from https://www.nano-editor.org/dist/latest/nanorc.5.html.
Previously the list of keywords were split into two regexes, this didn't seem
to serve any purpose besides making the code harder to read, so I have
collapsed them together into one.
2019-07-27 08:53:05 +01:00
Anthony Scopatz
7ae493a1e3
Merge pull request #239 from neenjaw/master
basic elixir highlighting
2019-07-22 11:27:29 -04:00
Tim Austin
a27f953341 basic elixir highlighting 2019-07-21 21:40:02 -07:00
Anthony Scopatz
771126a123
Merge pull request #237 from Skrupellos/patch-1
Add `constantshow` to nanorc.nanorc
2019-07-17 16:15:14 -05:00
Skruppy
c545f9ef5e
Add constantshow to nanorc.nanorc 2019-07-09 19:16:52 +02:00
Anthony Scopatz
77b1a65bed
Merge pull request #234 from danielharbor/master
Fix fsharp.nanorc formatting issues
2019-06-29 07:25:04 -04:00
Daniel Harbor
531b706114 Fix fsharp.nanorc formatting issues 2019-06-28 21:43:05 -07:00
Anthony Scopatz
28d3a68b4d
Merge pull request #233 from PhilipRoman/c-fixed-width-types
Add "least", "fast" and "max" C fixed-width types
2019-06-26 18:37:30 -04:00
PhilipRoman
eff6072bf5 Add "least", "fast" and "max" C fixed-width types
This commit adds support for the remaining C99/C++11 fixed-width types:
u?int_fastN_t
u?int_leastN_t
u?intmax_t
2019-06-26 23:03:20 +03:00
Anthony Scopatz
907b2e3261
Merge pull request #232 from SuperSandro2000/patch-1
Remove useless checks, formatting
2019-06-24 09:34:03 -04:00
Sandro Jäckel
18d96c1ab8
Remove useless checks, formatting 2019-06-24 12:21:11 +02:00
Anthony Scopatz
b34a9dc2de
Merge pull request #230 from 0xaryan/master
Add F# nanorc
2019-06-21 10:32:42 -04:00
Aryan Ebrahimpour
221f368c2c update rules 2019-06-21 14:17:13 +04:30
Aryan Ebrahimpour
390e14b023 Add fsharp 2019-06-21 13:56:09 +04:30
Anthony Scopatz
3e26aa2fab
Merge pull request #226 from rasa/patch-1
Add missing keywords, builtins to sh.nanorc
2019-06-06 09:16:17 -04:00
Ross Smith II
c57d1f7911
Add missing builtins to sh.nanorc
See http://manpages.ubuntu.com/manpages/disco/man7/bash-builtins.7.html#synopsis
2019-06-05 23:40:13 -07:00
Ross Smith II
5ca686ee69
Update sh.nanord with all keyword/builtins 2019-06-05 23:27:13 -07:00
Anthony Scopatz
1df8c4706a
Merge pull request #225 from kollokollo/master
Added nanorc file for X11-Basic (BASIC programming language)
2019-06-05 10:43:13 -04:00
Markus Hoffmann
3e31ea5a3f Added nanorc file for X11-Basic (BASIC programming language)
Made it more or less from scratch because no other BASIC language file
existed (or at least I have not found any).
2019-06-05 12:45:35 +02:00
Anthony Scopatz
4aa8d461de
Merge pull request #223 from DesertPunk/master
Missed an include for my nmap.nanorc pull request,
2019-05-20 16:54:54 -05:00
DesertPunk
00e6d3a5fa
Missed an include for my nmap.nanorc pull request,
added a missing include "~/.nano/nmap.nanorc"
2019-05-19 23:52:00 +08:00
Anthony Scopatz
205a85806a
Merge pull request #217 from DesertPunk/master
Adding syntax highlighting for the .nmap extention.
2019-05-14 17:35:58 -04:00
Anthony Scopatz
d701d5e315
Merge pull request #222 from navid9675/master
Add TypeScript language syntax highlight
2019-05-11 07:12:35 -04:00
Navid Alipour
9b4f98de69 Add TypeScript language syntax highlight
Add TypeScript language syntax highlight by changing existing JavaScript syntax highlight.
2019-05-11 03:10:23 +04:30
Anthony Scopatz
37775bf3ea
Merge pull request #220 from AndreaDejanGrande/master
Jade and Pug support
2019-04-28 08:32:31 -04:00
Andrea Dejan Grande
d64254f33d Added each and for loops 2019-04-28 04:01:57 +02:00
Andrea Dejan Grande
c5a968e11a Added cases 2019-04-28 03:57:23 +02:00
Andrea Dejan Grande
b9b9b49d4f Fixed HTML related expressions 2019-04-28 03:44:03 +02:00
Andrea Dejan Grande
f9aabf3123 Added unbuffered comments 2019-04-28 03:34:56 +02:00
Andrea Dejan Grande
40e9bbd4d3 Added HTML support 2019-04-28 03:31:07 +02:00
Andrea Dejan Grande
944dc422ab Added links 2019-04-28 03:17:55 +02:00
Andrea Dejan Grande
5aaa682af6 Shrinked parenthesis regex 2019-04-28 03:00:29 +02:00
Andrea Dejan Grande
966e51f363 Added conditionals 2019-04-28 02:55:31 +02:00
Andrea Dejan Grande
8d108e569f Added includes 2019-04-28 02:15:20 +02:00
Andrea Dejan Grande
76f954e36d Added jade.nanorc and pug.nanorc 2019-04-27 23:24:07 +02:00
Andrea Dejan Grande
f6f67e5b4d Create jade.nanorc 2019-04-27 23:20:08 +02:00
Andrea Dejan Grande
a0ef4815e9 Create pug.nanorc 2019-04-27 23:19:34 +02:00
Anthony Scopatz
5f87deffb6
Merge pull request #219 from au5ton/patch-1
GNU Octave and Matlab support
2019-04-25 17:04:44 -04:00
Austin Jackson
082d35c8fc
Create octave.nanorc 2019-04-24 20:07:13 -05:00
Anthony Scopatz
28f1aaa245
Merge pull request #218 from jupblb/patch-1
Updated Scala files extensions
2019-04-17 12:26:23 -04:00
Michał Kiełbowicz
5bdbf29504
Updated Scala files extensions
Added syntax highlighting for Scala files with .sc and .sbt extensions
2019-04-15 17:50:31 +02:00
DesertPunk
b7313b0c28
Add files via upload 2019-04-07 23:05:34 +08:00
Anthony Scopatz
ee21b12aa3
Merge pull request #215 from nooitaf/patch-1
javascript.nanorc - highlights ending brace too
2019-03-17 09:34:07 -04:00
Ralf Brandenstein
879676489f
javascript.nanorc - highlights ending brace too 2019-03-17 07:55:13 +01:00
Anthony Scopatz
1f4a75b9a7
Merge pull request #214 from SuperSandro2000/patch-1
Add missing keywords to Dockerfile
2019-03-15 08:24:21 -04:00
Sandro Jäckel
0dcf11ab6f
Add missing keywords to Dockerfile
Sorted according to https://docs.docker.com/engine/reference/builder/
2019-03-15 08:31:46 +01:00
Anthony Scopatz
34897204eb
Merge pull request #213 from melezhik/master
Add pl6 pm6 extensions
2019-03-07 09:52:36 -08:00
Alexey Melezhik
4bab9c5202
Add pl6 pm6 extensions 2019-03-07 11:44:55 -06:00
Anthony Scopatz
7ae6f6edbb
Merge pull request #208 from lopho/patch-1
nano acknowledgement
2019-02-27 10:20:43 -05:00
lopho
adf634fd35
more tilde 2019-02-27 16:19:21 +01:00
lopho
4fe1697657
nano acknowledgement 2019-02-27 16:08:50 +01:00
Anthony Scopatz
00ed4d7ec4
Merge pull request #203 from simon-v/html-improvements
Update HTML highlighting ruleset and merge Jinja2 templating rules into it
2019-01-05 12:55:54 -05:00
Anthony Scopatz
36c34acf60
Merge pull request #204 from simon-v/python-magic
Python syntax improvements
2019-01-05 11:58:28 -05:00
Simon Volpert
31a2bcf436
Change the Python file header text 2019-01-05 18:23:10 +02:00
Simon Volpert
d449035c52
Python: Add rule to treat print and exec as both keywords and functions 2019-01-05 18:22:35 +02:00
Simon Volpert
8180a4cf7e
Add a magic string to Python's syntax definitions
Make the syntax name lowercase
2019-01-05 18:22:33 +02:00
Simon Volpert
269ff57d2b
Symlink html.j2.nanorc -> html.nanorc for people using extendsyntax on it 2019-01-05 16:47:53 +02:00
Simon Volpert
92baad770c
Update HTML highlighting ruleset and merge J2 templating rules into it 2019-01-05 14:58:39 +02:00
Anthony Scopatz
6a3d34f7ed
Merge pull request #202 from simon-v/rainbow-csv
Add Rainbow CSV
2019-01-04 09:54:30 -05:00
Anthony Scopatz
32bea1d0bd
Merge pull request #201 from simon-v/python-tweaks
Python tweaks
2019-01-04 09:53:28 -05:00
Simon Volpert
56106c7e02
Add rainbow CSV highlighting rules (12 column coverage)
Inspired by https://github.com/mechatroner/rainbow_csv
2019-01-04 16:43:43 +02:00
Simon Volpert
49c839cfea
Remove dead code in Python definition 2019-01-04 16:31:34 +02:00
Anthony Scopatz
881ba7ae36
Merge pull request #200 from simon-v/cfg-ini
Add cfg extension to ini file rules
2019-01-04 09:24:52 -05:00
Simon Volpert
4bf49a725a
Unify comments in Python file 2019-01-04 15:35:10 +02:00
Simon Volpert
c3c1996717
Python: Make numbers yellow instead of blue to make them easier to read 2019-01-04 15:34:22 +02:00
Simon Volpert
b364e4bf4d
Make Python comment rule more specific 2019-01-04 15:34:22 +02:00
Simon Volpert
be1c690ef1
Add reminders to Python syntax 2019-01-04 15:28:27 +02:00
Simon Volpert
0f2ad69b02
Make Python quoted strings brown 2019-01-04 15:26:45 +02:00
Simon Volpert
7e312f8d95
Enable highlighting of built-in Python classes 2019-01-04 15:24:38 +02:00
Simon Volpert
455cbfb209
Add cfg extension to ini file rules 2019-01-04 15:06:43 +02:00
Anthony Scopatz
79ac0cac8b
Merge pull request #199 from esler/master
fix PHP classes with underscore character
2018-12-17 08:11:53 -05:00
Ondřej Ešler
7e1cb42c50 fix PHP classes with underscore character 2018-12-17 12:32:30 +01:00
Anthony Scopatz
9bea2503fd
Merge pull request #197 from esler/master
add syntax highlighting for /etc/hosts
2018-12-13 07:58:23 -05:00
Ondřej Ešler
77060a0ae8 fix a typo 2018-12-13 10:50:46 +01:00
Ondřej Ešler
0e0396222c add syntax highlighting for /etc/hosts 2018-12-13 10:48:50 +01:00
Anthony Scopatz
ea044abe5e
Merge pull request #196 from arisinfenix/master
pkgbuild: Add sha224sums and changelog
2018-12-04 07:41:41 -05:00
Michael Straube
90114bfb73 pkgbuild: Add sha224sums and changelog
Also add checkdepends forgotten in commit 6dddac6.
2018-12-04 11:26:47 +01:00
Anthony Scopatz
2ef10b6d75
Merge pull request #195 from arisinfenix/master
Add checkdepends to pkgbuild keywords
2018-11-27 10:06:14 -05:00
Michael Straube
6dddac635a Add checkdepends to pkgbuild keywords 2018-11-27 15:39:43 +01:00
Anthony Scopatz
142ee236d3
Merge pull request #194 from ingria/patch-1
Some nginx config tweaks
2018-11-03 18:27:31 -04:00
Birger Jarl
4947e352c5
Added missing proxy_ directives
`proxy_cache_methods`, `proxy_pass_request_body`, `proxy_pass_request_headers`, `proxy_pass_request_headers`, `proxy_cache_convert_head`, `proxy_cache_lock_age`, `proxy_cache_max_range_offset`, `proxy_send_lowat`, `proxy_set_body`, `proxy_socket_keepalive`. `proxy_ssl_trusted_certificate`
2018-11-04 00:56:58 +03:00
Birger Jarl
f63ecc1304
Parse config files in sites-enabled and sites-available 2018-11-04 00:49:03 +03:00
Birger Jarl
0ab67dcf5b
Added missing ssl directives 2018-11-04 00:42:42 +03:00
Anthony Scopatz
4cde0794f5
Merge pull request #193 from jboero/hashicorp
Added Hashicorp Terraform/HCL
2018-10-23 10:20:29 -06:00
jboero
0a3df57129 Changed author 2018-10-23 09:52:03 +01:00
jboero
8ef8bfd54a Added Hashicorp Terraform/HCL 2018-10-23 09:49:30 +01:00
Anthony Scopatz
37a61136e7
Merge pull request #190 from tomcharter365/patch-1
Fix not balanced parentheses in js.nanorc
2018-10-11 18:17:58 -04:00
tomcharter365
12b48e6a30
Fix not balanced parentheses
Needed to add `(` to line 32
2018-10-11 15:20:56 -06:00
Anthony Scopatz
bdb317ee11
Merge pull request #187 from fszymanski/master
nanorc.nanorc: add positionlog keyword
2018-09-10 08:44:14 -04:00
Filip Szymański
a0f1f3007e
nanorc.nanorc: add positionlog keyword 2018-09-10 14:25:37 +02:00
Anthony Scopatz
1e589cb729
Merge pull request #185 from yochem/master
Added syntax highlighting for Prolog
2018-09-05 08:30:59 -04:00
yochem
0726842a72 Added prolog syntax highlighting 2018-09-05 10:56:49 +02:00
Anthony Scopatz
19feaf51d8
Merge pull request #183 from demosdemon/master
ignore nano `search_history`
2018-08-27 10:02:38 -05:00
Brandon LeBlanc
a846e789bf
ignore nano search_history 2018-08-27 09:57:14 -05:00
Anthony Scopatz
92ae6f2448
Merge pull request #182 from PingNote/patch-1
change AUR Hepler to aurman (or others)
2018-08-15 08:16:41 -04:00
PN Wu (小平)
24336437fb
change AUR Hepler to aurman (or others)
yaourt is discontinued , do not use yaourt .

Reference https://wiki.archlinux.org/index.php/AUR_helpers or https://itsfoss.com/best-aur-helpers
2018-08-15 15:22:08 +08:00
Anthony Scopatz
52f233749e
Merge pull request #180 from ChaosZero112/patch-1
Check for unzip
2018-07-14 21:18:21 -05:00
Cody
94a94a84a2
Check for unzip
It's too late to find out unzip isn't installed after already downloading the zip. Let's add a quick check to catch this error at the get-go.
2018-07-14 19:16:55 -04:00
Anthony Scopatz
c18ba7b651
Merge pull request #179 from BarbzYHOOL/patch-1
YAML comments are now grey/brightblue
2018-07-05 08:57:30 -04:00
Barbz
1d7e358a76
YAML comments are now grey/brightblue
White was too shiny
2018-07-03 21:32:35 +02:00
Anthony Scopatz
9acc62b0c1
Merge pull request #178 from kufii/patch-1
include some missing nanorc options
2018-06-22 14:12:49 -04:00
Adrien Pyke
22d746ece8
include some missing nanorc options 2018-06-22 14:10:04 -04:00
Anthony Scopatz
ffe936295f
Merge pull request #177 from mcnesium/master
Bright red possible errors
2018-06-18 07:46:13 -04:00
mcnesium
e6f5352658
Merge pull request #1 from mcnesium/mcnesium-patch-1
Bright red possible errors
2018-06-18 13:44:08 +02:00
mcnesium
85f1106c24
Bright red possible errors 2018-06-18 13:40:34 +02:00
Anthony Scopatz
e6692994c7
Merge pull request #176 from esler/add_dotenv_syntax
add .env file syntax highlight
2018-06-13 10:19:15 -04:00
Ondrej Esler
f91ebbbccd add .env file syntax highlight 2018-06-13 16:15:43 +02:00
Anthony Scopatz
4af9726092
Merge pull request #175 from ericmjl/html.j2
added html with jinja templating
2018-05-27 13:32:31 -04:00
Eric Ma
7599506d38 added html with jinja templating 2018-05-28 01:29:36 +08:00
Anthony Scopatz
7a414f72a8
Merge pull request #173 from mobluse/master
Added support for Verilog
2018-05-17 13:35:44 -04:00
Mikael O. Bonnier
26df9b294c Commented "comment" for YAML to use with nano 2.5 2018-05-12 13:05:04 +02:00
Mikael O. Bonnier
439e0135b4 Added Verilog 2018-05-12 12:55:55 +02:00
Mikael O. Bonnier
fe659cb3f6 Added Verilog 2018-05-12 12:55:08 +02:00
Anthony Scopatz
4e841c3a5c
Merge pull request #172 from yochem/master
Updated README with problem in issue #52
2018-05-08 16:40:38 -04:00
yochem
5a8448e398 Updated README with problem in issue #52 2018-05-08 22:38:59 +02:00
Anthony Scopatz
b86777419a
Merge pull request #171 from yochem/master
[yaml] Color 'normal' back to 'brightwhite'
2018-05-08 13:31:56 -04:00
yochem
56e9257f56 Changed normal back to brightwhite, as it seems a lot of older versions of Nano don't support color normal 2018-05-08 14:46:49 +02:00
Anthony Scopatz
a9e8d9d1e7
Merge pull request #170 from yochem/master
[yaml] Regarding comment from @jc-iacono
2018-05-05 06:41:02 -04:00
yochem
d6a38f391f wrapped syntax name in quotes and brightwhite -> normal 2018-05-05 12:14:03 +02:00
Anthony Scopatz
848011a76c
Merge pull request #169 from yochem/master
Rewrote yaml.nanorc to improve syntax highlighting
2018-05-04 12:14:18 -04:00
yochem
50bfd295ba rewrote yaml.nanorc to improve syntax highlighting 2018-05-03 13:37:35 +02:00
Anthony Scopatz
2e4f53fe82
Merge pull request #167 from perlun/patch-1
Update nginx.nanorc
2018-04-23 09:06:21 -04:00
Per Lundberg
960ac5d536
Update nginx.nanorc
Sometimes you have server names with an embedded dash character (`foo.bar-baz.com`), which is perfectly valid but the previous regexp doesn't capture these cases. This PR fixes that.
2018-04-23 15:28:19 +03:00
Anthony Scopatz
1df2e91ca1
Merge pull request #166 from esler/add_svn
add syntax highlight for svn commit file
2018-04-03 17:06:58 -04:00
Ondrej Esler
5516da7e24 add syntax highlight for svn commit file 2018-04-03 22:49:51 +02:00
Anthony Scopatz
0fdc798142
Merge pull request #162 from gmcclins/shellcheck
shellcheck fixes
2018-03-20 15:53:37 -04:00
Anthony Scopatz
2833921a6e
Merge pull request #163 from gmcclins/travis
travis-ci shellcheck test
2018-03-20 15:53:09 -04:00
Anthony Scopatz
334332dbaf
Merge pull request #165 from dbkaplun/zsh-theme
Add .zsh-theme ext to zsh.nanorc
2018-03-20 15:51:12 -04:00
Dan Kaplun
8fa1d103d4 Add .zsh-theme ext to zsh.nanorc 2018-02-04 12:18:29 -05:00
Geoffrey McClinsey
211ef14724 introduce travis/shellcheck 2017-12-28 01:31:13 -05:00
Geoffrey McClinsey
6a71b6f185 fix what shellcheck will find 2017-12-28 01:29:50 -05:00
Geoffrey McClinsey
08cfd55216 shellcheck fixes 2017-12-28 00:24:09 -05:00
Anthony Scopatz
dbb70b17e7
Merge pull request #159 from TUSF/patch-1
Fixing Markdown quotes that span more than one line.
2017-12-21 00:09:09 -08:00
TUSF
8d01fc00f8
Fixing quotes that span more than one line.
To break out of a quote-block in markdown, one has to have two line-breaks. It's the same as usual paragraphs, so having only one line-break results in it being collapsed as a single space. To represent that behavior here, I'm using start-end, with the previous match being the "start", and a blank line (^$) being the "end".
2017-12-20 23:49:51 -06:00
Anthony Scopatz
43dd59ad36 Merge pull request #154 from nereusx/master
[t]csh syntax
2017-07-16 10:09:47 -05:00
Anthony Scopatz
5a4c34d7af Merge pull request #155 from htdebeer/master
Added ECMAScript 2015/6/7 keywords and types to the two JavaScript syntax files
2017-07-16 10:08:47 -05:00
Huub de Beer
1cabaa8e07 Added ECMAScript 2015/6/7 keywrods and types to the two JavaScript syntac files. 2017-07-16 13:49:51 +02:00
Huub de Beer
86d6ce6dfd Added ECMAScript 2015/6/7 keywrods and types to the two JavaScript syntac files. 2017-07-16 13:48:35 +02:00
Huub de Beer
8aaecabe59 Added ECMAScript 2015/6/7 keywrods and types to the two JavaScript syntac files. 2017-07-16 13:46:55 +02:00
Nicholas Christopoulos
45bd12d619 Add files via upload
[t]csh added
2017-07-16 05:27:32 +03:00
Nicholas Christopoulos
8ce26e04a0 Create csh.nanorc 2017-07-16 04:26:56 +02:00
Anthony Scopatz
fc08bf270a Merge pull request #152 from MakeNowJust/es6-template-string
Add support for ES6 template literal
2017-06-30 21:58:02 -05:00
TSUYUSATO Kitsune
dc26b2f6dd Add support for ES6 template literal 2017-06-30 16:30:16 +09:00
Anthony Scopatz
680dd50c7f Merge pull request #143 from SamuelEnglard/fix-syntax-issues
Fix syntax issues
2017-06-15 14:18:07 -07:00
Anthony Scopatz
5e776dfb59 Merge pull request #151 from esler/patch-1
highlight standard INI comments
2017-05-25 10:46:28 -04:00
esler
42997309b6 highlight standard comments
lines starting with `;` are comments, see https://en.wikipedia.org/wiki/INI_file#Comments
2017-05-25 13:35:02 +02:00
Ritiek Malhotra
acdc221649 Add copyright 2017-05-25 01:06:26 +05:30
Ritiek Malhotra
d6b9ba466d Adjust colors 2017-05-24 11:49:31 +05:30
Ritiek Malhotra
0f13ffd8c2 Add kotlin.nanorc 2017-05-23 20:44:21 +05:30
Ritiek Malhotra
188f55b6f0 Add kotlin.nanorc
Credits to https://github.com/bjarneh/kotkit/blob/master/misc/syntax/nano/kotlin.nanorc
2017-05-23 20:42:47 +05:30
Anthony Scopatz
b394ee16e1 Merge pull request #147 from sledgeh/master
Update README. Better install manual.
2017-04-24 16:04:04 -04:00
sledgeh
51b5d11274 Update README. Better install manual. 2017-04-23 23:17:31 +03:00
Anthony Scopatz
c6c495bdc7 Merge pull request #146 from mstraube/master
Add validpgpkeys to pkgbuild keywords
2017-04-19 15:19:59 -04:00
Michael Straube
af1ac95b15 Add validpgpkeys to pkgbuild keywords 2017-04-15 18:41:21 +02:00
Shmueli Englard
0149f4be82 the extra ; and [] caused parsing issues 2017-03-29 12:52:59 -04:00
Shmueli Englard
9467b1ea5a defining functions with the keyword is not supported in all shells 2017-03-29 12:52:08 -04:00
Anthony Scopatz
59441c7f5a Merge pull request #140 from Paduct/master
Add comments
2017-02-28 10:19:28 -05:00
Bro
11af806d66 Add comments 2017-02-28 18:50:10 +04:00
Anthony Scopatz
726c1a50f3 Merge pull request #139 from pik/install-lite
Add -l|--lite option to install which includes new syntax files with …
2017-02-21 09:46:29 -05:00
pik
e5a675d762 Add -l|--lite option to install which includes new syntax files with lower precedence 2017-02-21 09:34:41 -03:00
Anthony Scopatz
19cbb486b1 Merge pull request #137 from karlding/genie
Fix genie.nanorc regex
2017-02-04 08:27:06 -05:00
Karl
4b6ed18cf1 Fix genie.nanorc regex
Fix "empty (sub)expression" errors in regex pattern
2017-02-04 08:21:14 -05:00
Anthony Scopatz
dc9867e132 Merge pull request #136 from mstraube/master
Add epoch to pkgbuild keywords
2017-01-27 14:09:38 -05:00
Michael Straube
1bbdc0d5a0 Add epoch to pkgbuild keywords 2017-01-27 20:04:46 +01:00
Anthony Scopatz
9befa91730 Merge pull request #135 from luislobo/master
Added i3 windows manager config file syntax
2017-01-23 12:07:46 -05:00
Luis Lobo Borobia
a6dad50ec6
Added i3 windows manager config file syntax 2017-01-23 11:00:40 -06:00
Anthony Scopatz
ee137a16bf Merge pull request #134 from Paduct/patch-1
genie.nanorc
2017-01-12 06:35:48 -08:00
Paduct
3503dbe31a genie.nanorc
Syntax highlight "Genie"
2017-01-12 13:25:39 +04:00
Anthony Scopatz
a1662aca4b Merge pull request #133 from b-/master
Added "revise" temporary files from composure
2017-01-03 15:56:14 -08:00
Brian Recchia
8f42c1e500 Added "revise" temporary files from composure (github.com/erichs/composure) 2017-01-03 17:07:03 -05:00
Anthony Scopatz
8da28f3067 Merge pull request #132 from nl6720/master
add more commands to zsh
2016-12-14 18:20:15 -08:00
nl6720
ab5392636e add more commands to zsh 2016-12-14 13:56:20 +02:00
Anthony Scopatz
6f24a8fca3 Merge pull request #131 from xgouchet/master
Update the install script
2016-12-11 10:29:42 -08:00
Xavier Gouchet
940b6a866f
Update the install script
This fixes the scopatz/nanorc#130 issue by preventing the install script
to sort the ~/.nanorc config file, and only add includes if they're not
already present.
2016-12-10 10:50:00 +01:00
Anthony Scopatz
d2d84b8206 Merge pull request #128 from elofu17/patch-2
For conformity, always color trailing whitespace green, not red or blue
2016-12-06 20:24:25 -05:00
Anthony Scopatz
954811a396 Merge pull request #127 from elofu17/patch-1
Color any trailing whitespace in green
2016-12-06 20:23:57 -05:00
Elof
791c23ca8a For conformity, color trailing whitespace green, not blue 2016-12-06 22:44:39 +01:00
Elof
08b3f8e87e For conformity, color trailing whitespace green, not blue 2016-12-06 22:43:53 +01:00
Elof
91ca5382ce For conformity, color trailing whitespace green, not red 2016-12-06 22:41:58 +01:00
Elof
2f4a44f838 Color trailing whitespace green 2016-12-06 22:19:02 +01:00
Elof
54d9e4eee6 Color trailing whitespace green 2016-12-06 22:17:01 +01:00
Elof
1c1897e8f4 Color trailing whitespace green 2016-12-06 22:15:38 +01:00
Elof
3cfc98eb57 Color trailing whitespace green 2016-12-06 22:14:27 +01:00
Elof
0fd4cfd55e Color trailing whitespace green 2016-12-06 22:13:04 +01:00
Elof
81aa8c3455 Color trailing whitespace green 2016-12-06 22:11:12 +01:00
Elof
0ca37f9fdd Color trailing whitespace green 2016-12-06 22:10:38 +01:00
Elof
6ba2322409 Color trailing whitespace green 2016-12-06 22:07:25 +01:00
Elof
d3a313afd8 Color trailing whitespace green 2016-12-06 22:06:12 +01:00
Elof
d3d7b09738 Color trailing whitespace green 2016-12-06 22:04:38 +01:00
Elof
64896f535d Color trailing whitespace green 2016-12-06 22:03:16 +01:00
Elof
60bd52d24d Color trailing whitespace green 2016-12-06 22:02:16 +01:00
Elof
10a47587e0 Color trailing whitespace green 2016-12-06 22:00:19 +01:00
Elof
3ce3cb9133 Color trailing whitespace green 2016-12-06 21:59:24 +01:00
Elof
8266c06827 Color trailing whitespace green 2016-12-06 21:58:21 +01:00
Elof
b02326b48f Color trailing whitespace green 2016-12-06 21:56:28 +01:00
Elof
55ef33c37f Color trailing whitespace green 2016-12-06 21:50:19 +01:00
Elof
e5cb3e8d30 Color trailing whitespace green 2016-12-06 21:47:45 +01:00
Elof
7efcacca6d Color trailing whitespace green 2016-12-06 21:37:13 +01:00
Anthony Scopatz
25db126921 Merge pull request #126 from elofu17/patch-1
Fixed typo (and changed color) for trailing whitespace
2016-12-06 13:13:25 -05:00
Elof
d036a8c73c Fixed typo (and changed color) for trailing whitespace 2016-12-06 19:11:24 +01:00
Anthony Scopatz
99b6a21f37 Merge pull request #93 from evanowen/patch-1
Added puppet.nanorc to the nanorc file
2016-10-13 18:57:42 -05:00
Anthony Scopatz
e0f5609ea7 Merge pull request #122 from divinity76/patch-2
clean up the files left in /tmp
2016-10-13 18:09:35 -05:00
divinity76
711ff1fce7 clean up the files left in /tmp 2016-10-14 01:06:30 +02:00
Anthony Scopatz
6d5fc37bf4 Merge pull request #121 from divinity76/patch-1
use wget instead of curl for automatic installer
2016-10-13 17:48:58 -05:00
divinity76
ee381be8e5 have wget be an alternative to curl for running the installer 2016-10-14 00:46:08 +02:00
divinity76
886a1d5a42 use wget instead of curl for automatic installer
reasons to use wget includes: 
wget is more ubiquitously available than curl. (my particular problem: curl isn't shipped in Debian by default)

wget's ability to recover from a prematurely broken transfer and continue downloading has no counterpart in curl.

reasons for using curl:
... in theory, curl could be faster by enabling --compressed , which would make the github servers gzip-compress the transfer (curl: "Accept-Encoding: deflate, gzip" github: "Content-Encoding: gzip", which as of speaking would save 158 bytes, extra header not accounted for)

but since we're not using --compressed anyway, and that the script is really small (355 bytes), it's a moot point.

i think we should use wget.
2016-10-14 00:23:41 +02:00
Anthony Scopatz
6fbb86ab90 Merge pull request #119 from invisiblek/master
makefile: bightmagenta for start of lines beginning with +=
2016-10-13 02:26:46 -05:00
Dan Pasanen
40fd6acdf3 makefile: bightmagenta for start of lines beginning with +=
* += is very typical in android building and this makes it as pretty
  as := lines
2016-10-11 18:09:02 -05:00
Anthony Scopatz
0969169f3e Merge pull request #118 from ThomasR/patch-2
Create ical.nanorc
2016-09-30 02:58:25 -04:00
Thomas Rosenau
cdfc249731 Create ical.nanorc 2016-09-30 08:56:06 +02:00
Anthony Scopatz
b6a2406bc9 Merge pull request #117 from hawk93/master
Correct python header
2016-09-27 13:21:14 -04:00
Alessandro Luppi
982d6ce9c1 Correct python header 2016-09-27 19:21:15 +02:00
Anthony Scopatz
4d7c75ca93 Merge pull request #115 from CoffeeTableEnnui/patch-6
Update html.nanorc
2016-09-01 20:15:47 -04:00
CoffeeTableEnnui
e530684df4 Update html.nanorc
Added comment highlighting.  Added more common attributes.
2016-09-01 17:04:06 -07:00
Anthony Scopatz
c79521658c Merge pull request #112 from CoffeeTableEnnui/patch-2
Update clojure.nanorc
2016-08-30 18:26:01 -04:00
Anthony Scopatz
87a6232ef8 Merge pull request #114 from CoffeeTableEnnui/patch-5
Added basic number highlighting
2016-08-30 18:19:47 -04:00
CoffeeTableEnnui
27b3a6e1b5 Added basic number highlighting
Highlighting for octal, hex, int, float.
2016-08-30 14:29:01 -07:00
Anthony Scopatz
8093ed16c8 Merge pull request #113 from CoffeeTableEnnui/patch-4
Update number highlighting
2016-08-30 17:15:23 -04:00
CoffeeTableEnnui
fb3e5eb1b0 Update number highlighting
Added highlighting for longs, octal (both forms), complexes, binary, and hex.
2016-08-30 14:04:41 -07:00
CoffeeTableEnnui
c5d4bd060f Update clojure.nanorc
added highlighting for more keywords.  added highlighting for :import, :require, :use
2016-08-30 13:02:50 -07:00
Anthony Scopatz
9749264079 Merge pull request #111 from CoffeeTableEnnui/patch-1
Include clojure.nanorc
2016-08-29 08:36:19 -04:00
CoffeeTableEnnui
b0a8b89aab Include clojure.nanorc 2016-08-28 23:21:31 -07:00
Anthony Scopatz
4732399558 Merge pull request #110 from CoffeeTableEnnui/patch-1
Update tex.nanorc
2016-08-29 00:58:52 -04:00
CoffeeTableEnnui
c56fc9eeed Update tex.nanorc
Fixed problem with highlighting when $$displaymode$$ is used.
2016-08-28 21:39:10 -07:00
Anthony Scopatz
f78e3b8baf Merge pull request #109 from CoffeeTableEnnui/patch-1
Create clojure.nanorc
2016-08-29 00:03:58 -04:00
CoffeeTableEnnui
564cb1fae6 Create clojure.nanorc
Proposing adding syntax highlighting for Clojure.
2016-08-28 21:02:37 -07:00
Anthony Scopatz
f2f6bafa52 Merge pull request #108 from meeDamian/bug/107-invalid-regex-escapes
coffeescript regex escapes fixed
2016-07-17 08:33:34 -04:00
Damian Mee
4e6793f79f
coffeescript regex escapes fixed 2016-07-17 18:49:37 +08:00
Anthony Scopatz
48f25f0d18 Merge pull request #106 from Trejjam/master
Add missing escape in coffeescript.nanorc
2016-07-07 08:01:44 -04:00
Jan Trejbal
a983d29c60 Add missing escape 2016-07-07 13:27:40 +02:00
Anthony Scopatz
1bc9c89e85 Merge pull request #103 from mis2/whitespace
Highlight whitespace
2016-06-12 12:59:22 -04:00
Michael Straube
74e57db6d6 Highlight whitespace 2016-06-12 18:48:32 +02:00
Anthony Scopatz
ed1d8042cd Merge pull request #102 from mis2/c-whitespace
uncomment whitespace highlighting
2016-06-10 15:43:45 -04:00
Michael Straube
eef750872c uncomment whitespace highlighting 2016-06-10 21:39:11 +02:00
Anthony Scopatz
b2544a5fcc Merge pull request #101 from mis2/pkgbuild
add trailing whitespace to pkgbuild.nanorc
2016-06-10 15:36:18 -04:00
Michael Straube
2d43a686ee add trailing whitespace to pkgbuild.nanorc 2016-06-10 21:24:25 +02:00
Anthony Scopatz
ca019b6257 Merge pull request #99 from Erroneous1/perl_fixes
perl.nanorc: fixed text highlighting
2016-06-03 08:29:33 -07:00
Aaron Bishop
6dc9beaaf4 perl.nanorc: added highlighting for 'text' and fixed "text".$nontext."more text" 2016-06-03 10:46:57 -04:00
Anthony Scopatz
ee8658930a Merge pull request #98 from creekpld/master
Master
2016-05-05 11:22:06 -04:00
Philipp Leo Dylong
39f19f3d6e added Unicode and Integer Literals 2016-05-05 12:07:14 +02:00
Philipp Leo Dylong
f8f7242417 added Attributes case
-added Attributes case highlight words beginning with a @ sing
-made some lines more compact for readability
2016-05-05 11:21:18 +02:00
Philipp
8afb5e604d added static to statements 2016-05-03 21:27:40 +02:00
Philipp
beb092d898 fixed some regex not working on osx.
Regex Word boundary "\b" not working on OSX, relaced with Start "\<" and End of Word "\>".
2016-05-03 13:06:39 +02:00
Anthony Scopatz
3de85412c6 Merge pull request #97 from maritaria/patch-1
Highlight trailing whitespaces
2016-04-30 14:07:43 -04:00
maritaria
d76277c3f9 Highlight trailing whitespaces
Taken from the sh.nanorc file for highlighting trailing whitespaces
2016-04-30 19:44:51 +02:00
Philipp
2358b0f7c2 ups 2016-04-29 21:32:22 +02:00
Philipp Leo Dylong
5536991f40 - added Standard Libraries
- fixed and improved some Standard Types
- made ! more visible
2016-04-29 21:21:21 +02:00
Anthony Scopatz
e7974027ca Merge pull request #96 from dariost/master
Added missing C++ keywords
2016-03-23 21:04:38 -04:00
Dario Ostuni
d586ea14f7 Added missing C++ keywords 2016-03-24 00:17:58 +01:00
Anthony Scopatz
e1f1ad336c Merge pull request #95 from creekpld/master
Swift
2016-03-07 16:42:17 -05:00
Philipp
e16c2e005a include swift.nanorc 2016-03-07 22:36:16 +01:00
Philipp
1e14b00006 Added files via upload 2016-03-07 22:32:57 +01:00
Anthony Scopatz
8b06671abd Merge pull request #94 from EarthCitizen/patch-1
Fix syntax error in lua.nanorc: "empty (sub)expression"
2016-03-03 12:55:41 -05:00
EarthCitizen
cc32a88dc7 Fix syntax error: "empty (sub)expression"
Nano errors on startup due to empty OR condition in regex
2016-03-03 10:39:44 -07:00
Evan Troy Owen
23af26e80e Added puppet.nanorc to the nanorc file
The install script wasn't picking puppet up.
2016-03-02 17:46:31 -07:00
Anthony Scopatz
51d79223f8 Merge pull request #92 from ThomasR/patch-1
Remove bad escape
2016-03-02 18:55:34 -05:00
Thomas Rosenau
37662b1685 Remove bad escape 2016-03-03 00:50:39 +01:00
Anthony Scopatz
66ce44de9d Merge pull request #91 from ThomasR/master
Rename syntax definitions
2016-03-02 15:07:29 -05:00
ThomasR
bba53c3940 Rename syntax definitions
Duplicate syntax definition names may cause problems.
Since nano comes with predefined all-lowercase syntax definitions,
we use uppercase letters everywhere to reduce the risk of future conflicts
2016-03-02 20:51:19 +01:00
Anthony Scopatz
09236699e7 Merge pull request #89 from ThomasR/patch-2
Improve markdown.nanorc
2016-02-28 12:03:27 -05:00
ThomasR
ed2fa75484 Improve markdown.nanorc
support for tables, strike-through, horizontal rules; better image highlighting
2016-02-28 14:15:46 +01:00
Anthony Scopatz
82e70080bf Merge pull request #86 from tapir/master
Add missing std library keywords for Lua 5.2 and 5.3
2016-02-16 15:54:30 -05:00
Coşku Baş
5c2ea78cff Add missing std library keywords for Lua 5.2 and 5.3 2016-02-16 22:52:32 +02:00
Anthony Scopatz
ea84e69ec7 Merge pull request #85 from tapir/master
Fix Lua multiline comment and string
2016-02-16 14:42:22 -05:00
Coşku Baş
ae26836577 Fix Lua multiline comment and string 2016-02-16 21:41:14 +02:00
Anthony Scopatz
ea8c78f44f Merge pull request #84 from gtbjj/patch-2
perl6 in nanorc includes (2)
2016-02-15 23:33:36 -05:00
Austin
a1afbf6655 updated nanorc
include perl6
2016-02-15 23:30:25 -05:00
Anthony Scopatz
e19534fbc0 Merge pull request #81 from mormy/master
fix for zsh.nanorc
2016-02-08 19:54:36 -05:00
Marin Marusic
d12d655624 Merge from upstream, fixed zsh.nanorc 2016-02-09 01:37:23 +01:00
Marin Marusic
e3e50b6467 Change to zsh.nanorc, fixed faulty regex 2016-02-09 01:35:02 +01:00
Marin Marusic
a303124c98 Author change 2016-02-09 01:01:34 +01:00
Marin Marusic
83f26a7cad Initial commit 2016-02-09 00:52:38 +01:00
Anthony Scopatz
d464d20efd Merge pull request #79 from nl6720/master
add more commands to zsh
2016-02-07 09:53:14 -05:00
nl6720
cbb1386386 add various commands 2016-02-07 13:44:50 +02:00
nl6720
f47c34c539 Add more conditionals to zsh 2016-02-07 13:07:59 +02:00
Anthony Scopatz
05f2fb449c Merge pull request #78 from nl6720/master
Add zprofile, zlogin, zlogout to zsh
2016-02-05 13:15:22 -05:00
nl6720
3fb33bdc1f Add zprofile, zlogin, zlogout to zsh 2016-02-05 18:34:08 +02:00
Anthony Scopatz
a8d77b08ad Merge pull request #77 from idpwf/master
Added 'sealed' keyword
2016-01-13 15:50:37 -05:00
Lephend
2a9b803c13 Added 'sealed' keyword 2016-01-05 17:39:28 +02:00
Anthony Scopatz
da18ebe770 Merge pull request #76 from astronautlevel2/nanorc
Fixes #66
2015-12-16 15:17:12 -05:00
Alex Taber
0e981feffe Fixes #66 2015-12-16 14:57:23 -05:00
Anthony Scopatz
bbebaa66f9 Merge pull request #75 from astronautlevel2/master
Updated nanorc file with haskell
2015-12-15 15:37:50 -05:00
Alex Taber
29e315402d Updated nanorc file with haskell 2015-12-15 15:36:21 -05:00
Anthony Scopatz
d7bbcdfda3 Merge pull request #74 from astronautlevel2/haskell
Added nanorc for popular functional language haskell
2015-12-15 15:18:50 -05:00
Alex Taber
f0db3a7bbb Added nanorc for popular functional language haskell 2015-12-15 15:17:06 -05:00
Anthony Scopatz
411442fd29 Merge pull request #73 from astronautlevel2/master
Updated Readme with correct URL
2015-12-15 09:20:18 -05:00
Alex Taber
15dc8541bf Updated Readme with correct URL 2015-12-15 06:32:12 -05:00
Anthony Scopatz
429ad3db32 Merge pull request #72 from adduc/patch-1
Add namespace/use keywords for PHP
2015-12-15 02:45:10 -05:00
John S Long
178ce558f9 Add namespace/use keywords for PHP 2015-12-15 01:44:09 -06:00
Anthony Scopatz
ba4045fc99 Merge pull request #71 from astronautlevel2/master
Updated nanorc and added OCaml nanorc
2015-12-15 01:18:49 -05:00
Alex Taber
c46ed9cb1c Updated readme with installer instructions 2015-12-14 22:24:39 -05:00
Alex Taber
b627b455ae Added automatic installer 2015-12-14 22:02:50 -05:00
Alex Taber
a345c2bd7b Updated nanorc with ocaml.nanorc 2015-12-14 21:19:58 -05:00
Alex Taber
8842f692a2 Added ocaml nanorc
Adapted from NAS-tweaks
2015-12-14 21:18:32 -05:00
Alex Taber
6ccff4b618 Updated nanorc file with new nanorc's recently added
Added two lines including the new rust nanorc and the new arduino nanorc
2015-12-14 21:07:42 -05:00
Anthony Scopatz
b89b5ecd06 Merge pull request #70 from astronautlevel2/master
Added nanorc for arduino sketch files
2015-12-14 20:56:23 -05:00
Alex Taber
fce98d0782 Added nanorc for arduino sketch files 2015-12-14 20:54:49 -05:00
Anthony Scopatz
f8b768b9dc Merge pull request #69 from astronautlevel/master
Added rust nanorc file
2015-12-14 15:36:36 -05:00
Alex Taber
a737f17fc2 Added rust nanorc file 2015-12-14 15:34:03 -05:00
Anthony Scopatz
336cd1bdb5 Merge pull request #68 from mikafouenski/master
Add the new conky.nanorc from official repository of brndnmtthws/conky
2015-11-14 10:25:25 -05:00
Mickaël Bernardini
d87b3263eb Add the new conky.nanorc from official repository of brndnmtthws/conky 2015-11-14 10:22:22 +01:00
Anthony Scopatz
086c52beb3 Merge pull request #67 from jodizzle/fix/colors
Change red tabs and black parenthesis/braces
2015-10-24 10:17:11 -04:00
Jody Leonard
b1c896c01c Remove black coloring for several rc's
Some of the configurations turn parentheses and or curly braces black,
which become invisible against the default nano black background color.
2015-10-24 07:55:49 -04:00
Jody Leonard
b64de43467 Change tab coloring behavior for several rc's
The commit mariuszs/nanorc@e5cc8be863
introduced a number of rc files that cause tabs to always show as red
(even with trailing spaces). Adjust the behavior according to changes in
https://github.com/nanorc/nanorc/blob/master/mixins/lint.nanorc, which
seems to be an updated source of the original commit. Make tabs appear
green without trailing characters, red with trailing spaces, and
uncolored when followed by any other character.
2015-10-24 06:58:36 -04:00
Anthony Scopatz
cf16158513 Merge pull request #65 from bgulla/master
Added dockerfile syntax highlighting for *.dockerfile
2015-10-21 09:35:36 -04:00
Brandon Gulla
58b164c007 Added dockerfile syntax highlighting for *.dockerfile 2015-10-21 09:27:43 -04:00
Anthony Scopatz
0fd05e5ecc Merge pull request #64 from sanmai-NL/patch-1
Add another popular file name extension 'adoc'
2015-09-26 15:14:59 -04:00
Sander M
06ae63d9f4 Add another popular file name extension 'adoc' 2015-09-26 21:13:07 +02:00
Anthony Scopatz
4bce073b29 Merge pull request #62 from dbkaplun/zshrc
Adds missing zshrc symlink
2015-09-20 15:26:41 -07:00
Anthony Scopatz
c1b34bd1ad Merge pull request #63 from liquidstate/master
improved puppet highlighting from https://github.com/llowder/puppet-nano/
2015-09-20 15:21:15 -07:00
Bryan Ross
8cfddac05d improved highlighting from https://github.com/llowder/puppet-nano/ 2015-09-20 22:42:07 +01:00
Dan Kaplun
270fec7f8d Adds missing zshrc symlink 2015-09-19 22:21:48 -04:00
Anthony Scopatz
50fc83f87a Merge pull request #61 from bgulla/master
Added Dockerfile syntax abilities.
2015-09-18 11:46:56 -07:00
Brandon Gulla
d7915db91b Added Dockerfile syntax abilities. 2015-09-18 14:28:59 -04:00
Anthony Scopatz
be2e3286f3 Merge pull request #60 from natalie-/master
Add support for SaltStack states (*.sls).
2015-08-20 09:59:17 -04:00
Natalie Somersall
fa671c9b09 Add support for SaltStack states (*.sls). 2015-08-20 09:14:32 -04:00
Anthony Scopatz
288b92dfe3 Merge pull request #58 from simon-v/master
Allow short ledger and beancount extensions
2015-07-30 15:23:47 -05:00
Simon Volpert
9e06e18219 Merge branch 'master' of github.com:scopatz/nanorc 2015-07-30 23:22:12 +03:00
Simon Volpert
4948936397 Allow short ledger and beancount extensions 2015-07-30 23:14:19 +03:00
Anthony Scopatz
89faba8fde Merge pull request #57 from amateursuperuser/master
fixed line errors that caused nano to complain
2015-07-23 12:49:08 -05:00
amateursuperuser
0f3f348b1c fixed line errors that caused nano to complain
GNU nano was complaining about syntax errors for parsing perl6.nanorc. nanorc reserved word "color" needs 2 parameters. Works on Arch Linux with nano 2.4.2
2015-07-23 12:39:17 -05:00
Anthony Scopatz
6c57011c02 Merge pull request #55 from simon-v/master
Ledger and Python syntax extensions
2015-07-06 10:13:47 +03:00
Simon Volpert
11fe61dad0 Merge branch 'master' of github.com:scopatz/nanorc 2015-07-05 20:04:58 +03:00
Simon Volpert
157ee8ca27 Add a separate rule for beancount account name syntax 2015-06-29 19:37:34 +03:00
Simon Volpert
603c5e5469 Allow flagging a transaction leg 2015-06-28 20:40:08 +03:00
Anthony Scopatz
92497327f6 Merge pull request #56 from grandtheftjiujitsu/master
Added Perl6 Syntax Highlighting
2015-06-23 19:47:24 +03:00
grandtheftjiujitsu
bf0512d73e added hybrid perl5 / perl6 syntax highlighting from CPAN 2015-06-21 15:09:30 -04:00
Simon Volpert
12e994ba09 Ledger: allow flag to be an exclamation mark 2015-06-21 21:12:50 +03:00
Simon Volpert
65446005a5 True and False are Python built-in objects 2015-06-21 19:05:44 +03:00
Simon Volpert
bd7da6b59e Extend ledger syntax to include beancount 2015-06-17 19:33:00 +03:00
Anthony Scopatz
57f37d5428 Merge pull request #51 from michaellopez/bad-regex-fix
Fixed for bad regex. From justinribeiro/nanorc@449447fffe
2015-04-26 13:38:24 -07:00
Michael Lopez
da811ad87e Fixed for bad regex. From justinribeiro/nanorc@449447fffe 2015-04-21 09:04:44 +02:00
Anthony Scopatz
c8874a7102 Merge pull request #50 from eric-wieser/patch-1
Add htaccess to file pattern
2015-04-14 09:00:13 -05:00
Eric Wieser
d8f0c106a5 Add htaccess to file patter 2015-04-14 10:14:31 +01:00
Anthony Scopatz
7a6608a5f4 Merge pull request #45 from cuplizian/master
Remove lazy operator for OS X compatibility
2014-10-05 10:43:48 -07:00
Ian Mustafa
146c3848b5 Remove lazy operator for OS X compatibility
Should work well as of pull request #14
2014-10-05 07:42:44 +07:00
Anthony Scopatz
44d0c55b36 Merge pull request #44 from stiemannkj1/master
Fixes #43: html.nanorc yellow regex is greedy and matches all quotes until the final quote.
2014-09-30 15:20:40 -07:00
Kyle Stiemann
e5dd5c5f42 Fixes #43: html.nanorc yellow regex is greedy and matches all quotes until the final quote.
Since the non-greedy operator `?` causes an error, I've implemented non-greedy matching using not-quote zero or more times (`[^"]*`) instead.
2014-09-30 18:15:26 -04:00
Anthony Scopatz
02cfdc3a63 Merge pull request #40 from MatthewCox/tcl
Add tcl syntax highlighting from https://code.google.com/p/nanosyntax/ (lightly altered)
2014-08-02 16:53:22 -07:00
Anthony Scopatz
8929a577c2 Merge pull request #39 from MatthewCox/python
Significant Python highlighting improvements (mostly from https://code.google.com/p/nanosyntax/)
2014-08-02 16:52:55 -07:00
Anthony Scopatz
e98ae096b2 Merge pull request #38 from MatthewCox/general
Add header directives for perl and ruby, make the sh header directive more flexible, add header keyword to nanorc highlighting
2014-08-02 16:52:15 -07:00
Anthony Scopatz
b6eecf18f4 Merge pull request #37 from MatthewCox/zsh
significantly improved zsh* syntax highlighting (started from sh.nanorc)
2014-08-02 16:51:35 -07:00
Matthew Cox
6e75adacec Add header directives for perl and ruby, make the sh header directive more flexible, add header keyword to nanorc highlighting 2014-08-02 23:25:00 +01:00
Matthew Cox
44139392ac Significant Python highlighting improvements (mostly from https://code.google.com/p/nanosyntax/) 2014-08-02 23:22:17 +01:00
Matthew Cox
e9c885e82e Add tcl syntax highlighting from https://code.google.com/p/nanosyntax/ (lightly altered) 2014-08-02 23:18:46 +01:00
Matthew Cox
a98449b466 significantly improved zsh* syntax highlighting (started from sh.nanorc) 2014-08-02 23:12:13 +01:00
Anthony Scopatz
5e347dd43c Merge pull request #34 from liquidstate/puppetdevelopment
added puppet and ERB highlighting
2014-08-02 14:37:25 -07:00
Anthony Scopatz
fa0888177d Merge pull request #35 from sinaa/patch-2
Update php.nanorc
2014-08-02 14:37:10 -07:00
Sina
2f105dc7ba Update php.nanorc
Small typo error fix
2014-08-02 22:23:19 +01:00
Bryan Ross
0fe06445a9 added puppet and ERB highlighting 2014-08-02 09:05:51 +01:00
Anthony Scopatz
da5510f8fa Merge pull request #33 from sinaa/patch-1
Update php.nanorc
2014-08-02 00:08:03 -07:00
Sina
7f97ded8d8 Update php.nanorc
A much better grammar for php.

Found and taken from: https://code.google.com/p/nanosyntax/issues/detail?id=4
2014-08-02 05:24:56 +01:00
Anthony Scopatz
a9584ec937 Merge pull request #32 from paulinder/master
Added scala.nanorc
2014-08-01 17:26:51 -07:00
Paul Inder
cf0c2f6d84 added scala.nanorc to the .nanorc template 2014-08-01 19:33:21 -04:00
Paul Inder
8db30f6769 added scala syntax highlighting v1 2014-08-01 19:29:24 -04:00
Anthony Scopatz
e95a42eeac Merge pull request #31 from vvillee/master
Fixed a problem where path with stars was mixed up with a comment within...
2014-07-31 10:14:38 -07:00
Ville Pulkkinen
ad3fff659d Fixed a problem where path with stars was mixed up with a comment within a text delimiter characters 2014-07-31 13:57:13 +03:00
Anthony Scopatz
a376424640 Merge pull request #30 from stevenhoneyman/master
Minor improvements to sh.nanorc
2014-06-21 18:05:55 -05:00
Steven Honeyman
b19f77feef Minor improvements to sh.nanorc
- Removed "makefile" (it has its own highlighting)
- Added header filter to detect files without an extension
- Added .bash_functions as a "known file"
2014-06-22 00:02:33 +01:00
Anthony Scopatz
f11e870aba Merge pull request #29 from kaernyk/patch-1
add alternate cloning method
2014-06-20 14:44:23 -05:00
kaernyk
c75e630b1b add alternate cloning method
Upon first try I recived a permission denied msg when attempting to clone the repository. For ease of use when future users attempt to use this repository, I've added an alternative method as a backup.
2014-06-20 14:23:58 -04:00
Anthony Scopatz
e81bb080db Merge pull request #26 from tortxof/master
Made some changes to css.nanorc
2014-05-12 01:33:38 -05:00
Daniel Jones
56f3b17cbc Changed css file regex to also match scss files. 2014-05-12 00:57:15 -04:00
Daniel Jones
b31ddc5645 Fixed css comment highlighting. Removed extra whitespace. 2014-05-11 18:41:00 -04:00
Anthony Scopatz
3c0e769ae3 Merge pull request #24 from floomby/master
added highlighting for undo option in nanorc files
2014-03-06 18:13:46 -06:00
floomby
9eb0975839 added highlighting for undo option in nanorc files 2014-03-06 16:41:56 -07:00
Anthony Scopatz
1c2bba7b93 whoops needed to do add 2014-03-04 22:54:17 -06:00
Anthony Scopatz
c98a379e0c license 2014-03-04 21:52:19 -06:00
Anthony Scopatz
b1b372c916 more asciidoc fixes 2014-02-23 11:50:40 -06:00
Anthony Scopatz
9611872cd2 fist stab at asciidoc 2014-02-22 19:26:13 -06:00
Anthony Scopatz
ecfdac7396 Merge pull request #22 from Anomitee/patch-1
Add an option to highlight trailing whitespace
2014-01-04 00:17:50 -08:00
Anomitee
722ed013a6 Made whitespace highlighting optional 2014-01-04 17:42:19 +11:00
Anomitee
d566590602 Added highlighting of trailing whitespace 2014-01-04 17:32:57 +11:00
Anthony Scopatz
fb38a1ff97 Merge pull request #21 from beardtree/master
Non-syntax changes
2013-12-20 21:15:28 -08:00
Daniel Kaplun
81fbb9b393 Renames import.nanorc to nanorc 2013-12-20 19:27:29 -06:00
Daniel Kaplun
9a1aa67b20 Adds instructions and formatting fixes to Readme.rst 2013-12-20 19:27:08 -06:00
Daniel Kaplun
40bffae91d Includes instructions for import.nanorc in Readme.rst 2013-12-20 19:17:08 -06:00
Daniel Kaplun
3aa0f4c199 Removes nonexistent main.nanorc and circular import.nanorc import 2013-12-20 19:17:08 -06:00
Daniel Kaplun
86e835de64 Sort and remove duplicates from import.nanorc 2013-12-20 19:17:08 -06:00
Anthony Scopatz
7babd9aae9 Merge pull request #19 from Ghost-NULL/patch-1
Fix a very small typo :)
2013-10-20 15:48:25 -07:00
Ghost-NULL
e5284fd332 Fix a very small typo :) 2013-10-21 00:03:28 +02:00
Anthony Scopatz
4bc46c604d Merge pull request #14 from staticfloat/master
Compatibility fixes for OSX.
2013-07-23 06:28:49 -07:00
Elliot Saba
e2769e7661 Compatibility fixes for OSX. Closes scoptaz/nanorc#13
* cython.nanorc: Remove non-greedy repetition operator, as it is not supported on OSX
 * fish.nanorc: Remove incompatible "magic" hint
 * pkgbuild.nanorc: Remove empty sub-expressions
2013-07-22 21:24:55 -07:00
Anthony Scopatz
424a4587a6 fixed md bug 2013-07-15 16:39:41 -05:00
Anthony Scopatz
4fddd06a1b Merge pull request #11 from mariuszs/master
Improvment for GIT
2013-06-02 09:19:24 -07:00
Mariusz Smykuła
590e5df50f Fix previous commit 2013-06-02 13:10:40 +02:00
Mariusz Smykuła
79e744c456 Improved git
* added branch info
* added coloring for Changes to... sections
* better changes id in rebase
2013-06-02 13:09:23 +02:00
Mariusz Smykuła
e5cc8be863 More syntax files from craigbarnes/nanorc 2013-06-02 12:50:31 +02:00
Mariusz Smykuła
9975b237ac Syntax for markdown format 2013-06-01 22:59:28 +02:00
Mariusz Smykuła
297a5fcbdc Improvment for git
* highlight for untracked files in commit
* rebase fixes (noop, commit ids, colors)
* .gitconfig syntax
2013-06-01 22:51:09 +02:00
Anthony Scopatz
d0cdc5d159 added alias to gitcommit for backwards compatibility in nanorc files 2013-05-31 15:45:45 -05:00
Anthony Scopatz
dfe06c324c Merge pull request #10 from mariuszs/master
New highlight for nano, fixed git commit highlight
2013-05-31 13:43:57 -07:00
Mariusz Smykuła
c2fbddca7a Not working syntax 2013-05-31 22:41:09 +02:00
Mariusz Smykuła
b0d8af2aec Working GIT commit message syntax highligter 2013-05-31 22:38:52 +02:00
Mariusz Smykuła
fd2e2845de Nano Syntax Highlighting for Fish Shelll 2013-05-31 22:33:54 +02:00
Anthony Scopatz
9434b5d98e added gitcommit rc, thanks @mikofski 2013-03-28 10:03:25 -05:00
Anthony Scopatz
f8e1998e27 applied patch 2013-03-27 10:58:49 -05:00
Anthony Scopatz
2d87638c7a updated nano 2013-02-01 10:32:15 -06:00
Anthony Scopatz
dba968a737 fixed decorator highlighting. 2012-12-20 22:44:04 -06:00
Anthony Scopatz
fddf6cf791 Merge branch 'master' of github.com:scopatz/nanorc 2012-12-10 20:23:13 -06:00
Anthony Scopatz
84808a0a46 Some minor changes to c and xml 2012-12-10 20:23:03 -06:00
Anthony Scopatz
e88a5ba295 Merge pull request #9 from flexiondotorg/master
Arch Linux PKGBUILD nanorc
2012-11-26 09:16:16 -08:00
Martin Wimpress
ca2ce956d2 Added Arch Linux PKGBUILD nanorc. 2012-11-26 11:17:20 +00:00
Anthony Scopatz
495c715e13 Added unsigned to cython. 2012-11-17 11:31:54 -08:00
Anthony Scopatz
7489e90109 edits to cmake to make more readable. 2012-11-08 13:22:38 -06:00
Anthony Scopatz
8af4d9a205 Added cmake file. 2012-11-08 13:09:19 -06:00
Anthony Scopatz
d59e4a65ef Added some compiletime evaluation keywords to cython. 2012-10-15 22:35:51 -05:00
Anthony Scopatz
70d02691cd Merge pull request #8 from intel352/ruby-syntax-files
Added extra ruby syntax files
2012-10-12 08:27:59 -07:00
Jon Langevin
24c990d008 Added extra ruby syntax files 2012-10-12 11:26:13 -04:00
Anthony Scopatz
8b26ad6f47 Merge pull request #6 from okor/master
More ruby file types
2012-09-26 18:31:13 -07:00
Jason Ormand
ce86b23d6b added Gemfile, Rakefile and config.ru to ruby syntax file 2012-09-26 10:56:21 -04:00
Anthony Scopatz
28c1a99502 Added default bash files to sh.nanorc 2012-09-25 17:20:55 -05:00
Anthony Scopatz
c227d4d2bd Merge pull request #5 from CirKu17/master
Added zshrc.nanorc
2012-09-25 11:34:21 -07:00
CirKu17
804c1750ba zshrc added 2012-09-25 14:18:36 -04:00
Anthony Scopatz
e001bfb912 Merge pull request #4 from bowsersenior/os_x_errors
Comment out lines that cause errors on OS X
2012-09-12 20:54:46 -07:00
Mani Tadayon
61e9d99d0b Comment out lines that cause errors on OS X 2012-09-12 20:44:09 -07:00
Anthony Scopatz
9dd7714af8 Updated colors for decorators. 2012-08-03 10:24:53 -06:00
Anthony Scopatz
023a2c7f28 Merge branch 'master' of github.com:scopatz/nanorc 2012-06-13 13:12:13 -05:00
Anthony Scopatz
a3ff41fbd2 Added JavaScript rc 2012-06-13 13:12:05 -05:00
Anthony Scopatz
a7873fbd1f Merge pull request #2 from CirKu17/master
Added haml.nanorc
2012-03-12 11:34:50 -07:00
CirKu17
610a0b9acd Added haml.nanorc 2012-03-12 15:36:30 +01:00
Anthony Scopatz
3874a5db43 Went back to previous version of multi-line python highlighting. 2012-03-04 16:32:43 -06:00
Anthony Scopatz
ca6f04ac2d Python comments have precedence. 2012-02-20 13:51:25 -06:00
Anthony Scopatz
6835567ed2 Silly python edits. 2012-02-20 01:08:36 -06:00
Anthony Scopatz
c90d38e928 Fixed multiline string highlighting. 2012-02-10 16:37:09 -06:00
Anthony Scopatz
b65096fd98 Add preprocessor stuff to fortran. 2012-02-06 16:36:05 -06:00
Anthony Scopatz
a60a5a653c Improved fortran 2012-02-06 16:31:17 -06:00
Anthony Scopatz
3a76ad37a7 Added highlighting for preprocessed fortran. 2012-02-02 13:18:02 -06:00
Anthony Scopatz
62f7045000 Added yield colors to python and cython. 2012-02-01 02:14:24 -06:00
Anthony Scopatz
ce6c53c280 Forgot some regex bs 2011-06-26 17:34:26 -05:00
Anthony Scopatz
006b11ebbb Merge branch 'master' of github.com:scopatz/nanorc 2011-06-26 17:18:52 -05:00
Anthony Scopatz
6f8126a30c better tex 2011-06-26 17:18:43 -05:00
Anthony Scopatz
d0dc5b0e4e Merge pull request #1 from CirKu17/patch-1
Accepted.
2011-06-15 08:29:10 -07:00
CirKu17
572a7ce25a Edited html.nanorc via GitHub 2011-06-15 03:35:47 -07:00
Anthony Scopatz
211cd58347 Added *.def files to c. 2011-04-10 22:35:41 -05:00
Anthony Scopatz
5d8b59ce10 Added void keyword to cython 2011-02-11 11:36:00 -06:00
Anthony Scopatz
dd39f5abb5 Added struct keywpord to cython 2011-02-10 14:39:30 -06:00
Anthony Scopatz
4c6ba5bd09 Added include to cython 2011-02-09 09:47:05 -06:00
Anthony Scopatz
6547a7341b Changed Cython 2011-02-07 14:51:21 -06:00
Anthony Scopatz
5ce5119e17 pyd -> pxd name change. 2011-02-03 01:19:27 -06:00
Anthony Scopatz
b407af3871 Some more cython improvements. 2011-02-03 01:18:24 -06:00
Anthony Scopatz
2944360474 Some more cython improvements. 2011-02-03 00:50:07 -06:00
Anthony Scopatz
436525c343 Added initial Cython highlighting. 2011-02-02 20:19:36 -06:00
Anthony Scopatz
15674e52cb Added lua.nanorc 2011-02-02 13:58:00 -06:00
Anthony Scopatz
ab52033828 Added .for extension to fortran. 2010-08-31 14:01:36 -05:00
Anthony Scopatz
6a8c87d9ad Improved fortran.nanorc. 2010-08-30 10:49:03 -05:00
Anthony Scopatz
8e4bd01860 Added 'Makefile' to sh.nanorc. 2010-08-30 10:10:34 -05:00
Anthony Scopatz
803e1f2b19 Fixed typo in fortran.nanorc 2010-07-29 10:41:45 -05:00
131 changed files with 4476 additions and 149 deletions

677
.authors.yml Normal file
View File

@ -0,0 +1,677 @@
- name: Dan Kaplun
email: dbkaplun@gmail.com
num_commits: 2
first_commit: 2015-09-19 22:21:48
github: dbkaplun
- name: Alex Taber
email: aft.pokemon@gmail.com
num_commits: 11
first_commit: 2015-12-14 15:34:03
github: astronautlevel2
- name: Dan Pasanen
email: invisiblek@cyanogenmod.org
num_commits: 1
first_commit: 2016-10-11 19:08:59
github: invisiblek
- name: Birger Jarl
email: codefuhrer@gmail.com
num_commits: 3
first_commit: 2018-11-03 17:42:42
github: ingria
- name: Marcus Willock
email: crazcalm@gmail.com
aliases:
- Crazcalm
num_commits: 1
first_commit: 2019-10-07 14:36:31
github: crazcalm
- name: Dario Ostuni
email: another.code.996@gmail.com
num_commits: 1
first_commit: 2016-03-23 19:17:58
github: dariost
- name: Tim Austin
email: tim@neenjaw.com
num_commits: 1
first_commit: 2019-07-22 00:40:02
github: neenjaw
- name: Barbz
email: BarbzYHOOL@users.noreply.github.com
num_commits: 1
first_commit: 2018-07-03 15:32:35
github: BarbzYHOOL
- name: Daniel Harbor
email: dharbor@paypal.com
num_commits: 1
first_commit: 2019-06-29 00:43:05
github: danielharbor
- name: Kyle Stiemann
email: stiemannkj1@gmail.com
num_commits: 1
first_commit: 2014-09-30 17:40:22
github: stiemannkj1
- name: Simon Volpert
email: simon@simonvolpert.com
num_commits: 20
first_commit: 2015-06-17 12:33:00
- name: Víctor Pont
email: victor@pont.cat
num_commits: 1
first_commit: 2019-10-02 05:08:36
github: vpont
- name: Alexey Melezhik
email: melezhik@gmail.com
num_commits: 1
first_commit: 2019-03-07 12:44:55
github: melezhik
- name: Martin Wimpress
email: martin.wimpress@flightdataservices.com
num_commits: 1
first_commit: 2012-11-26 06:17:20
github: flexiondotorg
- name: Mariusz Smykuła
email: mariuszs@gmail.com
num_commits: 8
first_commit: 2013-05-31 16:32:45
github: mariuszs
- name: Xavier Gouchet
email: xavier.gouchet@gmail.com
num_commits: 1
first_commit: 2016-12-10 04:50:00
github: xgouchet
- name: Marin Marusic
email: mormy@wanderer.local
alternate_emails:
- marin@netpunk.net
num_commits: 1
first_commit: 2016-02-08 18:52:38
github: mormy
- name: divinity76
email: divinity76@gmail.com
num_commits: 3
first_commit: 2016-10-13 18:23:41
github: divinity76
- name: Elliot Saba
email: staticfloat@gmail.com
num_commits: 1
first_commit: 2013-07-23 00:24:55
github: staticfloat
- name: Jason Ormand
email: jason.ormand1@gmail.com
num_commits: 1
first_commit: 2012-09-26 10:56:21
github: okor
- name: Ian Mustafa
email: cuplizian@yahoo.com
num_commits: 1
first_commit: 2014-10-04 20:42:44
github: cuplizian
- name: Aryan Ebrahimpour
email: aryanebrahimpour@gmail.com
num_commits: 2
first_commit: 2019-06-21 05:26:09
github: 0xaryan
- name: Michał Kiełbowicz
email: jupblb@users.noreply.github.com
num_commits: 1
first_commit: 2019-04-15 11:50:31
github: jupblb
- name: Paduct
email: paduct@list.ru
aliases:
- Bro
num_commits: 2
first_commit: 2017-01-12 04:25:39
github: Paduct
- name: Steven Honeyman
email: stevenhoneyman@users.noreply.github.com
num_commits: 1
first_commit: 2014-06-21 19:02:33
github: stevenhoneyman
- name: Filip Szymański
email: fszymanski@users.noreply.github.com
num_commits: 1
first_commit: 2018-09-10 08:25:37
github: fszymanski
- name: kaernyk
email: kaernyk@users.noreply.github.com
num_commits: 1
first_commit: 2014-06-20 14:23:58
github: kaernyk
- name: Michael Lopez
email: michael@weahead.se
num_commits: 1
first_commit: 2015-04-21 03:00:55
github: michaellopez
- name: nl6720
email: nl6720@gmail.com
num_commits: 4
first_commit: 2016-02-05 11:34:08
github: nl6720
- name: amateursuperuser
email: shadekophi@outlook.com
num_commits: 1
first_commit: 2015-07-23 13:39:17
github: amateursuperuser
- name: Ville Pulkkinen
email: ville.p.pulkkinen@gmail.com
num_commits: 1
first_commit: 2014-07-31 06:57:13
github: vvillee
- name: Brandon LeBlanc
email: brandon@leblanc.codes
num_commits: 1
first_commit: 2018-08-27 10:57:14
github: demosdemon
- name: Jody Leonard
email: me@jodyleonard.com
num_commits: 2
first_commit: 2015-10-24 05:52:47
github: jodizzle
- name: matnovak
email: matnovak@foi.hr
num_commits: 1
first_commit: 2019-09-25 04:54:00
- name: Mani Tadayon
email: bowsersenior@gmail.com
num_commits: 1
first_commit: 2012-09-12 23:44:09
github: bowsersenior
- name: TSUYUSATO Kitsune
email: make.just.on@gmail.com
num_commits: 1
first_commit: 2017-06-30 03:30:16
github: MakeNowJust
- name: Navid Alipour
email: navid9675@gmail.com
num_commits: 1
first_commit: 2019-05-10 18:40:23
github: navid9675
- name: Austin
email: gtbjj@users.noreply.github.com
num_commits: 1
first_commit: 2016-02-15 23:30:25
github: gtbjj
- name: CirKu17
email: cirku17@gmail.com
alternate_emails:
- CirKu17@gmail.com
num_commits: 3
first_commit: 2011-06-15 06:35:47
github: CirKu17
- name: Geoffrey McClinsey
email: gmcclins@hashbang.sh
num_commits: 3
first_commit: 2017-12-28 00:24:09
github: gmcclins
- name: Daniel Jones
email: tortxof@gmail.com
num_commits: 2
first_commit: 2014-05-11 18:41:00
github: tortxof
- name: Luis Lobo Borobia
email: luislobo@gmail.com
num_commits: 1
first_commit: 2017-01-23 12:00:40
github: luislobo
- name: Lephend
email: MLephend@sms1.local
num_commits: 1
first_commit: 2016-01-05 10:39:28
github: idpwf
- name: Brandon Gulla
email: blgulla@rd6um-34106l.infosec.tycho.ncsc.mil
alternate_emails:
- brandon@brandongulla.com
num_commits: 2
first_commit: 2015-09-18 14:28:59
github: bgulla
- name: Thomas Rosenau
email: thomasr@fantasymail.de
aliases:
- ThomasR
num_commits: 4
first_commit: 2016-02-28 08:15:46
github: ThomasR
- name: Sandro Jäckel
email: sandro.jaeckel@gmail.com
github: SuperSandro2000
aliases:
- Sandro
num_commits: 3
first_commit: 2019-03-15 03:31:46
- name: maritaria
email: bramkamies@gmail.com
num_commits: 1
first_commit: 2016-04-30 13:44:51
github: maritaria
- name: Alessandro Luppi
email: luppi.alle@gmail.com
num_commits: 1
first_commit: 2016-09-27 13:21:15
github: hawk93
- name: Harsh Shandilya
email: msfjarvis@gmail.com
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
first_commit: 2019-04-07 11:05:34
github: DesertPunk
- name: floomby
email: caboodlennm@gmail.com
num_commits: 1
first_commit: 2014-03-06 18:41:01
github: floomby
- name: esler
email: esler@users.noreply.github.com
num_commits: 1
first_commit: 2017-05-25 07:35:02
github: esler
- name: Karl
email: karlding@users.noreply.github.com
num_commits: 1
first_commit: 2017-02-04 05:22:03
github: karlding
- name: Eric Wieser
email: wieser.eric@gmail.com
num_commits: 1
first_commit: 2015-04-14 05:14:31
- name: Evan Troy Owen
email: 2evanowen@gmail.com
num_commits: 1
first_commit: 2016-03-02 19:46:31
github: evanowen
- name: Mickaël Bernardini
email: contact@mickael-bernardini.fr
num_commits: 1
first_commit: 2015-11-14 04:22:22
github: mikafouenski
- name: sledgeh
email: sledgeh@users.noreply.github.com
num_commits: 1
first_commit: 2017-04-23 16:16:19
github: sledgeh
- name: Matthew Cox
email: matthewcpcox@gmail.com
num_commits: 4
first_commit: 2014-08-02 18:12:13
github: MatthewCox
- name: Shmueli Englard
email: shmueli.yosef@englard.net
num_commits: 2
first_commit: 2017-03-29 12:52:08
github: SamuelEnglard
- name: Ondrej Esler
email: esler.ondrej@gmail.com
num_commits: 2
first_commit: 2018-04-03 16:49:51
github: esler
- name: Per Lundberg
email: per.lundberg@ecraft.com
num_commits: 1
first_commit: 2018-04-23 08:28:19
github: perlun
- name: Brian Recchia
email: brian@recchia.name
num_commits: 1
first_commit: 2017-01-03 17:07:03
- name: Daniel Kaplun
email: dan@beardtree.com
num_commits: 5
first_commit: 2013-12-20 00:48:22
github: beardtree
- name: Ralf Brandenstein
email: nooitaf@users.noreply.github.com
num_commits: 1
first_commit: 2019-03-17 02:55:13
github: nooitaf
- name: Tiago Programmer
email: TJProgrammer@users.noreply.github.com
num_commits: 1
first_commit: 2019-09-12 19:35:14
github: TJProgrammer
- name: Anthony Scopatz
email: scopatz@gmail.com
num_commits: 52
first_commit: 2010-07-28 18:15:43
github: astronautlevel
- name: PhilipRoman
email: dev.philipjohn@gmail.com
num_commits: 1
first_commit: 2019-06-26 16:03:20
github: PhilipRoman
- name: pik
email: alexander.maznev@gmail.com
num_commits: 1
first_commit: 2017-02-21 07:25:43
github: pik
- name: Michael Straube
email: m.s.online@gmx.de
alternate_emails:
- straubem@gmx.de
num_commits: 7
first_commit: 2016-06-10 15:24:25
github: arisinfenix
- name: Sander M
email: S.N.Maijers@gmail.com
num_commits: 1
first_commit: 2015-09-26 15:13:07
- name: jboero
email: boeroboy@gmail.com
num_commits: 2
first_commit: 2018-10-23 04:49:30
github: jboero
- name: mcnesium
email: mcnesium@users.noreply.github.com
num_commits: 1
first_commit: 2018-06-18 07:40:34
github: mcnesium
- name: Philipp Leo Dylong
email: creekpld@gmail.com
num_commits: 3
first_commit: 2016-04-29 15:21:21
github: creekpld
- name: EarthCitizen
email: EarthCitizen@users.noreply.github.com
num_commits: 1
first_commit: 2016-03-03 12:39:44
github: EarthCitizen
- name: CoffeeTableEnnui
email: thiabaud.engelbrecht@gmail.com
num_commits: 7
first_commit: 2016-08-29 00:02:37
github: CoffeeTableEnnui
- name: lopho
email: lopho@users.noreply.github.com
num_commits: 2
first_commit: 2019-02-27 10:08:50
github: lopho
- name: Elof
email: elofu17@users.noreply.github.com
num_commits: 23
first_commit: 2016-12-06 13:11:24
github: elofu17
- name: Jon Langevin
email: intel352@gmail.com
num_commits: 1
first_commit: 2012-10-12 11:26:13
github: intel352
- name: Eric Ma
email: ericmajinglong@gmail.com
github: ericmjl
num_commits: 1
first_commit: 2018-05-27 13:29:36
- name: tomcharter365
email: 31257796+tomcharter365@users.noreply.github.com
num_commits: 1
first_commit: 2018-10-11 17:20:56
github: tomcharter365
- name: Skruppy
email: skruppy@onmars.eu
num_commits: 1
first_commit: 2019-07-09 13:16:52
github: Skrupellos
- name: Austin Jackson
email: themacphage@gmail.com
num_commits: 1
first_commit: 2019-04-24 21:07:13
github: au5ton
- name: Paul Inder
email: paulinder@gmail.com
num_commits: 2
first_commit: 2014-08-01 19:29:24
github: paulinder
- name: Coşku Baş
email: cosku.bas@gmail.com
num_commits: 2
first_commit: 2016-02-16 14:41:14
github: tapir
- name: Markus Hoffmann
email: kollo@users.sourceforge.net
num_commits: 1
first_commit: 2019-06-05 06:45:35
github: kollokollo
- name: Anomitee
email: Anomitee@gmail.com
num_commits: 2
first_commit: 2014-01-04 01:32:57
github: Anomitee
- name: Philipp
email: creekpld@users.noreply.github.com
num_commits: 5
first_commit: 2016-03-07 16:32:57
github: creekpld
- name: Natalie Somersall
email: natalie.somersall@gmail.com
num_commits: 1
first_commit: 2015-08-20 09:14:32
- name: Damian Mee
email: mee.damian@gmail.com
num_commits: 1
first_commit: 2016-07-17 06:49:28
github: meeDamian
- name: Aaron Bishop
email: erroneous@gmail.com
num_commits: 1
first_commit: 2016-06-03 10:46:57
github: Erroneous1
- name: Adrien Pyke
email: adpyke@gmail.com
num_commits: 1
first_commit: 2018-06-22 14:10:04
github: kufii
- name: Cody
email: ChaosZero112@users.noreply.github.com
num_commits: 1
first_commit: 2018-07-14 19:16:55
github: ChaosZero112
- name: Jan Trejbal
email: jan.trejbal@gmail.com
num_commits: 1
first_commit: 2016-07-07 07:27:40
github: Trejjam
- name: Tiago Almeida
email: tjamadeira@gmail.com
num_commits: 5
first_commit: 2019-09-12 19:16:01
github: TJProgrammer
- name: Bryan Ross
email: bryan@liquidstate.net
num_commits: 2
first_commit: 2014-08-02 04:05:51
github: liquidstate
- name: Huub de Beer
email: Huub@heerdebeer.org
num_commits: 3
first_commit: 2017-07-16 07:46:55
github: htdebeer
- name: Mikael O. Bonnier
email: mikael.bonnier@gmail.com
github: mobluse
num_commits: 3
first_commit: 2018-05-12 06:55:08
- name: TUSF
email: ragef33@gmail.com
num_commits: 1
first_commit: 2017-12-21 00:49:51
github: TUSF
- name: Jeppe Fihl-Pearson
email: jeppe@tenzer.dk
num_commits: 3
first_commit: 2019-07-27 03:53:05
github: Tenzer
- name: Nicholas Christopoulos
email: nereusx@users.noreply.github.com
num_commits: 2
first_commit: 2017-07-15 22:26:56
github: nereusx
- name: grandtheftjiujitsu
email: austin.haedicke@gmail.com
num_commits: 1
first_commit: 2015-06-21 15:09:30
github: grandtheftjiujitsu
- name: John S Long
email: john@128.io
github: adduc
num_commits: 1
first_commit: 2015-12-15 02:44:09
- name: Ondřej Ešler
email: ondrej.esler@intraworlds.com
num_commits: 3
first_commit: 2018-12-13 04:48:50
github: esler
- name: Ghost-NULL
email: maatpeter@hotmail.com
num_commits: 1
first_commit: 2013-10-20 18:03:28
- name: PN Wu (小平)
email: PingNote@users.noreply.github.com
num_commits: 1
first_commit: 2018-08-15 03:22:08
github: PingNote
- name: yochem
email: yochem@users.noreply.github.com
num_commits: 5
first_commit: 2018-05-03 07:37:35
github: yochem
- name: Andrea Dejan Grande
email: dejan-grande@mail.com
num_commits: 12
first_commit: 2019-04-27 17:19:34
github: AndreaDejanGrande
- name: Sina
email: sina6002@gmail.com
num_commits: 2
first_commit: 2014-08-02 00:24:56
github: sinaa
- name: Ross Smith II
email: ross@smithii.com
num_commits: 2
first_commit: 2019-06-06 02:27:13
github: rasa
- name: Zach DeCook
email: zdecook@ccel.org
alternate_emails:
- zachdecook@librem.one
num_commits: 10
first_commit: 2019-12-18 09:34:49
github: earboxer
- name: Gareth Jones
email: Jones258@Gmail.com
num_commits: 11
first_commit: 2019-11-01 23:57:35
- name: Dante Falzone
email: 48266179+DanteFalzone0@users.noreply.github.com
num_commits: 8
first_commit: 2019-12-25 22:55:19
github: DanteFalzone0
- name: CryptoDragonLady
email: celeste.weingartner@gmail.com
num_commits: 1
first_commit: 2019-12-30 04:00:29
github: CryptoDragonLady
- name: Hunter Peavey
email: vrywjvgviuotxeioqipx@disroot.org
num_commits: 2
first_commit: 2019-10-18 19:38:17
github: krathalan
- name: Ritiek Malhotra
email: Ritiek@users.noreply.github.com
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

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
search_history
# Rever
rever/

144
.mailmap Normal file
View File

@ -0,0 +1,144 @@
# This file was autogenerated by rever: https://regro.github.io/rever-docs/
# This prevent git from showing duplicates with various logging commands.
# See the git documentation for more details. The syntax is:
#
# good-name <good-email> bad-name <bad-email>
#
# You can skip bad-name if it is the same as good-name and is unique in the repo.
#
# This file is up-to-date if the command git log --format="%aN <%aE>" | sort -u
# gives no duplicates.
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>
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>
Daniel Kaplun <dan@beardtree.com>
Philipp <creekpld@users.noreply.github.com>
Tiago Almeida <tjamadeira@gmail.com>
yochem <yochem@users.noreply.github.com>
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>
Geoffrey McClinsey <gmcclins@hashbang.sh>
Sandro Jäckel <sandro.jaeckel@gmail.com> Sandro <sandro.jaeckel@gmail.com>
Philipp Leo Dylong <creekpld@gmail.com>
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>
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>
Jody Leonard <me@jodyleonard.com>
Daniel Jones <tortxof@gmail.com>
Brandon Gulla <blgulla@rd6um-34106l.infosec.tycho.ncsc.mil> Brandon Gulla <brandon@brandongulla.com>
DesertPunk <38014530+DesertPunk@users.noreply.github.com>
Shmueli Englard <shmueli.yosef@englard.net>
Ondrej Esler <esler.ondrej@gmail.com>
jboero <boeroboy@gmail.com>
lopho <lopho@users.noreply.github.com>
Paul Inder <paulinder@gmail.com>
Coşku Baş <cosku.bas@gmail.com>
Anomitee <Anomitee@gmail.com>
Bryan Ross <bryan@liquidstate.net>
Nicholas Christopoulos <nereusx@users.noreply.github.com>
Sina <sina6002@gmail.com>
Ross Smith II <ross@smithii.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>
Tim Austin <tim@neenjaw.com>
Barbz <BarbzYHOOL@users.noreply.github.com>
Daniel Harbor <dharbor@paypal.com>
Kyle Stiemann <stiemannkj1@gmail.com>
Víctor Pont <victor@pont.cat>
Alexey Melezhik <melezhik@gmail.com>
Martin Wimpress <martin.wimpress@flightdataservices.com>
Xavier Gouchet <xavier.gouchet@gmail.com>
Marin Marusic <mormy@wanderer.local> Marin Marusic <marin@netpunk.net>
Elliot Saba <staticfloat@gmail.com>
Jason Ormand <jason.ormand1@gmail.com>
Ian Mustafa <cuplizian@yahoo.com>
Michał Kiełbowicz <jupblb@users.noreply.github.com>
Steven Honeyman <stevenhoneyman@users.noreply.github.com>
Filip Szymański <fszymanski@users.noreply.github.com>
kaernyk <kaernyk@users.noreply.github.com>
Michael Lopez <michael@weahead.se>
amateursuperuser <shadekophi@outlook.com>
Ville Pulkkinen <ville.p.pulkkinen@gmail.com>
Brandon LeBlanc <brandon@leblanc.codes>
matnovak <matnovak@foi.hr>
Mani Tadayon <bowsersenior@gmail.com>
TSUYUSATO Kitsune <make.just.on@gmail.com>
Navid Alipour <navid9675@gmail.com>
Austin <gtbjj@users.noreply.github.com>
Luis Lobo Borobia <luislobo@gmail.com>
Lephend <MLephend@sms1.local>
maritaria <bramkamies@gmail.com>
Alessandro Luppi <luppi.alle@gmail.com>
floomby <caboodlennm@gmail.com>
esler <esler@users.noreply.github.com>
Karl <karlding@users.noreply.github.com>
Eric Wieser <wieser.eric@gmail.com>
Evan Troy Owen <2evanowen@gmail.com>
Mickaël Bernardini <contact@mickael-bernardini.fr>
sledgeh <sledgeh@users.noreply.github.com>
Per Lundberg <per.lundberg@ecraft.com>
Brian Recchia <brian@recchia.name>
Ralf Brandenstein <nooitaf@users.noreply.github.com>
Tiago Programmer <TJProgrammer@users.noreply.github.com>
PhilipRoman <dev.philipjohn@gmail.com>
pik <alexander.maznev@gmail.com>
Sander M <S.N.Maijers@gmail.com>
mcnesium <mcnesium@users.noreply.github.com>
EarthCitizen <EarthCitizen@users.noreply.github.com>
Jon Langevin <intel352@gmail.com>
Eric Ma <ericmajinglong@gmail.com>
tomcharter365 <31257796+tomcharter365@users.noreply.github.com>
Skruppy <skruppy@onmars.eu>
Austin Jackson <themacphage@gmail.com>
Markus Hoffmann <kollo@users.sourceforge.net>
Natalie Somersall <natalie.somersall@gmail.com>
Damian Mee <mee.damian@gmail.com>
Aaron Bishop <erroneous@gmail.com>
Adrien Pyke <adpyke@gmail.com>
Cody <ChaosZero112@users.noreply.github.com>
Jan Trejbal <jan.trejbal@gmail.com>
TUSF <ragef33@gmail.com>
grandtheftjiujitsu <austin.haedicke@gmail.com>
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>

12
.travis.yml Normal file
View File

@ -0,0 +1,12 @@
sudo: required
dist: trusty
before_install:
- echo 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list
- sudo apt-get -qq update
- sudo apt-get install -y shellcheck
git:
depth: 3
script: ./shellcheck.sh

136
AUTHORS.rst Normal file
View File

@ -0,0 +1,136 @@
All of the people who have made at least one contribution to nanorc.
Authors are sorted by number of commits.
* Anthony Scopatz
* Elof
* Simon Volpert
* Harsh Shandilya
* Andrea Dejan Grande
* Alex Taber
* Gareth Jones
* Zach DeCook
* Mariusz Smykuła
* Dante Falzone
* Michael Straube
* CoffeeTableEnnui
* Daniel Kaplun
* Philipp
* Tiago Almeida
* yochem
* nl6720
* Thomas Rosenau
* Matthew Cox
* Ritiek Malhotra
* hdquemada
* Birger Jarl
* divinity76
* CirKu17
* Geoffrey McClinsey
* Sandro Jäckel
* Philipp Leo Dylong
* Huub de Beer
* Mikael O. Bonnier
* Jeppe Fihl-Pearson
* Ondřej Ešler
* davidhcefx
* yzzyx
* Dan Kaplun
* Aryan Ebrahimpour
* Paduct
* Jody Leonard
* Daniel Jones
* Brandon Gulla
* DesertPunk
* Shmueli Englard
* Ondrej Esler
* jboero
* lopho
* Paul Inder
* Coşku Baş
* Anomitee
* Bryan Ross
* Nicholas Christopoulos
* Sina
* Ross Smith II
* Hunter Peavey
* Oïleurre
* Yvan Satyawan
* Paulo S. Costa
* Mlendea, Horațiu
* Ryan Westlund
* Dan Pasanen
* Marcus Willock
* Dario Ostuni
* Tim Austin
* Barbz
* Daniel Harbor
* Kyle Stiemann
* Víctor Pont
* Alexey Melezhik
* Martin Wimpress
* Xavier Gouchet
* Marin Marusic
* Elliot Saba
* Jason Ormand
* Ian Mustafa
* Michał Kiełbowicz
* Steven Honeyman
* Filip Szymański
* kaernyk
* Michael Lopez
* amateursuperuser
* Ville Pulkkinen
* Brandon LeBlanc
* matnovak
* Mani Tadayon
* TSUYUSATO Kitsune
* Navid Alipour
* Austin
* Luis Lobo Borobia
* Lephend
* maritaria
* Alessandro Luppi
* floomby
* esler
* Karl
* Eric Wieser
* Evan Troy Owen
* Mickaël Bernardini
* sledgeh
* Per Lundberg
* Brian Recchia
* Ralf Brandenstein
* Tiago Programmer
* PhilipRoman
* pik
* Sander M
* mcnesium
* EarthCitizen
* Jon Langevin
* Eric Ma
* tomcharter365
* Skruppy
* Austin Jackson
* Markus Hoffmann
* Natalie Somersall
* Damian Mee
* Aaron Bishop
* Adrien Pyke
* Cody
* Jan Trejbal
* TUSF
* grandtheftjiujitsu
* John S Long
* Ghost-NULL
* PN Wu (小平)
* CryptoDragonLady
* Joerg Stoever
* emidiostani
* Justin P
* czechuuu
* msuska
* Exonorid
* Aiden Gall
* Rashil Gandhi
* Serhiy Zahoriya
* Bart Hanssens

26
Dockerfile.nanorc Normal file
View File

@ -0,0 +1,26 @@
## Syntax highlighting for Dockerfiles
syntax "Dockerfile" "Dockerfile[^/]*$" "\.dockerfile$"
## Keywords
icolor red "^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)[[:space:]]"
## Brackets & parenthesis
color brightgreen "(\(|\)|\[|\])"
## Double ampersand
color brightmagenta "&&"
## Comments
icolor cyan "^[[:space:]]*#.*$"
## Blank space at EOL
color ,green "[[:space:]]+$"
## Strings, single-quoted
color brightwhite "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
## Strings, double-quoted
color brightwhite ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
## Single and double quotes
color brightyellow "('|\")"

View File

@ -1,57 +0,0 @@
***************************************
Improved Nano Syntax Highlighting Files
***************************************
This repository holds {lang}.nanorc files that have imporved
definitions of syntax highlighting for various languages.
These should be placed inside of the ``~/.nano/`` directory.
Once there you should add the languages you want to your
nano configuration file ``~/.nanorc``. For example,
my config file includes::
## C/C++
include "~/.nano/c.nanorc"
## Fortran
include "~/.nano/fortran.nanorc"
## HTML
include "~/.nano/html.nanorc"
## Patch files
include "~/.nano/patch.nanorc"
## Manpages
include "~/.nano/man.nanorc"
## Perl
include "~/.nano/perl.nanorc"
## Python
include "~/.nano/python.nanorc"
## reST
include "~/.nano/reST.nanorc"
## Ruby
include "~/.nano/ruby.nanorc"
## Bourne shell scripts
include "~/.nano/sh.nanorc"
## makefile .am
include "~/.nano/gentoo.nanorc"
## TeX
include "~/.nano/tex.nanorc"
## CSS
include "~/.nano/css.nanorc"
## php
include "~/.nano/php.nanorc"
## XML
include "~/.nano/xml.nanorc"

39
Rnw.nanorc Normal file
View File

@ -0,0 +1,39 @@
## Here is a short example for TeX files.
##
syntax "Tex" "\.Rnw$" "bib" "\.bib$" "cls" "\.cls$"
color yellow "\$(\\\$|[^$])*[^\\]\$"
color yellow "\$\$(\\\$|[^$])*[^\\]\$\$"
icolor green "\\.|\\[A-Z]*"
color magenta "[{}]"
color red start="<<" end=">>="
color white start=">>=" end="@"
color brightblue "%.*"
color brightblue "^[[:space:]]*#.*"
color brightblue start="\\begin\{comment\}" end="\\end\{comment\}"
color green "(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}"
# Functions
color blue "([a-zA-Z0-9_\-$\.]*)\("
# Variables
color magenta "[a-zA-Z_0-9]* <\-"
# Special Characters
color yellow "[.,{}();]"
color yellow "\["
color yellow "\]"
color yellow "[=][^>]"
# Numbers
color magenta "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*"
color magenta "0x[0-9a-zA-Z]*"
# Special Variables
color blue "(\$this|parent::|self::|\$this->)"
# Bitwise Operations
color magenta "(\;|\||\^){1}"
# And/Or/SRO/etc
color green "(\;\;|\|\||::|=>|->)"
# STRINGS!
color red "('[^']*')|(\"[^\"]*\")"

View File

@ -1,5 +1,5 @@
# Apache files
syntax "apacheconf" "httpd\.conf|mime\.types|vhosts\.d\\*"
syntax "Apacheconf" "httpd\.conf|mime\.types|vhosts\.d\\*|\.htaccess"
color yellow ".+"
color brightcyan "(AcceptMutex|AcceptPathInfo|AccessFileName|Action|AddAlt|AddAltByEncoding|AddAltByType|AddCharset|AddDefaultCharset|AddDescription|AddEncoding)"
color brightcyan "(AddHandler|AddIcon|AddIconByEncoding|AddIconByType|AddInputFilter|AddLanguage|AddModuleInfo|AddOutputFilter|AddOutputFilterByType|AddType|Alias|AliasMatch)"
@ -42,3 +42,6 @@ color brightcyan "</?[A-Za-z]+"
color brightcyan "(<|</|>)"
color green "\"(\\.|[^\"])*\""
color white "#.*"
## Trailing spaces
color ,green "[[:space:]]+$"

116
arduino.nanorc Normal file
View File

@ -0,0 +1,116 @@
## FILENAME: arduino.nanorc
##
## DESCRIPTION: The arduino.nanorc syntax files allows syntax highlighting
## for Arduino sketch files in the GNU nano text editor.
##
## Maintainer: Nicholas Wilde
## Version: 0.1
## DATE: 06/23/2011
##
## HOMEPAGE: http://code.google.com/p/arduino-nano-editor-syntax/
##
## COMMENTS: -Most of the code was taken from the c.nanorc code found with
## GNU nano 2.2.6.
## -Direction was taken from the arduino vim syntax code by johannes
## <https://bitbucket.org/johannes/arduino-vim-syntax/>
## -Tested on Ubuntu Server 11.04 Natty Narwhal and GNU nano 2.2.6
##
## DIRECTIONS: For Ubuntu Server 11.04 Natty Narwhal:
## -Move this file <arduino.nanorc> to the nano directory
## /usr/share/nano/
## -Add arduino.nanorc reference to the nanorc settings file
## /etc/nanorc
## ...
## ## Arduino
## /usr/share/nano/arduino.nanorc
## ...
syntax "INO" "\.?ino$"
##
color brightred "\<[A-Z_][0-9A-Z_]+\>"
##
color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>"
## Constants
icolor green "\<(HIGH|LOW|INPUT|OUTPUT)\>"
## Serial Print
icolor red "\<(DEC|BIN|HEX|OCT|BYTE)\>"
## PI Constants
icolor green "\<(PI|HALF_PI|TWO_PI)\>"
## ShiftOut
icolor green "\<(LSBFIRST|MSBFIRST)\>"
## Attach Interrupt
icolor green "\<(CHANGE|FALLING|RISING)\>"
## Analog Reference
icolor green "\<(DEFAULT|EXTERNAL|INTERNAL|INTERNAL1V1|INTERNAL2V56)\>"
## === FUNCTIONS === ##
## Data Types
color green "\<(boolean|byte|char|float|int|long|word)\>"
## Control Structions
color brightyellow "\<(case|class|default|do|double|else|false|for|if|new|null|private|protected|public|short|signed|static|String|switch|this|throw|try|true|unsigned|void|while)\>"
color magenta "\<(goto|continue|break|return)\>"
## Math
color brightyellow "\<(abs|acos|asin|atan|atan2|ceil|constrain|cos|degrees|exp|floor|log|map|max|min|radians|random|randomSeed|round|sin|sq|sqrt|tan)\>"
## Bits & Bytes
color brightyellow "\<(bitRead|bitWrite|bitSet|bitClear|bit|highByte|lowByte)\>"
## Analog I/O
color brightyellow "\<(analogReference|analogRead|analogWrite)\>"
## External Interrupts
color brightyellow "\<(attachInterrupt|detachInterrupt)\>"
## Time
color brightyellow "\<(delay|delayMicroseconds|millis|micros)\>"
## Digital I/O
color brightyellow "\<(pinMode|digitalWrite|digitalRead)\>"
## Interrupts
color brightyellow "\<(interrupts|noInterrupts)\>"
## Advanced I/O
color brightyellow "\<(noTone|pulseIn|shiftIn|shiftOut|tone)\>"
## Serial
color magenta "\<(Serial|Serial1|Serial2|Serial3|begin|end|peek|read|print|println|available|flush)\>"
## Structure
color brightyellow "\<(setup|loop)\>"
##
color brightcyan "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)"
##
color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
## GCC builtins
color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
## String highlighting. You will in general want your comments and
## strings to come last, because syntax highlighting rules will be
## applied in the order they are read in.
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
## This string is VERY resource intensive!
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
## Comments
color brightblue "^\s*//.*"
color brightblue start="/\*" end="\*/"
## Trailing whitespace
color ,green "[[:space:]]+$"

47
asciidoc.nanorc Normal file
View File

@ -0,0 +1,47 @@
syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$"
# main header
color brightred "^=[[:space:]].+$"
# h1
color red "^==[[:space:]].*$"
color red "^----+$"
# h2
color magenta "^===[[:space:]].*$"
color magenta "^~~~~+$"
# h4
color green "^====[[:space:]].*$"
color green "^\^\^\^\^+$"
# h5
color brightblue "^=====[[:space:]].*$"
color brightblue "^\+\+\+\++$"
# attributes
color brightgreen ":.*:"
color brightred "\{[a-z0-9]*\}"
color red "\\\{[a-z0-9]*\}"
color red "\+\+\+\{[a-z0-9]*\}\+\+\+"
# Paragraph Title
color yellow "^\..*$"
# source
color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]"
# Other markup
color yellow ".*[[:space:]]\+$"
color yellow "_[^_]+_"
color yellow "\*[^\*]+\*"
color yellow "\+[^\+]+\+"
color yellow "`[^`]+`"
color yellow "\^[^\^]+\^"
color yellow "~[^~]+~"
color yellow "'[^']+'"
color cyan "`{1,2}[^']+'{1,2}"
# bullets
color brightmagenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]"
# anchors
color brightwhite "\[\[.*\]\]"
color brightwhite "<<.*>>"

View File

@ -1,6 +1,9 @@
## Here is an example for assembler.
##
syntax "asm" "\.(S|s|asm)$"
syntax "ASM" "\.(S|s|asm)$"
magic "assembler source"
comment "//"
color red "\<[A-Z_]{2,}\>"
color brightgreen "\.(data|subsection|text)"
color green "\.(align|file|globl|global|hidden|section|size|type|weak)"
@ -11,7 +14,7 @@ color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
## Highlight comments
color brightblue "//.*"
color brightblue "^\s*//.*"
color brightblue start="/\*" end="\*/"
## Highlight trailing whitespace
color ,green "[[:space:]]+$"

27
awk.nanorc Normal file
View File

@ -0,0 +1,27 @@
syntax "AWK" "\.awk$"
header "^#!.*bin/(env +)?awk( |$)"
magic "awk script"
comment "#"
color brightyellow "\$[A-Za-z0-9_!@#$*?-]+"
color brightyellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>"
color brightyellow "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>"
color brightyellow "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>"
color brightblue "\<(function|extension|BEGIN|END)\>"
color red "[-+*/%^|!=&<>?;:]|\\|\[|\]"
color cyan "\<(for|if|while|do|else|in|delete|exit)\>"
color cyan "\<(break|continue|return)\>"
color brightblue "\<(close|getline|next|nextfile|print|printf|system|fflush)\>"
color brightblue "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>"
color brightblue "\<(asort|asorti|gensub|gsub|index|length|match)\>"
color brightblue "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>"
color brightblue "\<(mktime|strftime|systime)\>"
color brightblue "\<(and|compl|lshift|or|rshift|xor)\>"
color brightblue "\<(bindtextdomain|dcgettext|dcngettext)\>"
color magenta "/.*[^\]/"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\."
color brightblack "(^|[[:space:]])#([^{].*)?$"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

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

@ -1,12 +1,17 @@
## Here is an example for C/C++.
##
syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
color brightred "\<[A-Z_][0-9A-Z_]+\>"
color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>"
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 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)\>"
color green "\<(for|if|while|do|else|case|default|switch)\>"
color green "\<(try|throw|catch|operator|new|delete)\>"
color green "\<((const|dynamic|reinterpret|static)_cast)\>"
color green "\<(alignas|alignof|asm|auto|compl|concept|constexpr|decltype|export|noexcept|nullptr|requires|static_assert|thread_local|typeid|override|final)\>"
color green "\<(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\>"
color brightmagenta "\<(goto|continue|break|return)\>"
color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
@ -16,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 "[(){}]" "\[" "\]"
@ -29,8 +34,19 @@ color magenta "[(){}]" "\[" "\]"
color cyan "<[^= ]*>" ""(\\.|[^"])*""
##
## 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
color brightblue "//.*"
color brightblue start="/\*" end="\*/"
# Highlighting for documentation comments
color magenta "@param [a-zA-Z_][a-z0-9A-Z_]+"
color magenta "@return"
color magenta "@author.*"
## Trailing whitespace
color ,green "[[:space:]]+$"

33
clojure.nanorc Normal file
View File

@ -0,0 +1,33 @@
## Clojure Syntax Highlighting
##
syntax "clojure" "\.((clj[s|c]?)|edn)"
icolor green "defn? [0-9A-Z_]+"
color brightgreen "[#']"
color brightgreen "\<fn\>"
color green "\<(map|reduce|filter|println)\>"
color brightyellow "\<(if(-(let|not))?|condp?|when(-(let|not))?)\>"
color brightyellow "\<(do(all|run|seq|sync)?|recur|loop)\>"
color brightyellow "\<(try|catch|finally|throw)\>"
color yellow "(\:else) "
color brightcyan "\<(require|use|import|ns)\>"
color cyan "(\:(require|use|import)) "
color brightred "\<(let(fn)?|defn?)\>"
color brightwhite "\((\/|((not|[<>\=])?\=?))"
color brightwhite "\((\+|-|\*)'?"
color brightwhite "\<(and|or|not|mod|quot|rem|inc|dec)\>"
color magenta "[\(\)]"
color magenta "(\[|\])"
color yellow "\<(true|false|nil)\>"
color brightyellow "(["][^"]*[^\\]["])|("")"
color brightblue ";.*$"
color ,green "[[:space:]]+$"

26
cmake.nanorc Normal file
View File

@ -0,0 +1,26 @@
## CMake syntax highlighter for GNU Nano
##
syntax "CMake" "(CMakeLists\.txt|\.cmake)$"
comment "#"
icolor green "^[[:space:]]*[A-Z0-9_]+"
icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>"
icolor brightgreen "^[[:space:]]*\<((else|end)?if|else|(end)?while|(end)?foreach|break)\>"
color brightgreen "\<(COPY|NOT|COMMAND|PROPERTY|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)\>[[:space:]]"
color brightgreen "[[:space:]]\<(OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))\>[[:space:]]"
icolor brightred "^[[:space:]]*\<((end)?(function|macro)|return)"
#String Color
color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
icolor brightred start="\$(\{|ENV\{)" end="\}"
color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>"
icolor brightblue "^([[:space:]]*)?#.*"
icolor brightblue "[[:space:]]#.*"
## Trailing whitespace
color ,green "[[:space:]]+$"

16
coffeescript.nanorc Normal file
View File

@ -0,0 +1,16 @@
syntax "CoffeeScript" "\.coffee$"
header "^#!.*/(env +)?coffee"
color red "[!&|=\/*+\-\<\>]|\<(and|or|is|isnt|not)\>"
color brightblue "[A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\()" "->"
color brightblue "[()]"
color cyan "\<(for|of|continue|break|isnt|null|unless|this|else|if|return)\>"
color cyan "\<(try|catch|finally|throw|new|delete|typeof|in|instanceof)\>"
color cyan "\<(debugger|switch|while|do|class|extends|super)\>"
color cyan "\<(undefined|then|unless|until|loop|of|by|when)\>"
color brightcyan "\<(true|false|yes|no|on|off)\>"
color brightyellow "@[A-Za-z0-9_]*"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

17
colortest.nanorc Normal file
View File

@ -0,0 +1,17 @@
syntax "colorTest" "ColorTest$"
color black "\<PLAIN\>"
color red "\<red\>"
color green "\<green\>"
color yellow "\<yellow\>"
color blue "\<blue\>"
color magenta "\<magenta\>"
color cyan "\<cyan\>"
color brightred "\<brightred\>"
color brightgreen "\<brightgreen\>"
color brightyellow "\<brightyellow\>"
color brightblue "\<brightblue\>"
color brightmagenta "\<brightmagenta\>"
color brightcyan "\<brightcyan\>"

View File

@ -1,10 +1,11 @@
## Here is an example for nanorc files.
##
syntax "conf" "\.c[o]?nf$"
syntax "Conf" "\.c[o]?nf$"
## Possible errors and parameters
## Strings
icolor white ""(\\.|[^"])*""
## Comments
icolor brightblue "^[[:space:]]*#.*$"
icolor cyan "^[[:space:]]*##.*$"
## Trailing spaces
color ,green "[[:space:]]+$"

18
conky.nanorc Normal file
View File

@ -0,0 +1,18 @@
##
## Syntax highlighting for conkyrc files.
##
##
syntax "Conky" "(\.*conkyrc.*$|conky.conf)"
## Configuration items
color green "\<(alignment|append_file|background|border_inner_margin|border_outer_margin|border_width|color0|color1|color2|color3|color4|color5|color6|color7|color8|color9|colorN|cpu_avg_samples|default_bar_height|default_bar_width|default_color|default_gauge_height|default_gauge_width|default_graph_height|default_graph_width|default_outline_color|default_shade_color|diskio_avg_samples|display|double_buffer|draw_borders|draw_graph_borders|draw_outline|draw_shades|extra_newline|font|format_human_readable|gap_x|gap_y|http_refresh|if_up_strictness|imap|imlib_cache_flush_interval|imlib_cache_size|lua_draw_hook_post|lua_draw_hook_pre|lua_load|lua_shutdown_hook|lua_startup_hook|mail_spool|max_port_monitor_connections|max_text_width|max_user_text|maximum_width|minimum_height|minimum_width|mpd_host|mpd_password|mpd_port|music_player_interval|mysql_host|mysql_port|mysql_user|mysql_password|mysql_db|net_avg_samples|no_buffers|nvidia_display|out_to_console|out_to_http|out_to_ncurses|out_to_stderr|out_to_x|override_utf8_locale|overwrite_file|own_window|own_window_class|own_window_colour|own_window_hints|own_window_title|own_window_transparent|own_window_type|pad_percents|pop3|sensor_device|short_units|show_graph_range|show_graph_scale|stippled_borders|temperature_unit|template|template0|template1|template2|template3|template4|template5|template6|template7|template8|template9|text|text_buffer_size|times_in_seconds|top_cpu_separate|top_name_width|total_run_times|update_interval|update_interval_on_battery|uppercase|use_spacer|use_xft|xftalpha|xftfont)\>"
## Configuration item constants
color yellow "\<(above|below|bottom_left|bottom_right|bottom_middle|desktop|dock|no|none|normal|override|skip_pager|skip_taskbar|sticky|top_left|top_right|top_middle|middle_left|middle_right|middle_middle|undecorated|yes)\>"
## Variables
color brightblue "\<(acpiacadapter|acpifan|acpitemp|addr|addrs|alignc|alignr|apcupsd|apcupsd_cable|apcupsd_charge|apcupsd_lastxfer|apcupsd_linev|apcupsd_load|apcupsd_loadbar|apcupsd_loadgauge|apcupsd_loadgraph|apcupsd_model|apcupsd_name|apcupsd_status|apcupsd_temp|apcupsd_timeleft|apcupsd_upsmode|apm_adapter|apm_battery_life|apm_battery_time|audacious_bar|audacious_bitrate|audacious_channels|audacious_filename|audacious_frequency|audacious_length|audacious_length_seconds|audacious_main_volume|audacious_playlist_length|audacious_playlist_position|audacious_position|audacious_position_seconds|audacious_status|audacious_title|battery|battery_bar|battery_percent|battery_short|battery_time|blink|bmpx_album|bmpx_artist|bmpx_bitrate|bmpx_title|bmpx_track|bmpx_uri|buffers|cached|cmdline_to_pid|color|color0|color1|color2|color3|color4|color5|color6|color7|color8|color9|combine|conky_build_arch|conky_build_date|conky_version|cpu|cpubar|cpugauge|cpugraph|curl|desktop|desktop_name|desktop_number|disk_protect|diskio|diskio_read|diskio_write|diskiograph|diskiograph_read|diskiograph_write|distribution|downspeed|downspeedf|downspeedgraph|draft_mails|else|endif|entropy_avail|entropy_bar|entropy_perc|entropy_poolsize|eval|eve|exec|execbar|execgauge|execgraph|execi|execibar|execigauge|execigraph|execp|execpi|flagged_mails|font|format_time|forwarded_mails|freq|freq_g|fs_bar|fs_bar_free|fs_free|fs_free_perc|fs_size|fs_type|fs_used|fs_used_perc|goto|gw_iface|gw_ip|hddtemp|head|hr|hwmon|i2c|i8k_ac_status|i8k_bios|i8k_buttons_status|i8k_cpu_temp|i8k_left_fan_rpm|i8k_left_fan_status|i8k_right_fan_rpm|i8k_right_fan_status|i8k_serial|i8k_version|ibm_brightness|ibm_fan|ibm_temps|ibm_volume|ical|iconv_start|iconv_stop|if_empty|if_existing|if_gw|if_match|if_mixer_mute|if_mounted|if_mpd_playing|if_running|if_smapi_bat_installed|if_up|if_updatenr|if_xmms2_connected|image|imap_messages|imap_unseen|ioscheduler|irc|kernel|laptop_mode|lines|loadavg|loadgraph|lua|lua_bar|lua_gauge|lua_graph|lua_parse|machine|mails|mboxscan|mem|memwithbuffers|membar|memwithbuffersbar|memeasyfree|memfree|memgauge|memgraph|memmax|memperc|mixer|mixerbar|mixerl|mixerlbar|mixerr|mixerrbar|moc_album|moc_artist|moc_bitrate|moc_curtime|moc_file|moc_rate|moc_song|moc_state|moc_timeleft|moc_title|moc_totaltime|monitor|monitor_number|mpd_album|mpd_artist|mpd_bar|mpd_bitrate|mpd_elapsed|mpd_file|mpd_length|mpd_name|mpd_percent|mpd_random|mpd_repeat|mpd_smart|mpd_status|mpd_title|mpd_track|mpd_vol|mysql|nameserver|new_mails|nodename|nodename_short|no_update|nvidia|obsd_product|obsd_sensors_fan|obsd_sensors_temp|obsd_sensors_volt|obsd_vendor|offset|outlinecolor|pb_battery|pid_chroot|pid_cmdline|pid_cwd|pid_environ|pid_environ_list|pid_exe|pid_nice|pid_openfiles|pid_parent|pid_priority|pid_state|pid_state_short|pid_stderr|pid_stdin|pid_stdout|pid_threads|pid_thread_list|pid_time_kernelmode|pid_time_usermode|pid_time|pid_uid|pid_euid|pid_suid|pid_fsuid|pid_gid|pid_egid|pid_sgid|pid_fsgid|pid_read|pid_vmpeak|pid_vmsize|pid_vmlck|pid_vmhwm|pid_vmrss|pid_vmdata|pid_vmstk|pid_vmexe|pid_vmlib|pid_vmpte|pid_write|platform|pop3_unseen|pop3_used|processes|read_tcp|read_udp|replied_mails|rss|running_processes|running_threads|scroll|seen_mails|shadecolor|smapi|smapi_bat_bar|smapi_bat_perc|smapi_bat_power|smapi_bat_temp|sony_fanspeed|stippled_hr|stock|swap|swapbar|swapfree|swapmax|swapperc|sysname|tab|tail|tcp_ping|tcp_portmon|template0|template1|template2|template3|template4|template5|template6|template7|template8|template9|texeci|texecpi|threads|time|to_bytes|top|top_io|top_mem|top_time|totaldown|totalup|trashed_mails|tztime|gid_name|uid_name|unflagged_mails|unforwarded_mails|unreplied_mails|unseen_mails|updates|upspeed|upspeedf|upspeedgraph|uptime|uptime_short|user_names|user_number|user_terms|user_times|user_time|utime|voffset|voltage_mv|voltage_v|weather|wireless_ap|wireless_bitrate|wireless_essid|wireless_link_bar|wireless_link_qual|wireless_link_qual_max|wireless_link_qual_perc|wireless_mode|words|xmms2_album|xmms2_artist|xmms2_bar|xmms2_bitrate|xmms2_comment|xmms2_date|xmms2_duration|xmms2_elapsed|xmms2_genre|xmms2_id|xmms2_percent|xmms2_playlist|xmms2_size|xmms2_smart|xmms2_status|xmms2_timesplayed|xmms2_title|xmms2_tracknr|xmms2_url)\>"
color brightblue "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color cyan "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color brightred "^TEXT$"

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+$"

15
csh.nanorc Normal file
View File

@ -0,0 +1,15 @@
## Here is an example for c-shell scripts.
##
syntax "CSH" "\.csh$" "\.tcshrc" "\.cshrc" "\.login" "\.logout" "\.history"
header "^#!.*/(env +)?(t)?csh( |$)"
color green "\<(break|breaksw|case|continue|default|else|end|endif|endsw|exec|exit|foreach|goto|if|repeat|shift|switch|then|while)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color green "-[rfuMZwdgAUxlkebtAGoczpPsS]\>"
color green "-(A\:|M\:|U\:|G\:)\>"
color brightblue "\<(alias|bindkey|cat|cd|chmod|chown|complete|cp|echo|env|grep|install|ln|make|mkdir|mv|printenv|rm|sed|set|setenv|tar|touch|umask|unalias|uncomplete|unset|unsetenv)\>"
icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color cyan "(^|[[:space:]])#.*$"
color ,green "[[:space:]]+$"

26
csharp.nanorc Normal file
View File

@ -0,0 +1,26 @@
syntax "C#" "\.cs$"
# Class
color brightmagenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
# Annotation
color magenta "@[A-Za-z]+"
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
color green "\<(bool|byte|sbyte|char|decimal|double|float|IntPtr|int|uint|long|ulong|object|short|ushort|string|base|this|var|void)\>"
color cyan "\<(alias|as|case|catch|checked|default|do|dynamic|else|finally|fixed|for|foreach|goto|if|is|lock|new|null|return|switch|throw|try|unchecked|while)\>"
color cyan "\<(abstract|async|class|const|delegate|enum|event|explicit|extern|get|implicit|in|internal|interface|namespace|operator|out|override|params|partial|private|protected|public|readonly|ref|sealed|set|sizeof|stackalloc|static|struct|typeof|unsafe|using|value|virtual|volatile|yield)\>"
# LINQ-only keywords (ones that cannot be used outside of a LINQ query - lots others can)
color cyan "\<(from|where|select|group|info|orderby|join|let|in|on|equals|by|ascending|descending)\>"
color brightred "\<(break|continue)\>"
color brightcyan "\<(true|false)\>"
color red "[-+/*=<>?:!~%&|]"
color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\([btnfr]|'|\"|\\)"
color magenta "\\u[A-Fa-f0-9]{4}"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="^\s*/\*" end="\*/"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

View File

@ -1,10 +1,13 @@
## Here is an example for css files.
##
syntax "css" "\.css$"
syntax "CSS" "\.(css|scss|less)$"
color brightred "."
color brightyellow start="\{" end="\}"
color brightwhite start=":" end="[;^\{]"
color brightwhite start=":" end="[;^\{]"
color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$"
color brightblue start="\/\*" end="\\*/"
color brightblue start="\/\*" end="\*\/"
color green ";|:|\{|\}"
## Trailing spaces
color ,green "[[:space:]]+$"

16
csv.nanorc Normal file
View File

@ -0,0 +1,16 @@
# Rainbow CSV highlighting rules (12 column coverage)
# Inspired by https://github.com/mechatroner/rainbow_csv
syntax "CSV" "\.csv$"
color brightmagenta "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?"
color brightcyan "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?"
color brightblue "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?"
color brightyellow "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?"
color brightgreen "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?"
color brightred "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?"
color cyan "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?"
color magenta "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?"
color blue "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?"
color yellow "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?"
color green "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?"
color red "^("([^"]*"")*[^"]*",?)|^([^,]*,?))?"

33
cython.nanorc Normal file
View File

@ -0,0 +1,33 @@
## Cython nanorc, based off of Python nanorc.
##
syntax "Cython" "\.pyx$" "\.pxd$" "\.pyi$"
icolor brightred "def [ 0-9A-Z_]+"
icolor brightred "cpdef [0-9A-Z_]+\(.*\):"
icolor brightred "cdef cppclass [ 0-9A-Z_]+\(.*\):"
# Python Keyword Color
color green "\<(and|as|assert|class|def|DEF|del|elif|ELIF|else|ELSE|except|exec|finally|for|from|global|if|IF|import|in|is|lambda|map|not|or|pass|print|raise|try|while|with|yield)\>"
color brightmagenta "\<(continue|break|return)\>"
# Cython Keyword Color
color green "\<(cdef|cimport|cpdef|cppclass|ctypedef|extern|include|namespace|property|struct)\>"
color red "\<(bint|char|double|int|public|void|unsigned)\>"
#Operator Color
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
#Parenthetical Color
color magenta "[(){}]" "\[" "\]"
#String Color
color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''"
# Comment Color
color brightblue "#.*$"
## Trailing spaces
color ,green "[[:space:]]+$"

8
dot.nanorc Normal file
View File

@ -0,0 +1,8 @@
syntax "DOT" "\.(dot|gv)$"
color cyan "\<(digraph|edge|graph|node|subgraph)\>"
color magenta "\<(arrowhead|arrowsize|arrowtail|bgcolor|center|color|constraint|decorateP|dir|distortion|fillcolor|fontcolor|fontname|fontsize|headclip|headlabel|height|labelangle|labeldistance|labelfontcolor|labelfontname|labelfontsize|label|layers|layer|margin|mclimit|minlen|name|nodesep|nslimit|ordering|orientation|pagedir|page|peripheries|port_label_distance|rankdir|ranksep|rank|ratio|regular|rotate|samehead|sametail|shapefile|shape|sides|size|skew|style|tailclip|taillabel|URL|weight|width)\>"
color red "=|->|--"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="^\s*/\*" end="\*/"

10
dotenv.nanorc Normal file
View File

@ -0,0 +1,10 @@
## Syntax highlight for .env files, eg. https://symfony.com/doc/current/components/dotenv.html
##
## Derived from sh.nanorc
##
syntax "dotenv" "\.env" "\.env\..+"
color green "(\(|\)|\$|=)"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color cyan "(^|[[:space:]])#.*$"
color ,green "[[:space:]]+$"

50
elixir.nanorc Normal file
View File

@ -0,0 +1,50 @@
## Here is an example for Elixir.
##
syntax "Elixir" "\.ex$" "\.exs$"
header "^#!.*/(env +)?elixir( |$)"
## reserved words
color yellow "\<(case|cond|true|if|false|nil|when|and|or|not|in|fn|do|end|catch|rescue|after|else|with)\>"
color yellow "def[a-z]*"
## Constants
color brightblue "@[a-z]+"
## Elixir atoms
color magenta ":[0-9a-z_]+"
## Elixir Modules
color magenta "[A-Z][a-zA-Z0-9]*"
## Elixir types
color red "[A-Z][A-Za-z]+\.t\(\)"
## Some unique things we want to stand out
color brightyellow "\<(__CALLER__|__DIR__|__ENV__|__MODULE__|__STACKTRACE__)\>"
color brightyellow "\<(__add__|__aliases__|__build__|__block__|__deriving__|__info__|__protocol__|__struct__|__using__)\>"
## sigils
color brightmagenta "~[a-z]\/([^\/])*\/[a-z]*" "~[a-z]\|([^\|])*\|[a-z]*" "~[a-z]\"([^\"])*\"[a-z]*" "~[a-z]\'([^\'])*\'[a-z]*" "~[a-z]\(([^\(\)])*\)[a-z]*" "~[a-z]\[([^\[\]])*\][a-z]*" "~[a-z]\{([^\{\}])*\}[a-z]*" "~[a-z]\<([^\<\>])*\>[a-z]*"
## Strings, double-quoted
color green ""([^"]|(\\"))*""
## Expression substitution. These go inside double-quoted strings,
## "like #{this}".
color brightgreen "#\{[^}]*\}"
## Strings, single-quoted
color green "'([^']|(\\'))*'"
## Comments
color cyan "#.*$" "#$"
color brightcyan "##.*$" "##$"
## "Here" docs
color green start="\"\"\"" end="\"\"\""
## Some common markers
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
## Trailing spaces
color ,green "[[:space:]]+$"

5
email.nanorc Normal file
View File

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

26
erb.nanorc Normal file
View File

@ -0,0 +1,26 @@
## A HTML+Ruby set for Syntax Highlighting .erb files (Embedded RubyRails Views etc) ERB
## (c) 2009, Georgios V. Michalakidis - g.michalakidis@computer.org
## Licensed under the CC (Creative Commons) License.
##
## https://github.com/geomic/ERB-And-More-Code-Highlighting-for-nano
syntax "ERB" "\.erb$" "\.rhtml$"
color blue start="<" end=">"
color white start="<%" end="%>"
color red "&[^;[[:space:]]]*;"
color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>"
color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
icolor magenta "([ ]|^):[0-9A-Z_]+\>"
color brightyellow "\<(__FILE__|__LINE__)\>"
color brightmagenta "!/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
color brightblue "`[^`]*`" "%x\{[^}]*\}"
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
color brightgreen "#\{[^}]*\}"
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
color cyan "#[^{].*$" "#$"
color brightcyan "##[^{].*$" "##$"
color green start="<<-?'?EOT'?" end="^EOT"
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
## Trailing spaces
color ,green "[[:space:]]+$"

15
etc-hosts.nanorc Normal file
View File

@ -0,0 +1,15 @@
## Make /etc/hosts nicer to read, see `man hosts 5` to see the format
syntax "/etc/hosts" "hosts"
# IPv4
color yellow "^[0-9\.]+\s"
# IPv6
icolor green "^[0-9a-f:]+\s"
# interpunction
color normal "[.:]"
# comments
color brightblack "^#.*"

15
fish.nanorc Normal file
View File

@ -0,0 +1,15 @@
## Here is an example for Fish shell scripts.
##
syntax "Fish" "\.fish$"
header "^#!.*/(env +)?fish( |$)"
icolor brightgreen "^[0-9A-Z_]+\(\)"
color green "\<(alias|begin|break|case|continue|contains|else|end|for|function|if|math|return|set|switch|test|while)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color green "\<(and|isatty|not|or|in)\>"
color yellow "--[a-z-]+"
color brightmagenta "\ -[a-z]+"
color brightblue "\<(bg|bind|block|breakpoint|builtin|cd|command|commandline|complete|dirh|dirs|echo|emit|eval|exec|exit|fg|fish|fish_config|fish_ident|fish_pager|fish_prompt|fish_right_prompt|fish_update_completions|fishd|funced|funcsave|functions|help|history|jobs|mimedb|nextd|open|popd|prevd|psub|pushd|pwd|random|read|set_color|status|trap|type|ulimit|umask|vared)\>"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color cyan "(^|[[:space:]])#.*$"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color ,green "[[:space:]]+$"

View File

@ -1,7 +1,7 @@
## Here is an example for Fortran 90/95
syntax "fortran" "\.(f|f90|f95)$"
syntax "Fortran" "\.([Ff]|[Ff]90|[Ff]95|[Ff][Oo][Rr])$"
comment "!"
#color red "\<[A-Z_]a[0-9A-Z_]+\>"
color red "\<[0-9]+\>"
@ -10,7 +10,7 @@ icolor green "\<(append|asis|assign|assignment|associated|character|common)\>"
icolor green "\<(complex|data|default|delim|dimension|double precision)\>"
icolor green "\<(elemental|epsilon|external|file|fmt|form|format|huge)\>"
icolor green "\<(implicit|include|index|inquire|integer|intent|interface)\>"
icolor green "\<(intrinsic|iostat|kind|logical|module|none|null|only)>"
icolor green "\<(intrinsic|iostat|kind|logical|module|none|null|only)\>"
icolor green "\<(operator|optional|pack|parameter|pointer|position|private)\>"
icolor green "\<(program|public|real|recl|recursive|selected_int_kind)\>"
icolor green "\<(selected_real_kind|subroutine|status)\>"
@ -39,8 +39,15 @@ color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
#Parenthetical Color
color magenta "[(){}]" "\[" "\]"
# Add preprocessor commands.
color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
## String highlighting.
icolor brightblue "<[^= ]*>" ""(\\.|[^"])*""
icolor cyan "<[^= ]*>" ""(\\.|[^"])*""
icolor cyan "<[^= ]*>" "'(\\.|[^"])*'"
## Comment highlighting
icolor brightred "!.*"
icolor brightred "!.*$" "(^[Cc]| [Cc]) .*$"
## Trailing spaces
color ,green "[[:space:]]+$"

39
fsharp.nanorc Normal file
View File

@ -0,0 +1,39 @@
syntax "F#" "\.fs$" "\.fsx$"
# Type and Module Definitions
color brightgreen "type +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
color brightgreen "module +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
color brightmagenta "\<(List|Seq|Array|Option|Choice|Map|list|seq|array|option|choice|ref|in|out)\>"
color brightgreen "<+[A-Za-z0-9'^]+ *((:) +[A-Za-z0-9'^.]+)?>"
# Attributes
color brightmagenta "[<+[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?>]"
# Annotation
color magenta "@[A-Za-z]+"
# Basic Types
color brightgreen "\<(bool|byte|sbyte|int16|uint16|int|uint32|int64|uint64|char|decimal|double|float|float32|single|nativeint|IntPtr|unativeint|UIntPtr|object|string)\>"
# Keywords
color cyan "\<(abstract|and|let|as|assert|base|begin|class|default|delegate|do|for|to|in|while|done|downcast|downto|elif|if|then|else|end|exception|extern|false|finally|try|fixed|fun|function|match|global|inherit|inline|interface|internal|lazy|let!|match!|member|module|mutable|namespace|new|not|not struct|null|of|open|or|override|private|public|rec|return|return!|select|static|struct|true|with|type|upcast|use|use!|val|void|when|yield|yield!)\>"
color red "[-+/*=<>?:!~%&|]"
color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>"
color magenta "\\([btnfr]|'|\"|\\)"
color magenta "\\u[A-Fa-f0-9]{4}"
# String
color yellow ""(\\.|[^"])*""
# Comments
color brightblack "(^|[[:space:]])//.*"
color brightblack start="^\s*/\*" end="\*/"
color brightblack start="\(\*" end="\*\)"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " + +| + +"
color red "#if .+"
color red "#endif"
color white start="``" end="``"

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="^```"

53
genie.nanorc Normal file
View File

@ -0,0 +1,53 @@
## Here is an example for Genie.
syntax "genie" "\.gs$"
# Namespace.
color magenta "\<(uses|namespace)\>"
# Data types.
color green "\<(bool|byte|char|date|datetime|decimal|double|float|int|long|object|sbyte|short|single|string|ulong|ushort)\>"
# Definitions.
color brightred "\<(const|class|construct|def|delegate|enum|exception|extern|event|final|get|init|inline|interface|override|prop|return|set|static|struct|var|virtual|weak)\>"
# Keywords.
color red "\<(abstract|as|and|break|case|cast|continue|default|delete|div|do|downto|dynamic|else|ensures|except|extern|finally|for|if|implements|in|isa|is|lock|new|not|of|out|or|otherwise|pass|private|raise|raises|readonly|ref|requires|to|try|unless|when|while)\>"
# Special variables.
color brightcyan "\<(self|super)\>"
# Null value.
color brightyellow "\<(null)\>"
# Boolean.
color yellow "\<(false|true)\>"
# Builtin functions.
color cyan "\<(array|assert|dict|list|max|min|print|prop|sizeof|typeof)\>"
# Numbers.
color brightmagenta "[0-9][0-9\.]*(m|ms|d|h|s|f|F|l|L)?"
# Regular expression.
color brightgreen "/(\\.|[^/])*/"
# Double quoted string.
color brightblue ""(\\.|[^"])*""
# Single quoted string.
color brightblue "'(\\.|[^'])*'"
# Multiline string.
color blue start=""""" end="""""
# Line comment.
color yellow "(^|[[:space:]])//.*"
# Block comment.
color yellow start="^\s*/\*" end="\*/"
# Trailing whitespace.
color ,green "[[:space:]]+$"
# Spaces in front or rear of tabs.
color ,red " + +| + +"

View File

@ -1,6 +1,8 @@
## Here is an example for ebuilds/eclasses
##
syntax "ebuild" "\.e(build|class)$"
syntax "Ebuild" "\.e(build|class)$"
comment "#"
## All the standard portage functions
color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))"
## Highlight bash related syntax
@ -16,10 +18,10 @@ color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\<C(XX)?FLAGS\>" "\<LDFLAGS\>" "\<C(HOST|T
color magenta "\<use(_(with|enable))?\> [!a-zA-Z0-9_+ -]*" "inherit.*"
color brightblue "\<e(begin|end|conf|install|make|warn|infon?|error|log|patch|new(group|user))\>"
color brightblue "\<die\>" "\<use(_(with|enable))?\>" "\<inherit\>" "\<has\>" "\<(has|best)_version\>" "\<unpack\>"
color brightblue "\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>"
color brightblue "\<(do|new)(ins|s?bin|doc|lib(\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>"
color brightblue "\<do(python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>"
color brightblue "prepall(|docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)"
color brightblue "\<(|doc|ins|exe)into\>" "\<f(owners|perms)\>" "\<(exe|ins|dir)opts\>"
color brightblue "prepall(docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)"
color brightblue "\<(doc|ins|exe)into\>" "\<f(owners|perms)\>" "\<(exe|ins|dir)opts\>"
## Highlight common commands used in ebuilds
color blue "\<make\>" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>"
## Highlight comments (doesnt work that well)
@ -31,7 +33,7 @@ color ,green "[[:space:]]+$"
## Here is an example for Portage control files
##
syntax "/etc/portage" "\.(keywords|mask|unmask|use)$"
syntax "etc-portage" "\.(keywords|mask|unmask|use)$"
## Base text:
color green "^.+$"
## Use flags:

80
git.nanorc Normal file
View File

@ -0,0 +1,80 @@
syntax "git-config" "git(config|modules)$|\.git/config$"
color brightcyan "\<(true|false)\>"
color cyan "^[[:space:]]*[^=]*="
color brightmagenta "^[[:space:]]*\[.*\]$"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " +"
# This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2010, Sebastian Staudt
# A nano configuration file to enable syntax highlighting of some Git specific
# files with the GNU nano text editor (http://www.nano-editor.org)
#
syntax "git-commit" "COMMIT_EDITMSG|TAG_EDITMSG"
# Commit message
color yellow ".*"
# Comments
color brightblack "^#.*"
# Files changes
color white "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
color red "#[[:space:]]deleted:"
color green "#[[:space:]]modified:"
color brightgreen "#[[:space:]]new file:"
color brightblue "#[[:space:]]renamed:"
# Untracked filenames
color black "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$"
color brightmagenta "^#[[:space:]]Changes.*[:]"
color brightred "^#[[:space:]]Your branch and '[^']+"
color brightblack "^#[[:space:]]Your branch and '"
color brightwhite "^#[[:space:]]On branch [^ ]+"
color brightblack "^#[[:space:]]On branch"
# Recolor hash symbols
# Recolor hash symbols
color brightblack "#"
# Trailing spaces (+LINT is not ok, git uses tabs)
color ,green "[[:space:]]+$"
# This syntax format is used for interactive rebasing
syntax "git-rebase-todo" "git-rebase-todo"
# Default
color yellow ".*"
# Comments
color brightblack "^#.*"
# Rebase commands
color green "^(e|edit) [0-9a-f]{7,40}"
color green "^# (e, edit)"
color brightgreen "^(f|fixup) [0-9a-f]{7,40}"
color brightgreen "^# (f, fixup)"
color brightwhite "^(p|pick) [0-9a-f]{7,40}"
color brightwhite "^# (p, pick)"
color blue "^(r|reword) [0-9a-f]{7,40}"
color blue "^# (r, reword)"
color brightred "^(s|squash) [0-9a-f]{7,40}"
color brightred "^# (s, squash)"
color yellow "^(x|exec) [^ ]+ [0-9a-f]{7,40}"
color yellow "^# (x, exec)"
# Recolor hash symbols
color brightblack "#"
# Commit IDs
color brightblue "[0-9a-f]{7,40}"

1
gitcommit.nanorc Symbolic link
View File

@ -0,0 +1 @@
git.nanorc

15
glsl.nanorc Normal file
View File

@ -0,0 +1,15 @@
syntax "GLSL" "\.(frag|vert|fp|vp|glsl)$"
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
color green "\<(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DShadow)\>"
color green "\<gl_(DepthRangeParameters|PointParameters|MaterialParameters|LightSourceParameters|LightModelParameters|LightModelProducts|LightProducts|FogParameters)\>"
color cyan "\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\>"
color brightred "\<(break|continue)\>"
color brightcyan "\<(true|false)\>"
color red "[-+/*=<>?:!~%&|^]"
color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="^\s*/\*" end="\*/"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

23
go.nanorc Normal file
View File

@ -0,0 +1,23 @@
syntax "GO" "\.go$"
comment "//"
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
color brightblue "\<(append|cap|close|complex|copy|delete|imag|len)\>"
color brightblue "\<(make|new|panic|print|println|protect|real|recover)\>"
color green "\<(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\>"
color green "\<(uintptr|byte|rune|string|interface|bool|map|chan|error)\>"
color cyan "\<(package|import|const|var|type|struct|func|go|defer|nil|iota)\>"
color cyan "\<(for|range|if|else|case|default|switch|return)\>"
color brightred "\<(go|goto|break|continue)\>"
color brightcyan "\<(true|false)\>"
color red "[-+/*=<>!~%&|^]|:="
color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\[abfnrtv'\"\\]"
color magenta "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
color yellow "`[^`]*`"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="^\s*/\*" end="\*/"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

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 "#.*"

23
gradle.nanorc Normal file
View File

@ -0,0 +1,23 @@
syntax "groovy" "\.(groovy|gradle)$"
# Keywords
color brightblue "\<(boolean|byte|char|double|enum|float|int|long|new|short|super|this|transient)\>"
color brightblue "\<(as|assert|break|case|catch|continue|default|do|else|finally|for|goto|if|in|return|switch|throw|try|while)\>"
color brightblue "\<(abstract|class|extends|implements|import|interface|native|package|private|protected|public|static|strictfp|synchronized|throws|trait|void|volatile)\>"
color brightblue "\<(const|def|final|instanceof)\>"
color brightblue "\<(true|false|null)\>"
# Strings
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
# Interpolation
icolor yellow "\$\{[^\}]*}"
# Comments
color cyan "^//.*"
color cyan "\s//.*"
color cyan start="^/\*(\*)?" end="\*/"
color cyan start="\s/\*(\*)?" end="\*/"
# Trailing whitespace
color ,green "[[:space:]]+$"

View File

@ -1,8 +1,10 @@
## Here is an example for groff.
##
syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
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
@ -11,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 "^\.\\".*$"

18
haml.nanorc Normal file
View File

@ -0,0 +1,18 @@
syntax "Haml" "\.haml$"
color cyan "-|="
color white "->|=>"
icolor cyan "([ ]|^)%[0-9A-Z_]+\>"
icolor magenta ":[0-9A-Z_]+\>"
icolor yellow "\.[A-Z_]+\>"
## Double quote & single quote
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
## Vars
color brightgreen "#\{[^}]*\}"
color brightblue "(@|@@)[0-9A-Z_a-z]+"
## Comments
color brightcyan "#[^{].*$" "#$"
## Trailing spaces
color ,green "[[:space:]]+$"

35
haskell.nanorc Normal file
View File

@ -0,0 +1,35 @@
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)\>"
## Various symbols
color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
## Operators
color magenta "(==|/=|&&|\|\||<|>|<=|>=)"
## Various symbols
color cyan "(->|<-|=>)"
color magenta "\.|\$"
## Data constructors
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)\>"
## Strings
color yellow ""([^\"]|\\.)*""
## Chars
color brightyellow "'([^\']|\\.)'"
## Comments
color green "--.*"
color green start="\{-" end="-\}"
color brightred "undefined"
## Trailing spaces
color ,green "[[:space:]]+$"

36
hcl.nanorc Normal file
View File

@ -0,0 +1,36 @@
## Syntax highlighting for Hashicorp Terraform / HCL files.
# See: https://github.com/hashicorp/hcl
# Original author: John Boero
# License: GPLv3 or newer
syntax "hcl" "\.(tf|hcl)$"
# No comments are permitted in JSON.
comment ""
# Numbers (used as value).
color green ":[[:space:]]*\-?(0|[1-9][0-9]*)(\.[0-9]+)?([Ee]?[-+]?[0-9]+)?"
# Values (well, any string).
color brightmagenta "\".+\""
# Hex numbers (used as value).
color green ":[[:space:]]*\"#[0-9abcdefABCDEF]+\""
# Escapes.
color green "\\\\" "\\\"" "\\[bfnrt]" "\\u[0-9abcdefABCDEF]{4})"
# Special words.
color green "(true|false|null|output|path|vault|description|default|value)"
color brightgreen "(variable|terraform|resource|provider|module)"
# Names (very unlikely to contain a quote).
color brightblue "\"[^"]+\"[[:space:]]*:"
# Brackets, braces, and separators.
color brightblue "\[" "\]"
color brightred "\{" "\}"
color brightred "," ":"
# Comments.
color cyan "(^|[[:space:]]+)(//|#).*$"
# Trailing whitespace.
color ,green "[[:space:]]+$"

1
html.j2.nanorc Symbolic link
View File

@ -0,0 +1 @@
html.nanorc

View File

@ -1,5 +1,41 @@
## Here is a short example for HTML.
##
syntax "html" "\.html$"
color blue start="<" end=">"
color red "&[^;[[:space:]]]*;"
## HTML syntax highlighting rules for Nano
syntax "HTML" "\.html?(.j2)?(.twig)?$"
magic "HTML document"
comment "<!--|-->"
## Emphasis tags
color brightwhite start="<([biu]|em|strong)[^>]*>" end="</([biu]|em|strong)>"
## Tags
color cyan start="<" end=">"
## Attributes
color brightblue "[[:space:]](abbr|accept(-charset)?|accesskey|action|[av]?link|alt|archive|axis|background|(bg)?color|border)="
color brightblue "[[:space:]](cell(padding|spacing)|char(off|set)?|checked|cite|class(id)?|compact|code(base|tag)?|cols(pan)?)="
color brightblue "[[:space:]](content(editable)?|contextmenu|coords|data|datetime|declare|defer|dir|enctype)="
color brightblue "[[:space:]](for|frame(border)?|headers|height|hidden|href(lang)?|hspace|http-equiv|id|ismap)="
color brightblue "[[:space:]](label|lang|longdesc|margin(height|width)|maxlength|media|method|multiple)="
color brightblue "[[:space:]](name|nohref|noresize|noshade|object|on(click|focus|load|mouseover|keypress)|profile|readonly|rel|rev)="
color brightblue "[[:space:]](rows(pan)?|rules|scheme|scope|scrolling|shape|size|span|src|standby|start|style|summary|pattern)="
color brightblue "[[:space:]](tabindex|target|text|title|type|usemap|v?align|value(type)?|vspace|width|xmlns|xml:space)="
color brightblue "[[:space:]](required|disabled|selected)[[:space:]=>]"
## Strings
color yellow ""(\\.|[^"])*""
## Named character references and entities
color red "&#?[[:alnum:]]*;"
## Template strings (not in the HTML spec, but very commonly used)
color magenta "\{[^\}]*\}\}?"
color brightgreen "[[:space:]]((end)?if|(end)?for|in|not|(end)?block)[[:space:]]"
## Comments
color green start="<!--" end="-->"
## Trailing spaces
color ,green "[[:space:]]+$"
## Reminders
color brightwhite,yellow "(FIXME|TODO|XXX)"

15
i3.nanorc Normal file
View File

@ -0,0 +1,15 @@
## Here is an example for i3 Window Manager config
##
syntax "i3" "i3/config"
header "^(.*)i3 config file"
color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color green "-[Ldefgruwx]\>"
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color cyan "(^|[[:space:]])#.*$"
color ,green "[[:space:]]+$"

20
ical.nanorc Normal file
View File

@ -0,0 +1,20 @@
syntax "iCal" "\.ics$"
color green start="^BEGIN:VCALENDAR$" end="^END:VCALENDAR$"
color yellow start="^BEGIN:VCARD$" end="^END:VCARD$"
color brightblue start="^BEGIN:VJOURNAL$" end="^END:VJOURNAL$"
color magenta start="^BEGIN:VTIMEZONE$" end="^END:VTIMEZONE"
color cyan start="^BEGIN:VEVENT$" end="^END:VEVENT$"
color brightmagenta start="^BEGIN:VALARM$" end="^END:VALARM$"
color brightcyan start="^BEGIN:VFREEBUSY$" end="^END:VFREEBUSY$"
# URLs
color blue start="(https?|ftp)://" end="^[^ ]"
# email
icolor blue "mailto:[^ ]+"
icolor white "mailto:"
# parameters
color brightyellow start="^[-A-Z0-9]" end=":"
color white "^[-A-Z0-9]+"
# section markers
color red "^(BEGIN|END):.*$"

11
ini.nanorc Normal file
View File

@ -0,0 +1,11 @@
syntax "INI" "\.(ini|desktop|lfl|override|cfg)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$"
header "^\[[A-Za-z]+\]$"
color brightcyan "\<(true|false)\>"
color cyan "^[[:space:]]*[^=]*="
color brightmagenta "^[[:space:]]*\[.*\]$"
color red "[=;]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblue "(^|[[:space:]])(#([^{].*)?|;.*)$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

10
inputrc.nanorc Normal file
View File

@ -0,0 +1,10 @@
syntax "Inputrc" "inputrc$"
color red "\<(off|none)\>"
color green "\<on\>"
color brightblue "\<set|\$include\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

53
install.sh Executable file
View File

@ -0,0 +1,53 @@
#!/bin/sh
# check for unzip before we continue
if [ ! "$(command -v unzip)" ]; then
echo 'unzip is required but was not found. Install unzip first and then run this script again.' >&2
exit 1
fi
_fetch_sources(){
wget -O /tmp/nanorc.zip https://github.com/scopatz/nanorc/archive/master.zip
mkdir -p ~/.nano/
cd ~/.nano/ || exit
unzip -o "/tmp/nanorc.zip"
mv nanorc-master/* ./
rm -rf nanorc-master
rm /tmp/nanorc.zip
}
_update_nanorc(){
touch ~/.nanorc
# add all includes from ~/.nano/nanorc if they're not already there
while read -r inc; do
if ! grep -q "$inc" "${NANORC_FILE}"; then
echo "$inc" >> "$NANORC_FILE"
fi
done < ~/.nano/nanorc
}
_update_nanorc_lite(){
sed -i '/include "\/usr\/share\/nano\/\*\.nanorc"/i include "~\/.nano\/*.nanorc"' "${NANORC_FILE}"
}
NANORC_FILE=~/.nanorc
case "$1" in
-l|--lite)
UPDATE_LITE=1;;
-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
_fetch_sources;
if [ $UPDATE_LITE ];
then
_update_nanorc_lite
else
_update_nanorc
fi

45
jade.nanorc Normal file
View File

@ -0,0 +1,45 @@
syntax "Jade" "\.jade$"
# Elements
color yellow "^\s*([a-z0-9]+)"
# Main elements
color red "^\s*(html|head|body)"
# Includes
icolor magenta "^\s*(include)"
# Variables
color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)"
icolor magenta "^\s*-\s(var)$" "^\s*-\s(var)\s"
# Cases
color brightblue "^\s*(case)\s(.*)"
color cyan "^\s*(when)\s(.*)"
icolor magenta "^\s*(case|when|default)$" "^\s*(case|when|default)\s"
color brightred "^\s*-\s(break)$" "^\s*-\s(break)\s"
# Conditionals
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
# For loops
icolor magenta "^\s*-\s(for)"
# Each
icolor magenta "^\s*(each)$" "^\s*(each)\s"
# Parenthesis content
color blue start="\(" end="\)"
# Strings
color cyan "('[^']*')|(\"[^\"]*\")"
# Parenthesis, commas, equals
icolor green "\(" "\)" "\," "\="
# Comments, dashes and spaces
color blue "\s+(//.*)"
color blue start="/\*" end="\*/"
color white "^\s*(\-)"
color ,green "[[:space:]]+$"
# Unbuffered comments
color brightblue "\s+(//-.*)"
# HTML-style conditional comments
color brightmagenta start="<!" end="!>"
color brightmagenta "<!\[endif\]-->"
# HTML-style elements
color yellow "<([^!].*)>"
# Pipes
color yellow,magenta "\|"
# Doctype
color brightblack "^\s*(doctype)(.*)"
# Links
icolor brightgreen "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" "_blank"

View File

@ -1,12 +1,22 @@
## Here is an example for Java.
##
syntax "java" "\.java$"
syntax "Java" "\.java$"
magic "Java "
comment "//"
color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>"
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 "//.*"
color blue start="/\*" end="\*/"
color blue start="^\s*/\*" end="\*/"
color brightblue start="/\*\*" end="\*/"
# Highlighting for javadoc stuff
color magenta "@param [a-zA-Z_][a-z0-9A-Z_]+"
color magenta "@return"
color magenta "@author.*"
color ,green "[[:space:]]+$"

25
javascript.nanorc Normal file
View File

@ -0,0 +1,25 @@
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]?"
color blue "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]|)"
color cyan "\<(break|case|catch|continue|default|delete|do|else|finally)\>"
color cyan "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>"
color cyan "\<(switch|this|throw|try|typeof|var|void|while|with)\>"
color cyan "\<(null|undefined|NaN)\>"
color cyan "\<(import|as|from|export)\>"
color cyan "\<(const|let|class|extends|get|set|of|async|await|yield)\>"
color brightcyan "\<(true|false)\>"
color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
color green "\<(Map|WeakMap|Set|WeakSet|Promise|Symbol)\>"
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 "//.*"
color brightblack "/\*.+\*/"
color brightwhite,cyan "TODO:?"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

56
js.nanorc Normal file
View File

@ -0,0 +1,56 @@
### all *js files ( e.g. Firefox user.js, prefs.js )
## Old version
#syntax "JavaScript" "(\.|/|)js$"
#color green "//.*$" start="\/\*" end="\*\/"
#color blue "'(\\.|[^'])*'"
#color red ""(\\.|[^\"])*""
#color brightgreen "\<(true)\>"
#color brightred "\<(false)\>" "http\:\/\/.*$"
#color brightmagenta "[0-9](\\.|[^\"])*)"
## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting
syntax "JavaScript" "\.(js)$"
header "^#!.*\/(env +)node"
comment "//"
## Default
color white "^.+$"
## Decimal, cotal 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
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 "\<(break|case|catch|continue|default|delete|do|else|finally)\>"
color green "\<(for|function|if|in|instanceof|new|null|return|switch)\>"
color green "\<(switch|this|throw|try|typeof|undefined|var|void|while|with)\>"
color green "\<(import|as|from|export)\>"
color green "\<(const|let|class|extends|of|get|set|await|async|yield)\>"
## Type specifiers
color red "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
color red "\<(WeakMap|Map|WeakSet|Set|Symbol|Promise)\>"
color red "\<(Number|Object|RegExp|String)\>"
color red "\<(true|false)\>"
## String
color brightyellow "L?\"(\\"|[^"])*\""
color brightyellow "L?'(\'|[^'])*'"
color brightcyan "L?`(\`|[^`])*`"
color brightwhite,blue start="\$\{" end="\}"
## Trailing spaces
color ,green "[[:space:]]+$"
## Escapes
color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
## Comments
color brightblue start="^\s*/\*" end="\*/"
color brightblue "^\s*//.*$"

13
json.nanorc Normal file
View File

@ -0,0 +1,13 @@
syntax "JSON" "\.json$"
header "^\{$"
# You can't add a comment to JSON.
comment ""
color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>"
color cyan "\<null\>"
color brightcyan "\<(true|false)\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:"
color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

10
keymap.nanorc Normal file
View File

@ -0,0 +1,10 @@
syntax "Keymap" "\.(k|key)?map$|Xmodmap$"
color cyan "\<(add|clear|compose|keycode|keymaps|keysym|remove|string)\>"
color cyan "\<(control|alt|shift)\>"
color blue "\<[0-9]+\>"
color red "="
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "^!.*$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

15
kickstart.nanorc Normal file
View File

@ -0,0 +1,15 @@
syntax "KickStart" "\.ks$" "\.kickstart$"
color brightmagenta "%[a-z]+"
color cyan "^[[:space:]]*(install|cdrom|text|graphical|volgroup|logvol|reboot|timezone|lang|keyboard|authconfig|firstboot|rootpw|user|firewall|selinux|repo|part|partition|clearpart|bootloader)"
color cyan "--(name|mirrorlist|baseurl|utc)(=|\>)"
color brightyellow "\$(releasever|basearch)\>"
# Packages and groups
color brightblack "^@[A-Za-z][A-Za-z-]*"
color brightred "^-@[a-zA-Z0-9*-]+"
color red "^-[a-zA-Z0-9*-]+"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

26
kotlin.nanorc Normal file
View File

@ -0,0 +1,26 @@
# Nano syntax file
# Language: Kotlin
# Maintainer: Bjarne Holen <bjarneholen@gmail.com>
# Edited by: Ritiek Malhotra <ritiekmalhotra123@gmail.com>
# Last Change: 2017 May 24
# Copyright (c) 2014, Bjarne Holen
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|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)\>"
##
## String highlighting. You will in general want your comments and
## strings to come last, because syntax highlighting rules will be
## applied in the order they are read in.
color brightblue "<[^= ]*>" ""(\\.|[^"])*""
## Comment highlighting
color red "^\s*//.*"
color red start="^\s*/\*" end="\*/"
## Trailing whitespace
color ,green "[[:space:]]+$"

10
ledger.nanorc Normal file
View File

@ -0,0 +1,10 @@
syntax "Ledger" "(^|\.|/)ledger|ldgr|beancount|bnct$"
color brightmagenta "^([0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}|[=~]) .*"
color blue "^[0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}"
color brightyellow "^~ .*"
color brightblue "^= .*"
color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z ]+(:[A-Za-z ]+)*\)?"
color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z_-]+(:[A-Za-z_-]+)*\)?"
color red "[*!]"
color brightblack "^[[:space:]]*;.*"

15
license Normal file
View File

@ -0,0 +1,15 @@
nano run control files
Copyright (C) 2014+ Anthony Scopatz et al.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

13
lisp.nanorc Normal file
View File

@ -0,0 +1,13 @@
syntax "Lisp" "(emacs|zile)$" "\.(el|li?sp|scm|ss)$"
color brightblue "\([a-z-]+"
color red "\(([-+*/<>]|<=|>=)|'"
color blue "\<[0-9]+\>"
icolor cyan "\<nil\>"
color brightcyan "\<[tT]\>"
color yellow "\"(\\.|[^"])*\""
color magenta "'[A-Za-z][A-Za-z0-9_-]+"
color magenta "\\.?"
color brightblack "(^|[[:space:]]);.*"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

80
lua.nanorc Normal file
View File

@ -0,0 +1,80 @@
##############################################################################
#
# Lua syntax highlighting for Nano.
#
# Author: Matthew Wild <mwild1 (at) gmail.com>
# License: GPL 2 or later
#
# Version: 2007-06-06
#
# Notes: Originally based on Ruby syntax rc by Josef 'Jupp' Schugt
##############################################################################
# Automatically use for '.lua' files
syntax "Lua" ".*\.lua$"
magic "Lua script"
comment "--"
linter luacheck --no-color
# General
color brightwhite ".+"
# Operators
color brightyellow ":|\*\*|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>"
# Statements
color brightblue "\<(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return)\>"
# Keywords
color brightyellow "\<(debug|string|math|table|io|coroutine|os|utf8|bit32)\>\."
color brightyellow "\<(_ENV|_G|_VERSION|assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\s*\("
# Standard library
color brightyellow "io\.\<(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)\>"
color brightyellow "math\.\<(abs|acos|asin|atan2|atan|ceil|cosh|cos|deg|exp|floor|fmod|frexp|huge|ldexp|log10|log|max|maxinteger|min|mininteger|modf|pi|pow|rad|random|randomseed|sinh|sqrt|tan|tointeger|type|ult)\>"
color brightyellow "os\.\<(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)\>"
color brightyellow "package\.\<(config|cpath|loaded|loadlib|path|preload|seeall|searchers|searchpath)\>"
color brightyellow "string\.\<(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)\>"
color brightyellow "table\.\<(concat|insert|maxn|move|pack|remove|sort|unpack)\>"
color brightyellow "utf8\.\<(char|charpattern|codes|codepoint|len|offset)\>"
color brightyellow "coroutine\.\<(create|isyieldable|resume|running|status|wrap|yield)\>"
color brightyellow "debug\.\<(debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|getuservalue|setfenv|sethook|setlocal|setmetatable|setupvalue|setuservalue|traceback|upvalueid|upvaluejoin)\>"
color brightyellow "bit32\.\<(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)\>"
# File handle methods
color brightyellow "\:\<(close|flush|lines|read|seek|setvbuf|write)\>"
# false, nil, true
color brightmagenta "\<(false|nil|true)\>"
# External files
color brightgreen "(\<(dofile|require|include)|%q|%!|%Q|%r|%x)\>"
# Numbers
color red "\<([0-9]+)\>"
# Symbols
color brightmagenta "(\(|\)|\[|\]|\{|\})"
# Strings
color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
# Multiline strings
color red start="\s*\[\[" end="\]\]"
# Escapes
color red "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)."
# Shebang
color brightcyan "^#!.*"
# Simple comments
color green "\-\-.*$"
# Multiline comments
color green start="\s*\-\-\s*\[\[" end="\]\]"
# Trailing whitespaces
color ,green "[[:space:]]+$"

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 "^[^#].*"

25
makefile.nanorc Normal file
View File

@ -0,0 +1,25 @@
syntax "Makefile" "([Mm]akefile|\.ma?k)$"
header "^#!.*/(env +)?[bg]?make( |$)"
magic "makefile script"
comment "#"
color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>"
color cyan "^(export|include|override)\>"
color brightmagenta "^[^:= ]+:"
color brightmagenta "^[^:+ ]+\+"
color red "[=,%]" "\+=|\?=|:=|&&|\|\|"
color brightblue "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]"
color brightblue "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]"
color brightblue "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]"
color brightblue "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
color brightblue "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
color black "[()$]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightyellow "\$+(\{[^} ]+\}|\([^) ]+\))"
color brightyellow "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)"
color magenta "\$\$|\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color brightblack "^ @#.*"
# Show trailing whitespace
color ,green "[[:space:]]+$"

View File

@ -1,6 +1,9 @@
## Here is an example for manpages.
##
syntax "man" "\.[1-9]x?$"
syntax "Man" "\.[1-9]x?$"
magic "troff or preprocessor input"
comment ".\""
color green "\.(S|T)H.*$"
color brightgreen "\.(S|T)H" "\.TP"
color brightred "\.(BR?|I[PR]?).*$"

51
markdown.nanorc Normal file
View File

@ -0,0 +1,51 @@
syntax "Markdown" "\.(md|mkd|mkdn|markdown)$"
# Tables (Github extension)
color cyan ".*[ :]\|[ :].*"
# quotes
color brightblack start="^>" end="^$"
color brightblack "^>.*"
# Emphasis
color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
# Strong emphasis
color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
# strike-through
color red "(^|[[:space:]])~~[^ ][^~]*~~"
# horizontal rules
color brightmagenta "^(---+|===+|___+|\*\*\*+)\s*$"
# headlines
color brightmagenta "^#{1,6}.*"
# lists
color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. "
# leading whitespace
color black "^[[:space:]]+"
# misc
color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"
# links
color brightblue "\[[^]]+\]"
color brightblue "\[([^][]|\[[^]]*\])*\]\([^)]+\)"
# images
color magenta "!\[[^][]*\](\([^)]+\)|\[[^]]+\])"
# urls
color brightyellow "https?://[^ )>]+"
# code
color yellow "`[^`]*`|^ {4}[^-+*].*"
# code blocks
color yellow start="^```[^$]" end="^```$"
color yellow "^```$"
## Trailing spaces
color ,green "[[:space:]]+$"

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 "--.*"

9
mpdconf.nanorc Normal file
View File

@ -0,0 +1,9 @@
syntax "MPD" "mpd\.conf$"
color cyan "\<(user|group|bind_to_address|host|port|plugin|name|type)\>"
color cyan "\<((music|playlist)_directory|(db|log|state|pid|sticker)_file)\>"
color brightmagenta "^(input|audio_output|decoder)[[:space:]]*\{|\}"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

View File

@ -1,4 +1,4 @@
## Here is an example for quoted emails (under e.g. mutt).
##
syntax "mutt"
syntax "Mutt"
color green "^>.*"

90
nanorc Normal file
View File

@ -0,0 +1,90 @@
include "~/.nano/apacheconf.nanorc"
include "~/.nano/arduino.nanorc"
include "~/.nano/asciidoc.nanorc"
include "~/.nano/asm.nanorc"
include "~/.nano/awk.nanorc"
include "~/.nano/c.nanorc"
include "~/.nano/clojure.nanorc"
include "~/.nano/cmake.nanorc"
include "~/.nano/coffeescript.nanorc"
include "~/.nano/colortest.nanorc"
include "~/.nano/conf.nanorc"
include "~/.nano/csharp.nanorc"
include "~/.nano/css.nanorc"
include "~/.nano/cython.nanorc"
include "~/.nano/dot.nanorc"
include "~/.nano/dotenv.nanorc"
include "~/.nano/email.nanorc"
include "~/.nano/Dockerfile.nanorc"
include "~/.nano/etc-hosts.nanorc"
include "~/.nano/fish.nanorc"
include "~/.nano/fortran.nanorc"
include "~/.nano/gentoo.nanorc"
include "~/.nano/git.nanorc"
include "~/.nano/gitcommit.nanorc"
include "~/.nano/glsl.nanorc"
include "~/.nano/go.nanorc"
include "~/.nano/gradle.nanorc"
include "~/.nano/groff.nanorc"
include "~/.nano/haml.nanorc"
include "~/.nano/haskell.nanorc"
include "~/.nano/html.nanorc"
include "~/.nano/html.j2.nanorc"
include "~/.nano/ical.nanorc"
include "~/.nano/ini.nanorc"
include "~/.nano/inputrc.nanorc"
include "~/.nano/jade.nanorc"
include "~/.nano/java.nanorc"
include "~/.nano/javascript.nanorc"
include "~/.nano/js.nanorc"
include "~/.nano/json.nanorc"
include "~/.nano/keymap.nanorc"
include "~/.nano/kickstart.nanorc"
include "~/.nano/kotlin.nanorc"
include "~/.nano/ledger.nanorc"
include "~/.nano/lisp.nanorc"
include "~/.nano/lua.nanorc"
include "~/.nano/makefile.nanorc"
include "~/.nano/man.nanorc"
include "~/.nano/markdown.nanorc"
include "~/.nano/mpdconf.nanorc"
include "~/.nano/mutt.nanorc"
include "~/.nano/nanorc.nanorc"
include "~/.nano/nginx.nanorc"
include "~/.nano/nmap.nanorc"
include "~/.nano/ocaml.nanorc"
include "~/.nano/patch.nanorc"
include "~/.nano/peg.nanorc"
include "~/.nano/perl.nanorc"
include "~/.nano/perl6.nanorc"
include "~/.nano/php.nanorc"
include "~/.nano/pkg-config.nanorc"
include "~/.nano/pkgbuild.nanorc"
include "~/.nano/po.nanorc"
include "~/.nano/pov.nanorc"
include "~/.nano/privoxy.nanorc"
include "~/.nano/puppet.nanorc"
include "~/.nano/pug.nanorc"
include "~/.nano/python.nanorc"
include "~/.nano/reST.nanorc"
include "~/.nano/rpmspec.nanorc"
include "~/.nano/ruby.nanorc"
include "~/.nano/rust.nanorc"
include "~/.nano/scala.nanorc"
include "~/.nano/sed.nanorc"
include "~/.nano/sh.nanorc"
include "~/.nano/sls.nanorc"
include "~/.nano/sql.nanorc"
include "~/.nano/svn.nanorc"
include "~/.nano/swift.nanorc"
include "~/.nano/systemd.nanorc"
include "~/.nano/tcl.nanorc"
include "~/.nano/tex.nanorc"
include "~/.nano/vala.nanorc"
include "~/.nano/verilog.nanorc"
include "~/.nano/vi.nanorc"
include "~/.nano/xml.nanorc"
include "~/.nano/xresources.nanorc"
include "~/.nano/yaml.nanorc"
include "~/.nano/yum.nanorc"
include "~/.nano/zsh.nanorc"

View File

@ -1,16 +1,49 @@
## Here is an example for nanorc files.
##
syntax "nanorc" "\.?nanorc$"
syntax "Nanorc" "\.?nanorc$"
comment "#"
## Possible errors and parameters
icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
## Keywords
icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|speller|suspend|tabsize|tabstospaces|tempfile|view|whitespace|wordbounds)\>"
icolor green "^[[:space:]]*(set|unset|include|syntax)\>"
icolor brightred "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
## Colors
icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
icolor black " black"
icolor red " red"
icolor green " green"
icolor yellow " yellow"
icolor blue " blue"
icolor magenta " magenta"
icolor cyan " cyan"
icolor white " white"
icolor normal " normal"
icolor brightblack " brightblack"
icolor brightred " brightred"
icolor brightgreen " brightgreen"
icolor brightyellow " brightyellow"
icolor brightblue " brightblue"
icolor brightmagenta " brightmagenta"
icolor brightcyan " brightcyan"
icolor brightwhite " brightwhite"
icolor brightnormal " brightnormal"
icolor ,black ",black "
icolor ,red ",red "
icolor ,green ",green "
icolor ,yellow ",yellow "
icolor ,blue ",blue "
icolor ,magenta ",magenta "
icolor ,cyan ",cyan "
icolor ,white ",white "
icolor ,normal ",normal"
icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
icolor yellow "^[[:space:]]*(set|unset)[[:space:]]+(errorcolor|functioncolor|keycolor|numbercolor|selectedcolor|statuscolor|stripecolor|titlecolor)[[:space:]]+(bright)?(white|black|red|blue|green|yellow|magenta|cyan|normal)?(,(white|black|red|blue|green|yellow|magenta|cyan|normal))?\>"
## Keywords
icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(afterends|allow_insecure_backup|atblanks|autoindent|backup|backupdir|boldtext|brackets|breaklonglines|casesensitive|constantshow|cutfromcursor|emptyline|errorcolor|fill|functioncolor|guidestripe|historylog|jumpyscrolling|keycolor|linenumbers|locking|matchbrackets|morespace|mouse|multibuffer|noconvert|nohelp|nonewlines|nopauses|nowrap|numbercolor|operatingdir|positionlog|preserve|punct|quickblank|quotestr|rawsequences|rebinddelete|regexp|selectedcolor|showcursor|smarthome|smooth|softwrap|speller|statuscolor|stripecolor|suspend|tabsize|tabstospaces|tempfile|titlecolor|trimblanks|unix|view|whitespace|wordbounds|wordchars|zap)\>"
icolor green "^[[:space:]]*(bind|set|unset|syntax|header|include|magic)\>"
## Strings
icolor white ""(\\.|[^"])*""
## Comments
icolor brightblue "^[[:space:]]*#.*$"
icolor cyan "^[[:space:]]*##.*$"
## Trailing whitespace
icolor ,green "[[:space:]]+$"

13
nginx.nanorc Normal file
View File

@ -0,0 +1,13 @@
syntax "Nginx" "nginx.*\.conf$" "\.nginx$" ".*\/sites\-available\/.*$" ".*\/sites\-enabled\/.*$"
header "^(server|upstream)[^{]*\{$"
color brightmagenta "\<(events|server|http|location|upstream)[[:space:]]*\{"
color cyan "(^|[[:space:]{;])(access_log|add_after_body|add_before_body|add_header|addition_types|aio|alias|allow|ancient_browser|ancient_browser_value|auth_basic|auth_basic_user_file|autoindex|autoindex_exact_size|autoindex_localtime|break|charset|charset_map|charset_types|chunked_transfer_encoding|client_body_buffer_size|client_body_in_file_only|client_body_in_single_buffer|client_body_temp_path|client_body_timeout|client_header_buffer_size|client_header_timeout|client_max_body_size|connection_pool_size|create_full_put_path|daemon|dav_access|dav_methods|default_type|deny|directio|directio_alignment|disable_symlinks|empty_gif|env|error_log|error_page|expires|fastcgi_buffer_size|fastcgi_buffers|fastcgi_busy_buffers_size|fastcgi_cache|fastcgi_cache_bypass|fastcgi_cache_key|fastcgi_cache_lock|fastcgi_cache_lock_timeout|fastcgi_cache_min_uses|fastcgi_cache_path|fastcgi_cache_use_stale|fastcgi_cache_valid|fastcgi_connect_timeout|fastcgi_hide_header|fastcgi_ignore_client_abort|fastcgi_ignore_headers|fastcgi_index|fastcgi_intercept_errors|fastcgi_keep_conn|fastcgi_max_temp_file_size|fastcgi_next_upstream|fastcgi_no_cache|fastcgi_param|fastcgi_pass|fastcgi_pass_header|fastcgi_read_timeout|fastcgi_send_timeout|fastcgi_split_path_info|fastcgi_store|fastcgi_store_access|fastcgi_temp_file_write_size|fastcgi_temp_path|flv|geo|geoip_city|geoip_country|gzip|gzip_buffers|gzip_comp_level|gzip_disable|gzip_http_version|gzip_min_length|gzip_proxied|gzip_static|gzip_types|gzip_vary|if|if_modified_since|ignore_invalid_headers|image_filter|image_filter_buffer|image_filter_jpeg_quality|image_filter_sharpen|image_filter_transparency|include|index|internal|ip_hash|keepalive|keepalive_disable|keepalive_requests|keepalive_timeout|large_client_header_buffers|limit_conn|limit_conn_log_level|limit_conn_zone|limit_except|limit_rate|limit_rate_after|limit_req|limit_req_log_level|limit_req_zone|limit_zone|lingering_close|lingering_time|lingering_timeout|listen|location|log_format|log_not_found|log_subrequest|map|map_hash_bucket_size|map_hash_max_size|master_process|max_ranges|memcached_buffer_size|memcached_connect_timeout|memcached_next_upstream|memcached_pass|memcached_read_timeout|memcached_send_timeout|merge_slashes|min_delete_depth|modern_browser|modern_browser_value|mp4|mp4_buffer_size|mp4_max_buffer_size|msie_padding|msie_refresh|open_file_cache|open_file_cache_errors|open_file_cache_min_uses|open_file_cache_valid|open_log_file_cache|optimize_server_names|override_charset|pcre_jit|perl|perl_modules|perl_require|perl_set|pid|port_in_redirect|postpone_output|proxy_buffer_size|proxy_buffering|proxy_buffers|proxy_busy_buffers_size|proxy_cache|proxy_cache_bypass|proxy_cache_key|proxy_cache_lock|proxy_cache_lock_timeout|proxy_cache_min_uses|proxy_cache_path|proxy_cache_use_stale|proxy_cache_valid|proxy_connect_timeout|proxy_cookie_domain|proxy_cookie_path|proxy_hide_header|proxy_http_version|proxy_ignore_client_abort|proxy_ignore_headers|proxy_intercept_errors|proxy_max_temp_file_size|proxy_next_upstream|proxy_no_cache|proxy_pass|proxy_pass_header|proxy_read_timeout|proxy_redirect|proxy_send_timeout|proxy_set_header|proxy_ssl_session_reuse|proxy_store|proxy_store_access|proxy_temp_file_write_size|proxy_temp_path|proxy_cache_methods|proxy_pass_request_body|proxy_pass_request_headers|proxy_cache_convert_head|proxy_cache_lock_age|proxy_cache_max_range_offset|proxy_send_lowat|proxy_set_body|proxy_socket_keepalive|proxy_ssl_trusted_certificate|random_index|read_ahead|real_ip_header|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver|resolver_timeout|return|rewrite|root|satisfy|satisfy_any|secure_link_secret|send_lowat|send_timeout|sendfile|sendfile_max_chunk|server|server|server_name|server_name_in_redirect|server_names_hash_bucket_size|server_names_hash_max_size|server_tokens|set|set_real_ip_from|source_charset|split_clients|ssi|ssi_silent_errors|ssi_types|ssl|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_client_certificate|ssl_crl|ssl_dhparam|ssl_engine|ssl_prefer_server_ciphers|ssl_protocols|ssl_session_cache|ssl_session_timeout|ssl_verify_client|ssl_verify_depth|ssl_ecdh_curve|ssl_session_tickets|ssl_stapling|ssl_stapling_verify|ssl_stapling_file|ssl_stapling_responder|ssl_buffer_size|ssl_early_data|ssl_password_file|ssl_session_ticket_key|ssl_trusted_certificate|sub_filter|sub_filter_once|sub_filter_types|tcp_nodelay|tcp_nopush|timer_resolution|try_files|types|types_hash_bucket_size|types_hash_max_size|underscores_in_headers|uninitialized_variable_warn|upstream|user|userid|userid_domain|userid_expires|userid_name|userid_p3p|userid_path|userid_service|valid_referers|variables_hash_bucket_size|variables_hash_max_size|worker_priority|worker_processes|worker_rlimit_core|worker_rlimit_nofile|working_directory|xml_entities|xslt_stylesheet|xslt_types)([[:space:]]|$)"
color brightcyan "\<(on|off)\>"
color brightyellow "\$[A-Za-z][A-Za-z0-9_]*"
color red "[*]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color yellow start="'$" end="';$"
color brightblue "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

18
nmap.nanorc Normal file
View File

@ -0,0 +1,18 @@
syntax "NMAP" "\.nmap$"
color yellow "^Nmap scan report for.*"
color brightwhite "^Not shown.*"
color brightwhite "^Host is up.*"
color brightwhite "^All.*"
color yellow "^[0-9]+/(tcp|udp).*$"
color cyan "^[0-9]+/(tcp|udp)"
color brightgreen "(Host is )?(open|up)"
color white "\(([0-9]+\.[0-9]+s latency)\)\."
color brightyellow "filtered"
color brightred "(Host is )?(All .* scanned ports on .*)?(^Not shown: [0-9]+ )?(closed|down)( ports)?"
color magenta "^PORT *STATE *SERVICE"
color brightblue "^#.*"

32
ocaml.nanorc Normal file
View File

@ -0,0 +1,32 @@
## Syntax highlighting for OCaml.
syntax "OCaml" "\.mli?$"
magic "OCaml"
comment "(*|*)"
#uid
color red "\<[A-Z][0-9a-z_]{2,}\>"
#declarations
color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>"
#structure items
color red "\<(type|open|class|module|exception|external)\>"
#patterns
color blue "\<(fun|function|functor|match|try|with)\>"
#patterns-modifiers
color yellow "\<(as|when|of)\>"
#conditions
color cyan "\<(if|then|else)\>"
#blocs
color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>"
#constantes
color green "\<(true|false)\>"
#modules/classes
color green "\<(include|inherit|initializer)\>"
#expr modifiers
color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
#comments
color white start="\(\*" end="\*\)"
#strings (no multiline handling yet)
color brightblack ""[^\"]*""
## Trailing spaces
color ,green "[[:space:]]+$"

24
octave.nanorc Normal file
View File

@ -0,0 +1,24 @@
# Source: https://wiki.octave.org/Nano
# Octave syntax colors
syntax "octave" "\.m$" "\.octaverc$"
# keywords
color brightyellow "(case|catch|do|else(if)?|for|function|if|otherwise|switch|try|until|unwind_protect(_cleanup)?|vararg(in|out)|while)"
color brightyellow "end(_try_catch|_unwind_protect|for|function|if|switch|while)?"
color magenta "(break|continue|return)"
# storage-type
color green "(global|persistent|static)"
# data-type
color green "(cell(str)?|char|double|(u)?int(8|16|32|64)|logical|single|struct)"
# embraced
# TODO: the next line needs to be fixed to work properly in all cases
color brightred start="\(" end="\)"
color blue start="\[|\{" end="\]|\}"
# strings
color yellow ""(\\.|[^\"])*"|'(\\.|[^\"])*'"
# comments
color brightblue "#.*|%.*"

View File

@ -1,6 +1,10 @@
## Here is an example for patch files.
##
syntax "patch" "\.(patch|diff)$"
syntax "Patch" "\.(patch|diff)$"
magic "diff output"
# You can't add comments in patch files.
comment ""
color brightgreen "^\+.*"
color green "^\+\+\+.*"
color brightblue "^ .*"

12
peg.nanorc Normal file
View File

@ -0,0 +1,12 @@
syntax "PEG" "\.l?peg$"
color cyan "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-"
color blue "\^[+-]?[0-9]+"
color red "[-+*?^/!&]|->|<-|=>"
color brightyellow "%[A-Za-z][A-Za-z0-9_]*"
color magenta "\[[^]]*\]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])\-\-.*$"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

View File

@ -1,11 +1,18 @@
## Here is an example for Perl.
##
syntax "perl" "\.p[lm]$"
syntax "Perl" "\.p[lm]$"
header "^#!.*/(env +)?perl( |$)"
magic "Perl script"
comment "#"
color red "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork))\>" "\<(get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join)\>" "\<(keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek(dir)?)\>" "\<(se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr(y)?|truncate|umask)\>" "\<(un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>"
color magenta "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>"
icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)"
color yellow "".*"|qq\|.*\|"
color yellow ""[^"]*"|'[^']*'|qq\|.*\|"
color white "[sm]/.*/"
color white start="(^use| = new)" end=";"
color green "#.*"
color yellow start="<< 'STOP'" end="STOP"
## Trailing spaces
color ,green "[[:space:]]+$"

19
perl6.nanorc Normal file
View File

@ -0,0 +1,19 @@
## Here is an example for perl
## Hybrid perl5 / perl6 syntax highlighting
### Found in CPAN - http://cpansearch.perl.org/src/NIGE/Goo-0.09/lib/.gooskel/nanorc
syntax "Perl6" "\.p6$" "\.pl6$" "\.pm6"
color brightblue "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork)|get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join|keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek|seekdir|se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr|y|truncate|umask|un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>"
color brightblue "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>"
# Perl 6 words
color brightcyan "\<(has|is|class|role|given|when|BUILD|multi|returns|method|submethod|slurp|say|sub)\>"
color brightmagenta start="[$@%]" end="( |\\W|-)"
color brightred "".*"|qq\|.*\|"
color white "[sm]/.*/"
color brightblue start="(^use| = new)" end=";"
color brightgreen "#.*"
color brightred start="<<EOSQL" end="EOSQL"
## Trailing spaces
color ,green "[[:space:]]+$"

View File

@ -1,20 +1,61 @@
## PHP syntax highlighting
##
syntax "php" "\.php$" "\.php[2345s]$" "\.phtml$"
#functions
color brightmagenta "([A-Za-z0-9])"
#numbers
color brightblue "[0-9]"
#special
color brightwhite "(^|[^A-Za-z0-9])(<\?php|\?>|var|and|or|default|class|extends|true|false|global|function|new|switch|case|break|next|prev|elseif|if|else|foreach|for|as|do|while|exit|die|declare|require_once|require|include_once|include|return|echo|static|array|isset)([^A-Za-z0-9])"
#types
color brightred "([^A-Za-z0-9])|[^A-Za-z](null|int|string|float|bool|object|resource)[^A-Za-z0-9_]+[^A-Za-z]"
#strings
color brightyellow ""(\\.|[^\"])*""
color brightyellow "'(\\.|[^\'])*'"
#Variables
color brightcyan "\$[]\[A-Za-z0-9_'\"]*"
#comments
color green "//.*"
color green "#.*"
color green start="/\*" end="\*/"
## PHP Syntax Highlighting
syntax "PHP" "\.php[2345s~]?$|\.module$"
magic "PHP script"
comment "//"
color white start="<\?(php|=)?" end="\?>"
# Constructs
color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)"
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 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 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 "(&|\||\^)"
color magenta "(<<|>>)"
# Comparison operators
color yellow "(==|===|!=|<>|!==|<=|>=|<=>)"
# Logical Operators
color yellow "( and | or | xor |!|&&|\|\|)"
# And/Or/SRO/etc
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:]]+$"
# multi-line comments
color brightyellow start="/\*" end="\*/"
# Nowdoc
color red start="<<<'[A-Z][A-Z0-9_]*'" end="^[A-Z][A-Z0-9_]*;"

8
pkg-config.nanorc Normal file
View File

@ -0,0 +1,8 @@
syntax "PC" "\.pc$"
color cyan "^(Name|Description|URL|Version|Conflicts|Cflags):"
color cyan "^(Requires|Libs)(\.private)?:"
color red "="
color brightyellow "\$\{[A-Za-z_][A-Za-z0-9_]*\}"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

26
pkgbuild.nanorc Normal file
View File

@ -0,0 +1,26 @@
## Arch PKGBUILD files
##
syntax "PKGBUILD" "^.*PKGBUILD$"
color green start="^." end="$"
color cyan "^.*(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license).*=.*$"
color brightcyan "\<(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license)\>"
color brightcyan "(\$|\$\{|\$\()(pkgbase|epoch|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license)(\}|\))"
color cyan "^.*(depends|makedepends|checkdepends|optdepends|conflicts|provides|replaces).*=.*$"
color brightcyan "\<(depends|makedepends|checkdepends|optdepends|conflicts|provides|replaces)\>"
color brightcyan "(\$|\$\{|\$\()(depends|makedepends|checkdepends|optdepends|conflicts|provides|replaces)(\}|\))"
color cyan "^.*(groups|backup|noextract|options|validpgpkeys|changelog).*=.*$"
color brightcyan "\<(groups|backup|noextract|options|validpgpkeys|changelog)\>"
color brightcyan "(\$|\$\{|\$\()(groups|backup|noextract|options|validpgpkeys|changelog)(\}|\))"
color cyan "^.*(install|source|md5sums|sha1sums|sha224sums|sha256sums|sha384sums|sha512sums).*=.*$"
color brightcyan "\<(install|source|md5sums|sha1sums|sha224sums|sha256sums|sha384sums|sha512sums)\>"
color brightcyan "(\$|\$\{|\$\()(install|source|md5sums|sha1sums|sha224sums|sha256sums|sha384sums|sha512sums)(\}|\))"
color brightcyan "\<(startdir|srcdir|pkgdir)\>"
color cyan "\.install"
color brightwhite "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}"
color brightred "build\(\)"
color brightred "package_.*.*$"
color brightred "\<(configure|make|cmake|scons)\>"
color red "\<(DESTDIR|PREFIX|prefix|sysconfdir|datadir|libdir|includedir|mandir|infodir)\>"
## Trailing whitespace
color ,green "[[:space:]]+$"

9
po.nanorc Normal file
View File

@ -0,0 +1,9 @@
syntax "PO" "\.pot?$"
comment "#"
color cyan "\<(msgid|msgstr)\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

View File

@ -1,6 +1,8 @@
## Here is an example for POV-Ray.
##
syntax "pov" "\.(pov|POV|povray|POVRAY)$"
syntax "POV" "\.(pov|POV|povray|POVRAY)$"
comment "//"
color brightcyan "^[[:space:]]*#[[:space:]]*(declare)"
color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>"
color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>"
@ -11,5 +13,5 @@ color brightred "\<(fog|object|camera)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color brightmagenta "\<(union|group|subgroup)\>"
## Comment highlighting
color brightblue "//.*"
color brightblue start="/\*" end="\*/"
color brightblue "^\s*//.*"
color brightblue start="^\s*/\*" end="\*/"

34
powershell.nanorc Normal file

File diff suppressed because one or more lines are too long

27
privoxy.nanorc Normal file
View File

@ -0,0 +1,27 @@
syntax "Privoxy-config" "privoxy/config$"
color cyan "(accept-intercepted-requests|actionsfile|admin-address|allow-cgi-request-crunching|buffer-limit|compression-level|confdir|connection-sharing|debug|default-server-timeout|deny-access|enable-compression|enable-edit-actions|enable-remote-http-toggle|enable-remote-toggle|enforce-blocks|filterfile|forward|forwarded-connect-retries|forward-socks4|forward-socks4a|forward-socks5|handle-as-empty-doc-returns-ok|hostname|keep-alive-timeout|listen-address|logdir|logfile|max-client-connections|permit-access|proxy-info-url|single-threaded|socket-timeout|split-large-forms|templdir|toggle|tolerate-pipelining|trustfile|trust-info-url|user-manual)[[:space:]]"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"
syntax "Privoxy-action" "\.action$"
color brightred "[{[:space:]]\-block([[:space:]{}]|$)"
color brightgreen "[{[:space:]]\+block([[:space:]{}]|$)"
color brightred "-(add-header|change-x-forwarded-for|client-header-filter|client-header-tagger|content-type-overwrite|crunch-client-header|crunch-if-none-match|crunch-incoming-cookies|crunch-outgoing-cookies|crunch-server-header|deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document|handle-as-image|hide-accept-language|hide-content-disposition|hide-from-header|hide-if-modified-since|hide-referrer|hide-user-agent|limit-connect|overwrite-last-modified|prevent-compression|redirect|server-header-filter|server-header-tagger|session-cookies-only|set-image-blocker)"
color brightgreen "\+(add-header|change-x-forwarded-for|client-header-filter|client-header-tagger|content-type-overwrite|crunch-client-header|crunch-if-none-match|crunch-incoming-cookies|crunch-outgoing-cookies|crunch-server-header|deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document|handle-as-image|hide-accept-language|hide-content-disposition|hide-from-header|hide-if-modified-since|hide-referrer|hide-user-agent|limit-connect|overwrite-last-modified|prevent-compression|redirect|server-header-filter|server-header-tagger|session-cookies-only|set-image-blocker)"
color magenta "\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"
syntax "Privoxy-filter" "\.filter$"
color cyan "^(FILTER|CLIENT-HEADER-FILTER|CLIENT-HEADER-TAGGER|SERVER-HEADER-FILTER|SERVER-HEADER-TAGGER): [a-z-]+"
color brightblue "^(FILTER|CLIENT-HEADER-FILTER|CLIENT-HEADER-TAGGER|SERVER-HEADER-FILTER|SERVER-HEADER-TAGGER):"
color magenta "\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

35
prolog.nanorc Normal file
View File

@ -0,0 +1,35 @@
## Here is a prolog example.
syntax "prolog" "\.pl"
comment "%"
# Reset everything
color normal ".*"
# Integers and floats
color yellow "(^| |=)[0-9]+\.?[0-9]*"
# Variables
color red "(^|[[:blank:]]|\(|,)[A-Z]+"
color red "(^|[[:blank:]]|\(|,)_[0-9a-zA-Z_]+($|[[:blank:]]|,|\))"
# Anonymous variable '_'
color yellow "(^|[[:blank:]]|\(|,)_($|[[:blank:]]|,|\))"
# Functions
color cyan "(^|[[:blank:]])\w+\("
color normal "\(|\)|\[|\]|,|=|\\="
# Atoms
color green start="\"" end="\""
color green start="'" end="'"
# Comments
color white "(^|[[:blank:]])%.*$"
color white start="^\s*/\*" end="\*/"
# Reminders
color black,yellow "(BUG|DEBUG|FIXME|IDEA|NOTE|REVIEW|TEMP|TODO|WARNING|XXX)"
# Spaces in front of tabs
color ,red " + +"

6
properties.nanorc Normal file
View File

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

45
pug.nanorc Normal file
View File

@ -0,0 +1,45 @@
syntax "Pug" "\.pug$"
# Elements
color yellow "^\s*([a-z0-9]+)"
# Main elements
color red "^\s*(html|head|body)"
# Includes
icolor magenta "^\s*(include)"
# Variables
color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)"
icolor magenta "^\s*-\s(var)$" "^\s*-\s(var)\s"
# Cases
color brightblue "^\s*(case)\s(.*)"
color cyan "^\s*(when)\s(.*)"
icolor magenta "^\s*(case|when|default)$" "^\s*(case|when|default)\s"
color brightred "^\s*-\s(break)$" "^\s*-\s(break)\s"
# Conditionals
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
# For loops
icolor magenta "^\s*-\s(for)"
# Each
icolor magenta "^\s*(each)$" "^\s*(each)\s"
# Parenthesis content
color blue start="\(" end="\)"
# Strings
color cyan "('[^']*')|(\"[^\"]*\")"
# Parenthesis, commas, equals
icolor green "\(" "\)" "\," "\="
# Comments, dashes and spaces
color blue "\s+(//.*)"
color blue start="^\s*/\*" end="\*/"
color white "^\s*(\-)"
color ,green "[[:space:]]+$"
# Unbuffered comments
color brightblue "\s+(//-.*)"
# HTML-style conditional comments
color brightmagenta start="<!" end="!>"
color brightmagenta "<!\[endif\]-->"
# HTML-style elements
color yellow "<([^!].*)>"
# Pipes
color yellow,magenta "\|"
# Doctype
color brightblack "^\s*(doctype)(.*)"
# Links
icolor brightgreen "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" "_blank"

38
puppet.nanorc Normal file
View File

@ -0,0 +1,38 @@
## Nano syntax highlighting for Puppet.
##
syntax "Puppet" "\.pp$"
#This goes first, so the normal builtins will override in some classes
## Paramerers
color brightwhite "^[[:space:]]([a-z][a-z0-9_]+)"
color brightgreen "\$[a-z:][a-z0-9_:]+"
## List of built in types, also catches defines
color yellow "\<(augeas|computer|cron|exec|file|filebucket|group|host|interface|k5login|macauthorization|mailalias|maillist|mcx|mount|nagios_command|nagios_contact|nagios_contactgroup|nagios_host|nagios_hostdependency|nagios_hostescalation|nagios_hostextinfo|nagios_hostgroup|nagios_service|nagios_servicedependency|nagios_serviceescalation|nagios_serviceextinfo|nagios_servicegroup|nagios_timeperiod|notify|package|resources|router|schedule|scheduled_task|selboolean|selmodule|service|ssh_authorized_key|sshkey|stage|tidy|user|vlan|yumrepo|zfs|zone|zpool|anchor)\>"
color yellow "\<(class|define|if|else|undef|inherits)\>"
color red "(=|-|~|>)"
## Constants
color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
## Ruby "symbols"
color magenta "([ ]|^):[0-9A-Z_]+\>"
## Regular expressions
color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
## Shell command expansion is in `backticks` or like %x{this}. These are
## "double-quotish" (to use a perlism).
color brightblue "`[^`]*`" "%x\{[^}]*\}"
## Strings, double-quoted
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
## Expression substitution. These go inside double-quoted strings,
## "like ${this}".
color brightgreen "\$\{[^}]*\}"
## Strings, single-quoted
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
## Comments
color cyan "#[^{].*$" "#$"
color brightcyan "##[^{].*$" "##$"
## Some common markers
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
## Trailing spaces
color ,green "[[:space:]]+$"

View File

@ -1,24 +1,56 @@
## Here is an example for Python.
##
## Python syntax highlighting rules for Nano
syntax "python" "\.py$"
icolor brightred "def [0-9A-Z_]+"
header "^#!.*/(env +)?python[-0-9._]*( |$)"
magic "Python script"
comment "#"
linter pyflakes
## built-in objects
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|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__|__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
color brightcyan "\<(NoneType|TypeType|IntType|LongType|FloatType|ComplexType|StringType|UnicodeType|BufferType|TupleType|ListType|DictType|FunctionType|LambdaType|CodeType|ClassType|UnboundMethodType|InstanceType|MethodType|BuiltinFunctionType|BuiltinMethodType|ModuleType|FileType|XRangeType|TracebackType|FrameType|SliceType|EllipsisType)\>"
## definitions
color brightcyan "def [a-zA-Z_0-9]+"
## keywords
color brightblue "\<(and|as|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|raise|return|try|with|while|yield)\>"
#Keyword Color
color green "\<(and|as|assert|class|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|print|raise|try|while|with)\>"
color brightmagenta "\<(continue|break|return)\>"
## decorators
color brightgreen "@.*[(]"
#Operator Color
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
## operators
color magenta "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&"
#Parenthetical Color
## parentheses
color magenta "[(){}]" "\[" "\]"
#String Color
color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''"
## numbers
icolor brightyellow "\b(([1-9][0-9]+)|0+)\.[0-9]+j?\b" "\b([1-9][0-9]*[Lj]?)\b" "\b0o?[0-7]*L?\b" "\b0x[1-9a-f][0-9a-f]*L?\b" "\b0b[01]+\b"
#Comment Color
color brightblue "#.*$"
## strings
color yellow "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
color yellow "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
## comments
color green "^#.*|[[:space:]]#.*$"
## block comments
color yellow start=""""[^"]" end=""""" start="'''[^']" end="'''"
## trailing spaces
color ,green "[[:space:]]+$"
## reminders
color brightwhite,yellow "(FIXME|TODO|XXX)"

View File

@ -1,5 +1,5 @@
## For reST
syntax "rest" "\.rest$" "\.rst$"
syntax "RST" "\.rest$" "\.rst$"
# italics
#color magenta "\*[^*]\*"
# bold

112
readme.md Normal file
View File

@ -0,0 +1,112 @@
# Improved Nano Syntax Highlighting Files
This repository holds ``{lang}.nanorc`` files that have improved definitions of syntax highlighting for various languages.
## Installation
There are three ways to install this repo.
### 1. Automatic installer
Copy the following code to download and run the installer script:
```sh
curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh
```
If your machine doesn't have `curl` command, use this code:
```sh
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.
The ` install.sh` script may be run with `-l` or `--lite` to insert the included syntax definitions from this package with *lower* precedence than the ones provided by the standard package.
### 2. Package managers
The follow table lists all systems with this package published.
Feel free to add your official package manager.
> Systems that are based in others' package managers or repositories are compatible. For example: `pacman` based systems are compatible with `Arch Linux`.
| System | Command |
| ---------- | ---------------------------------------- |
| Arch Linux | `pacman -S nano-syntax-highlighting` |
### 3. Clone repo (copy the files)
The files should be placed inside of the `~/.nano/` directory.
You can put the files in another directory inside the correct `.nano` folder.
For example: `~/.nano/nanorc/`.
For readability will use `$install_path` for the path of your choose (in *system wide* the path is always `/usr/share/nano-syntax-highlighting/`).
For user, only run:
`git clone git@github.com:scopatz/nanorc.git $install_path` or
`git clone https://github.com/scopatz/nanorc.git $install_path`
For system wide, run:
`sudo git clone https://github.com/scopatz/nanorc.git $install_path`
## Configuration
After installation, you need to inform `nano` to used the new highlight files.
The configuration file is located at `~/.nanorc`, for users, and at `/etc/nanorc`, for system wide.
If this file doesn't exist, create a new one.
Again there are three ways:
### 1. Include all
Append the content of the folder in one line, with wildcard:
`echo "include $install_path/*.nanorc" >> ~/.nanorc` or
`echo "include $install_path/*.nanorc" >> /etc/nanorc`
### 2. Include/append our `nanorc` file
Simply run:
`cat $install_path/nanorc >> ~/.nanorc` or
`cat $install_path/nanorc >> /etc/nanorc`
### 3. One by one
Add your preferable languages one by one into the file. For example:
```
## C/C++
include "~/.nano/c.nanorc"
```
## Tricks & Tweaks
### MacOS
`\<` and `\>` are regular character escapes on MacOS.
The bug is fixed in Nano, but this might be a problem if you are using an older version
If this is the case, replace them respectively with `[[:<:]]` and `[[:>:]]`.
This is reported in [Issue 52](https://github.com/scopatz/nanorc/issues/52).
### Why not include the original files?
Good question! It's due to the way that nano reads the files, the regex instructions should be in a _specific order_ which is evident in some nanorc files.
And if we use the `include` or `extendsyntax` commands, the colors or other things may not work as expected.
The best way to make changes is by copying and editing the original files.
Please see this [issue](https://savannah.gnu.org/bugs/index.php?5698).
But if some original nanorc file needs an update, feel free to [patch it](https://savannah.gnu.org/patch/?func=additem&group=nano)!
### My shortcut is not working!
Please see this [issue](https://savannah.gnu.org/bugs/?56994).
## Acknowledgements
Some of these files are derived from the original [Nano](https://www.nano-editor.org) editor [repo](https://git.savannah.gnu.org/cgit/nano.git)

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*#.*"

Some files were not shown because too many files have changed in this diff Show More