Compare commits

..

147 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
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
74 changed files with 1008 additions and 96 deletions

View File

@ -252,9 +252,11 @@
github: hawk93
- name: Harsh Shandilya
email: msfjarvis@gmail.com
num_commits: 1
num_commits: 13
first_commit: 2019-09-19 15:52:44
github: msfjarvis
alternate_emails:
- me@msfjarvis.dev
- name: DesertPunk
email: 38014530+DesertPunk@users.noreply.github.com
num_commits: 2
@ -335,7 +337,7 @@
github: TJProgrammer
- name: Anthony Scopatz
email: scopatz@gmail.com
num_commits: 47
num_commits: 52
first_commit: 2010-07-28 18:15:43
github: astronautlevel
- name: PhilipRoman
@ -552,3 +554,124 @@
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

View File

@ -12,9 +12,13 @@
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>
@ -24,6 +28,8 @@ 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>
@ -34,6 +40,8 @@ Huub de Beer <Huub@heerdebeer.org>
Mikael O. Bonnier <mikael.bonnier@gmail.com>
Jeppe Fihl-Pearson <jeppe@tenzer.dk>
Ondřej Ešler <ondrej.esler@intraworlds.com>
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>
@ -52,6 +60,12 @@ 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>
@ -84,7 +98,6 @@ Luis Lobo Borobia <luislobo@gmail.com>
Lephend <MLephend@sms1.local>
maritaria <bramkamies@gmail.com>
Alessandro Luppi <luppi.alle@gmail.com>
Harsh Shandilya <msfjarvis@gmail.com>
floomby <caboodlennm@gmail.com>
esler <esler@users.noreply.github.com>
Karl <karlding@users.noreply.github.com>
@ -118,3 +131,14 @@ 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>

View File

@ -4,9 +4,13 @@ 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
@ -16,6 +20,8 @@ Authors are sorted by number of commits.
* nl6720
* Thomas Rosenau
* Matthew Cox
* Ritiek Malhotra
* hdquemada
* Birger Jarl
* divinity76
* CirKu17
@ -26,6 +32,8 @@ Authors are sorted by number of commits.
* Mikael O. Bonnier
* Jeppe Fihl-Pearson
* Ondřej Ešler
* davidhcefx
* yzzyx
* Dan Kaplun
* Aryan Ebrahimpour
* Paduct
@ -44,6 +52,12 @@ Authors are sorted by number of commits.
* 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
@ -76,7 +90,6 @@ Authors are sorted by number of commits.
* Lephend
* maritaria
* Alessandro Luppi
* Harsh Shandilya
* floomby
* esler
* Karl
@ -110,3 +123,14 @@ Authors are sorted by number of commits.
* John S Long
* Ghost-NULL
* PN Wu (小平)
* CryptoDragonLady
* Joerg Stoever
* emidiostani
* Justin P
* czechuuu
* msuska
* Exonorid
* Aiden Gall
* Rashil Gandhi
* Serhiy Zahoriya
* Bart Hanssens

View File

@ -109,7 +109,7 @@ color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
## Comments
color brightblue "//.*"
color brightblue "^\s*//.*"
color brightblue start="/\*" end="\*/"
## Trailing whitespace

View File

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

View File

@ -1,6 +1,9 @@
## Here is an example for assembler.
##
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:]]+$"

View File

@ -1,5 +1,7 @@
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)\>"

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,7 +1,9 @@
## Here is an example for C/C++.
##
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$"
color brightred "\<[A-Z_][0-9A-Z_]+\>"
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)\>"
@ -19,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 "[(){}]" "\[" "\]"
@ -34,9 +36,17 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*""
## This string is VERY resource intensive!
#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
## printf-family format specifiers
color yellow "%(\#|(0-+))?(hh|h|l|ll|q|L|j|z|Z|t)?[A-Za-z]" "%%"
## Comment highlighting
color brightblue "//.*"
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:]]+$"

View File

@ -1,6 +1,7 @@
## 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)\>"

22
creole.nanorc Normal file
View File

@ -0,0 +1,22 @@
syntax "Creole" "\.creole$"
# Headers
color magenta "^=.*=$"
# Lists
color green "^[#*]+\s.*"
# Links and images
color cyan start="\[\[" end="\]\]"
color cyan start="\{\{" end="\}\}"
# Emphasis
color yellow "//.*//"
color brightyellow "\*\*.*\*\*"
# Pre and tables
color red start="\{\{\{" end="\}\}\}"
color red "\|"
color brightred "\|="
color ,red "\s+$"

View File

@ -20,7 +20,7 @@ color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\([btnfr]|'|\"|\\)"
color magenta "\\u[A-Fa-f0-9]{4}"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/"
color brightblack start="^\s*/\*" end="\*/"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

View File

@ -1,7 +1,7 @@
## Here is an example for css files.
##
syntax "CSS" "\.(css|scss)$"
syntax "CSS" "\.(css|scss|less)$"
color brightred "."
color brightyellow start="\{" end="\}"
color brightwhite start=":" end="[;^\{]"

View File

@ -5,4 +5,4 @@ color magenta "\<(arrowhead|arrowsize|arrowtail|bgcolor|center|color|constraint|
color red "=|->|--"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/"
color brightblack start="^\s*/\*" end="\*/"

View File

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

View File

@ -1,6 +1,7 @@
## 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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"

View File

@ -1,7 +1,7 @@
## Here is an example for Fortran 90/95
syntax "Fortran" "\.([Ff]|[Ff]90|[Ff]95|[Ff][Oo][Rr])$"
comment "!"
#color red "\<[A-Z_]a[0-9A-Z_]+\>"
color red "\<[0-9]+\>"

View File

@ -26,7 +26,7 @@ color yellow ""(\\.|[^"])*""
# Comments
color brightblack "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/"
color brightblack start="^\s*/\*" end="\*/"
color brightblack start="\(\*" end="\*\)"
color brightwhite,cyan "TODO:?"

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

View File

@ -44,7 +44,7 @@ color blue start=""""" end="""""
color yellow "(^|[[:space:]])//.*"
# Block comment.
color yellow start="/\*" end="\*/"
color yellow start="^\s*/\*" end="\*/"
# Trailing whitespace.
color ,green "[[:space:]]+$"

View File

@ -1,6 +1,8 @@
## Here is an example for ebuilds/eclasses
##
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

View File

@ -9,7 +9,7 @@ color brightcyan "\<(true|false)\>"
color red "[-+/*=<>?:!~%&|^]"
color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/"
color brightblack start="^\s*/\*" end="\*/"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

View File

@ -1,4 +1,5 @@
syntax "GO" "\.go$"
comment "//"
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
color brightblue "\<(append|cap|close|complex|copy|delete|imag|len)\>"
@ -16,7 +17,7 @@ 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="/\*" end="\*/"
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 "#.*"

View File

@ -1,8 +1,10 @@
## Here is an example for groff.
##
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 "^\.\\".*$"

View File

@ -1,9 +1,8 @@
syntax "Haskell" "\.hs$"
syntax "haskell" "\.hs$"
comment "--"
## Keywords
color red "[ ](as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix|infixl|infixr|instance|let|in|mdo|module|newtype|qualified|type|where)[ ]"
color red "(^data|^foreign|^import|^infix|^infixl|^infixr|^instance|^module|^newtype|^type)[ ]"
color red "[ ](as$|case$|of$|class$|data$|default$|deriving$|do$|forall$|foreign$|hiding$|if$|then$|else$|import$|infix$|infixl$|infixr$|instance$|let$|in$|mdo$|module$|newtype$|qualified$|type$|where$)"
color red "\<(as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix|infixl|infixr|instance|let|in|mdo|module|newtype|qualified|type|where)\>"
## Various symbols
color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
@ -12,17 +11,19 @@ color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
color magenta "(==|/=|&&|\|\||<|>|<=|>=)"
## Various symbols
color cyan "(->|<-)"
color cyan "(->|<-|=>)"
color magenta "\.|\$"
## Data constructors
color magenta "(True|False|Nothing|Just|Left|Right|LT|EQ|GT)"
color magenta "\<(True|False|Nothing|Just|Left|Right|LT|EQ|GT)\>"
## Data classes
color magenta "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
color magenta "\<(Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)\>"
## Strings
color yellow ""[^\"]*""
color yellow ""([^\"]|\\.)*""
## Chars
color brightyellow "'([^\']|\\.)'"
## Comments
color green "--.*"

View File

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

View File

@ -1,6 +1,6 @@
## HTML syntax highlighting rules for Nano
syntax "HTML" "\.html?(.j2)?$"
syntax "HTML" "\.html?(.j2)?(.twig)?$"
magic "HTML document"
comment "<!--|-->"
@ -28,7 +28,7 @@ color yellow ""(\\.|[^"])*""
color red "&#?[[:alnum:]]*;"
## Template strings (not in the HTML spec, but very commonly used)
color magenta "\{[^\}]*\}"
color magenta "\{[^\}]*\}\}?"
color brightgreen "[[:space:]]((end)?if|(end)?for|in|not|(end)?block)[[:space:]]"
## Comments

View File

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

View File

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

View File

@ -1,6 +1,9 @@
## Here is an example for 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)\>"
@ -8,6 +11,12 @@ 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:]]+$"

View File

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

View File

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

View File

@ -1,5 +1,7 @@
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\>"

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

View File

@ -13,6 +13,10 @@
# Automatically use for '.lua' files
syntax "Lua" ".*\.lua$"
magic "Lua script"
comment "--"
linter luacheck --no-color
# General
color brightwhite ".+"

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

View File

@ -1,5 +1,7 @@
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)\>"

View File

@ -1,6 +1,9 @@
## Here is an example for manpages.
##
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]?).*$"

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

1
nanorc
View File

@ -40,6 +40,7 @@ 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"

View File

@ -1,12 +1,41 @@
## Here is an example for nanorc files.
##
syntax "Nanorc" "\.?nanorc$"
comment "#"
## Possible errors and parameters
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|normal)?(,(white|black|red|blue|green|yellow|magenta|cyan|normal))?\>"
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)\>"
@ -15,3 +44,6 @@ icolor white ""(\\.|[^"])*""
## Comments
icolor brightblue "^[[:space:]]*#.*$"
icolor cyan "^[[:space:]]*##.*$"
## Trailing whitespace
icolor ,green "[[:space:]]+$"

View File

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

View File

@ -1,4 +1,9 @@
## Syntax highlighting for OCaml.
syntax "OCaml" "\.mli?$"
magic "OCaml"
comment "(*|*)"
#uid
color red "\<[A-Z][0-9a-z_]{2,}\>"
#declarations

View File

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

View File

@ -2,6 +2,8 @@
##
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)\>"

View File

@ -1,40 +1,61 @@
## PHP Syntax Highlighting
syntax "PHP" "\.php[2345s~]?$"
syntax "PHP" "\.php[2345s~]?$|\.module$"
magic "PHP script"
comment "//"
color white start="<\?(php|=)?" end="\?>"
# Functions
color brightblue "([a-zA-Z0-9_-]*)\("
# Constructs
color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)"
color green "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}"
color brightblue "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}"
color brightblue "[a-zA-Z0-9_]+:"
# Variables
color white "\$[a-zA-Z_0-9$]*|[=!<>]"
color white "\->[a-zA-Z_0-9$]*|[=!<>]"
color green "\$[a-zA-Z_0-9$]*|[=!<>]"
color green "\->[a-zA-Z_0-9$]*|[=!<>]"
# Functions
color brightblue "([a-zA-Z0-9_-]*)\("
# Special values
color brightmagenta "[^a-z0-9_-]{1}(true|false|null|TRUE|FALSE|NULL)$"
color brightmagenta "[^a-z0-9_-]{1}(true|false|null|TRUE|FALSE|NULL)[^a-z0-9_-]{1}"
# Special Characters
color yellow "[.,{}();]"
color yellow "\["
color yellow "\]"
color yellow "[=][^>]"
color cyan "\["
color cyan "\]"
# Numbers
color magenta "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*"
color magenta "0x[0-9a-zA-Z]*"
# Special Variables
color brightblue "(\$this|parent::|self::|\$this->)"
color magenta ";"
# Comparison operators
color yellow "(<|>)"
# Assignment operator
color brightblue "="
# Bitwise Operations
color magenta "(\;|\||\^){1}"
color magenta "(&|\||\^)"
color magenta "(<<|>>)"
# Comparison operators
color yellow "(==|===|!=|<>|!==|<=|>=|<=>)"
# Logical Operators
color yellow "( and | or | xor |!|&&|\|\|)"
# And/Or/SRO/etc
color green "(\;\;|\|\||::|=>|->)"
# Online Comments
color brightyellow "(#.*|//.*)$"
# STRINGS!
color red "('[^']*')|(\"[^\"]*\")"
color cyan "(\;\;|\|\||::|=>|->)"
# Double quoted STRINGS!
color red "(\"[^\"]*\")"
# Heredoc (typically ends with a semicolon).
color red start="<<<['\"]?[A-Z][A-Z0-9_]*['\"]?" end="^[A-Z][A-Z0-9_]*;"
# Inline Variables
color white "\{\$[^}]*\}"
# Single quoted string
color red "('[^']*')"
# Online Comments
color brightyellow "^(#.*|//.*)$"
color brightyellow "[ | ](#.*|//.*)$"
# PHP Tags
color red "(<\?(php)?|\?>)"
# General HTML
color red start="\?>" end="<\?(php|=)?"
# trailing whitespace
color ,green "[^[:space:]]{1}[[:space:]]+$"
color ,green "[[:space:]]+$"
# multi-line comments
color brightyellow start="/\*" end="\*/"
# Nowdoc
color red start="<<<'[A-Z][A-Z0-9_]*'" end="^[A-Z][A-Z0-9_]*;"

View File

@ -1,4 +1,5 @@
syntax "PO" "\.pot?$"
comment "#"
color cyan "\<(msgid|msgstr)\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"

View File

@ -1,6 +1,8 @@
## Here is an example for POV-Ray.
##
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

View File

@ -1,6 +1,6 @@
## Here is a prolog example.
syntax prolog "\.pl"
syntax "prolog" "\.pl"
comment "%"
# Reset everything
@ -26,7 +26,7 @@ color green start="'" end="'"
# Comments
color white "(^|[[:blank:]])%.*$"
color white start="/\*" end="\*/"
color white start="^\s*/\*" end="\*/"
# Reminders
color black,yellow "(BUG|DEBUG|FIXME|IDEA|NOTE|REVIEW|TEMP|TODO|WARNING|XXX)"

6
properties.nanorc Normal file
View File

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

View File

@ -27,7 +27,7 @@ color cyan "('[^']*')|(\"[^\"]*\")"
icolor green "\(" "\)" "\," "\="
# Comments, dashes and spaces
color blue "\s+(//.*)"
color blue start="/\*" end="\*/"
color blue start="^\s*/\*" end="\*/"
color white "^\s*(\-)"
color ,green "[[:space:]]+$"
# Unbuffered comments

View File

@ -3,17 +3,20 @@
syntax "python" "\.py$"
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)\>"
color cyan "\<(abs|append|apply|buffer|callable|chr|clear|close|closed|cmp|coerce|compile|complex|conjugate|copy|count|delattr|dir|divmod|eval|execfile|exec|extend|fileno|filter|float|flush|get|getattr|globals|has_key|hasattr|hash|hex|id|index|input|insert|int|intern|isatty|isinstance|issubclass|items|keys|len|list|locals|long|map|max|min|mode|name|oct|open|ord|pop|pow|print|range|raw_input|read|readline|readlines|reduce|reload|remove|repr|reverse|round|seek|setattr|slice|softspace|sort|str|tell|truncate|tuple|type|unichr|unicode|update|values|vars|write|writelines|xrange|zip|bool)\>"
## built-in functions that were previously keywords
color brightblue "\<(print|exec)\>([[:space:]]|$)"
## special method names
color cyan "\<(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|__concat__|__contains__|__del__|__delattr__|__delitem__|__delslice__|__div__|__divmod__|__float__|__getattr__|__getitem__|__getslice__|__hash__|__hex__|__init__|__int__|__inv__|__invert__|__len__|__long__|__lshift__|__mod__|__mul__|__neg__|__nonzero__|__oct__|__or__|__pos__|__pow__|__radd__|__rand__|__rcmp__|__rdiv__|__rdivmod__|__repeat__|__repr__|__rlshift__|__rmod__|__rmul__|__ror__|__rpow__|__rrshift__|__rshift__|__rsub__|__rxor__|__setattr__|__setitem__|__setslice__|__str__|__sub__|__xor__)\>"
color cyan "\<(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|__concat__|__contains__|__del__|__delattr__|__delitem__|__delslice__|__div__|__divmod__|__float__|__getattr__|__getitem__|__getslice__|__hash__|__hex__|__init__|__int__|__inv__|__invert__|__len__|__long__|__lshift__|__mod__|__mul__|__neg__|__nonzero__|__oct__|__or__|__pos__|__pow__|__radd__|__rand__|__rcmp__|__rdiv__|__rdivmod__|__repeat__|__repr__|__rlshift__|__rmod__|__rmul__|__ror__|__rpow__|__rrshift__|__rshift__|__rsub__|__rxor__|__setattr__|__setitem__|__setslice__|__str__|__sub__|__xor__|__bool__)\>"
## exception classes
color cyan "\<(Exception|StandardError|ArithmeticError|LookupError|EnvironmentError|AssertionError|AttributeError|EOFError|FloatingPointError|IOError|ImportError|IndexError|KeyError|KeyboardInterrupt|MemoryError|NameError|NotImplementedError|OSError|OverflowError|RuntimeError|SyntaxError|SystemError|SystemExit|TypeError|UnboundLocalError|UnicodeError|ValueError|WindowsError|ZeroDivisionError)\>"
## types

View File

@ -20,6 +20,8 @@ If your machine doesn't have `curl` command, use this code:
wget https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh -O- | sh
```
This automatically unpacks all the `.nanorc` files to `~/.nano`.
#### Note
Some syntax definitions which exist in Nano upstream may be preferable to the ones provided by this package.
@ -28,13 +30,13 @@ The ` install.sh` script may be run with `-l` or `--lite` to insert the included
### 2. Package managers
The follow table lists all systems with this package published.
Fell free to add your official package manager.
> Systems that are based in others' package managers or repositories are compatible. For example: `pacman/aur` based systems are compatible with `Arch Linux`.
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 | `aurman -Ss nano-syntax-highlight` |
| | `aurman -S nano-syntax-highlighting-git` |
| Arch Linux | `pacman -S nano-syntax-highlighting` |
### 3. Clone repo (copy the files)
@ -63,7 +65,7 @@ Again there are three ways:
### 1. Include all
Append the content of the folder in one line, with wildcard::
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`
@ -77,7 +79,7 @@ Simply run:
### 3. One by one
Add your preferable languages one by onento the file. For example:
Add your preferable languages one by one into the file. For example:
```
## C/C++
@ -95,10 +97,9 @@ This is reported in [Issue 52](https://github.com/scopatz/nanorc/issues/52).
### Why not include the original files?
It is a good question, but the way that nano reads the files matters.
In other words, the regex instructions should be in a _specific order_ (you can see that in some nanorc files).
So, if we `include` or `extendsyntax` (yes, there is also this command) the colors or other things won't be work well.
The best way to do is copying and editing the original files (if it is needed).
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)!

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

View File

@ -2,6 +2,9 @@
##
syntax "Ruby" "\.rb$" "Gemfile" "config.ru" "Rakefile" "Capfile" "Vagrantfile"
header "^#!.*/(env +)?ruby( |$)"
magic "Ruby script"
linter ruby -w -c
comment "#"
## Asciibetical list of reserved words
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)\>"

View File

@ -2,7 +2,10 @@
# Copyright 2015 The Rust Project Developers.
#
# NOTE: Rules are applied in order: later rules re-colorize matching text.
syntax "Rust" "\.rs"
comment "//"
# function definition
color magenta "fn [a-z0-9_]+"
@ -26,8 +29,8 @@ color green start="\".*\\$" end=".*\""
color green start="r#+\"" end="\"#+"
# Comments
color blue "//.*"
color blue start="/\*" end="\*/"
color blue "^\s*//.*"
color blue start="^\s*/\*" end="\*/"
# Attributes
color magenta start="#!\[" end="\]"

View File

@ -6,7 +6,7 @@ color red "\<(match|val|var|break|case|catch|continue|default|do|else|finally|fo
color cyan "\<(def|object|case|trait|lazy|implicit|abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile|sealed)\>"
color red ""[^"]*""
color yellow "\<(true|false|null)\>"
color blue "//.*"
color blue start="/\*" end="\*/"
color blue "^\s*//.*"
color blue start="^\s*/\*" end="\*/"
color brightblue start="/\*\*" end="\*/"
color ,green "[[:space:]]+$"

View File

@ -1,7 +1,12 @@
## Here is an example for Bourne shell scripts.
##
syntax "SH" "\.sh$" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_login" "\.bash_logout" "\.bash_profile" "bash_profile" "\.profile" "revise\..+$"
header "^#!.*/(env +)?(ba)?sh( |$)"
syntax "SH" "\.sh$" "\.ash" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_login" "\.bash_logout" "\.bash_profile" "bash_profile" "\.profile" "revise\..+$"
header "^#!.*/(env +)?(ba|da|a)?sh( |$)"
magic "(POSIX|Bourne-Again) shell script.*text"
comment "#"
linter dash -n
## keywords:
color green "\<(case|do|done|elif|else|esac|fi|for|function|if|in|select|then|time|until|while)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"

187
sieve.nanorc Normal file
View File

@ -0,0 +1,187 @@
#syntax highlighting for the Sieve email filtering language
#based on:
# RFC's { 3894,5173,5228,5229,5230,5231,5232,5233
# 5235,5260,5293,5435,5437,5463,5490,5703
# 6009,6131,6134,6558,6609,7352,8579,8580 }
# vnd.dovecot { debug,execute,report }
# Spec Drafts { IETF Sieve Regex,Martin Sieve Notify
# Melnikov Sieve IMAPFlags }
syntax Sieve "\.(siv|sieve)$"
#-----------------------------#
##control
#RFC 5228 (base spec)
icolor yellow "\<(stop|require)\>"
#RFC 5463 (ihave extension)
icolor yellow "\<(error)\>"
#RFC 6609 (include extension)
icolor yellow "\<(include)\>"
#-----------------------------#
##conditional
#RFC 5228 (base spec)
icolor brightgreen "\<(if|else|elsif)\>"
#RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure)
icolor brightgreen "\<(foreverypart)\>"
#-----------------------------#
##test modifiers
#RFC 5228 (base spec)
icolor brightred "\<(allof|anyof|true|false|not)\>"
#-----------------------------#
##tests
#RFC 5228 (base spec)
icolor brightcyan "\<(address|envelope|exists|header|size)\>"
#RFC 5173 (body extension)
icolor brightcyan "\<(body)\>"
#RFC 5183 (environment extension)
icolor brightcyan "\<(environment)\>"
#RFC 5232 (imap4flags extension)
icolor brightcyan "\<(hasflag)\>"
#RFC 5235 (spamtest and virustest extensions)
icolor brightcyan "\<(spamtest|virustest)\>"
#RFC 5260 (date and index extensions)
icolor brightcyan "\<(date|currentdate)\>"
#RFC 5437 (notification mechanism for xmpp)
icolor brightcyan "\<(notify_method_capability)\>"
#RFC 5463 (ihave extension)
icolor brightcyan "\<(ihave)\>"
#RFC 5490 (extensions for checking mailbox status and accessing mailbox metadata)
icolor brightcyan "\<(mailboxexists|metadata|metadataexists)\>"
icolor brightcyan "\<(servermetadata|servermetadataexists)\>"
#RFC 6134 (extension for externally stored lists)
icolor brightcyan "\<(valid_ext_list)\>"
#RFC 7352 (extension for detecting duplicate deliveries)
icolor brightcyan "\<(duplicate)\>"
#RFC 8579 (extension for delivering to special-use mailboxes)
icolor brightcyan "\<(specialuse_exists)\>"
#-----------------------------#
##comparators
#RFC 5228 (base spec)
icolor cyan "\s:(contains|is|matches|over|under)\>"
#-----------------------------#
##match-types
#RFC 5228 (base spec)
icolor green "\s:(localpart|domain|all)\>"
#RFC 5231 (relational extension)
icolor green "\s:(count|value)\>"
#RFC 5233 (subaddress extension)
icolor green "\s:(user|detail)\>"
#RFC 5235 (spamtest and virustest extensions)
icolor green "\s:(percent)\>"
#RFC 5260 (date and index extensions)
icolor green "\s:(zone|originalzone|index|last)\>"
#RFC 6134 (extension for externally stored lists)
icolor green "\s:(list)\>"
#Draft IETF Sieve Regex 01 (regular expression extension)
icolor green "\s:(regex|quoteregex)\>"
#-----------------------------#
##variables
#RFC 5229" (variables extension)
color red "\$\{.*\}"
#-----------------------------#
##actions
#RFC 5228 (base spec)
icolor brightblue "\<(keep|fileinto|discard|reject|redirect)\>"
#RFC 5229 (variables extension)
icolor brightblue "\<(set)\>"
#RFC 5230 (vacation extension)
icolor brightblue "\<(vacation)\>"
#RFC 5232 (imap4flags extension)
icolor brightblue "\<(setflag|addflag|removeflag)\>"
#RFC 5293 (editheader extension)
icolor brightblue "\<(addheader|deleteheader)\>"
#RFC 5429 (reject and ereject extensions)
icolor brightblue "\<(reject|ereject)\>"
#RFC 5435 (extension for notifications)
icolor brightblue "\<(notify)\>"
#RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure)
icolor brightblue "\<(break|replace|enclose|extracttext)\>"
#RFC 6558 (extension for converting messages before delivery)
icolor brightblue "\<(convert)\>"
#RFC 6609 (include extension)
icolor brightblue "\<(return)\>"
#vnd.dovecot.debug (extension for logging debug messages)
icolor brightblue "\<(debug_log)\>"
#vnd.dovecot.execute (extension for external programs)
icolor brightblue "\<(pipe|filter|execute)\>"
#vnd.dovecot.report (extension for sending abuse feedback reports)
icolor brightblue "\<(report)\>"
#Draft Martin Sieve Notify 01 (extension for providing instant notifications) [deprecated]
icolor brightblue "\<(denotify)\>"
#Draft Melnikov Sieve IMAPFlags 04 (imap flag extension) [deprecated]
icolor brightblue "\<(mark|unmark)\>"
#-----------------------------#
##modifiers, parameters, etc.
#RFC 5228 (base spec)
icolor magenta "\s:(comparator)\>"
#RFC 3894 (extension for copying without side effects)
icolor magenta "\s:(copy)\>"
#RFC 5173 (body extension)
icolor magenta "\s:(raw|content|text)\>"
#RFC 5229 (variables extension)
icolor magenta "\s:(length|quotewildcard)\>"
icolor magenta "\s:(upper|lower|upperfirst|lowerfirst)\>"
#RFC 5230 (vacation extension)
icolor magenta "\s:(days|subject|from|addresses|handle)\>"
#RFC 5232 (imap4flags extension)
icolor magenta "\s:(flags)\>"
#RFC 5435 (extension for notifications)
icolor magenta "\s:(from|importance|options|message)\>"
#RFC 5490 (extensions for checking mailbox status and accessing mailbox metadata)
icolor magenta "\s:(create)\>"
#RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure)
icolor magenta "\s:(name|mime|anychild|type|subtype)\>"
icolor magenta "\s:(contenttype|param|headers|first)\>"
#RFC 6009 (dsn and deliver-by extensions)
icolor magenta "\s:(notify|ret|bymode|bytrace)\>"
icolor magenta "\s:(bytimerelative|bytimeabsolute)\>"
#RFC 6131 (vacation extension seconds parameter)
icolor magenta "\s:(seconds)\>"
#RFC 6609 (include extension)
icolor magenta "\s:(once|optional|personal|global)\>"
#RFC 7352 (extension for detecting duplicate deliveries)
icolor magenta "\s:(header|uniqueid)\>"
#RFC 8579 (extension for delivering to special-use mailboxes)
icolor magenta "\s:(specialuse)\>"
#RFC 8580 (extension for file carbon copy)
icolor magenta "\s:(fcc)\>"
#vnd.dovecot.execute (extension for external programs)
icolor magenta "\s:(try|pipe|input|output)\>"
#Draft Martin Sieve Notify 01 (extension for providing instant notifications) [deprecated]
icolor magenta "\s:(method|id|low|normal|high)\>"
#Draft Melnikov Sieve IMAPFlags 04 (imap flag extension) [deprecated]
icolor magenta "\s:(globalflags)(_plus|_minus)?\>"
#-----------------------------#
##number (incl. proceeding K, M, or G)
icolor brightmagenta "\<[0-9]+[KMG]?\>"
#-----------------------------#
##comment
color blue "\#.*"
#-----------------------------#
##string
color brightyellow start="\"" end="\""
color brightyellow start="\/\*" end="\*\/"
icolor brightyellow start="text\:.*" end="^.$"

49
sparql.nanorc Normal file
View File

@ -0,0 +1,49 @@
## SPARQL 1.1 and SPARQL 1.1 UPDATE
#
syntax "SPARQL" ".*\.(rq|sparql)$"
icolor brightcyan "\<(ADD|AS|ASK)\>"
icolor brightcyan "\<(BIND|BY)\>"
icolor brightcyan "\<(CLEAR|CONSTRUCT|CREATE)\>"
icolor brightcyan "\<(DATA|DEFAULT|DELETE|DESCRIBE|DISTINCT|DROP)\>"
icolor brightcyan "\<(FILTER|FROM)\>"
icolor brightcyan "\<(GRAPH|GROUP)\>"
icolor brightcyan "\<(HAVING)\>"
icolor brightcyan "\<(INSERT)\>"
icolor brightcyan "\<(LIMIT|LOAD)\>"
icolor brightcyan "\<(MINUS|MOVE)\>"
icolor brightcyan "\<(NAMED|NOT)\>"
icolor brightcyan "\<(OFFSET|OPTIONAL|ORDER)\>"
icolor brightcyan "\<(PREFIX)\>"
icolor brightcyan "\<(REDUCED)\>"
icolor brightcyan "\<(SELECT|SERVICE|SILENT)\>"
icolor brightcyan "\<(TO)\>"
icolor brightcyan "\<(UPDATE|USING)\>"
icolor brightcyan "\<(VALUES)\>"
icolor brightcyan "\<(WHERE|WITH)\>"
# functions
icolor brightmagenta "\<(ABS|AVG)\>"
icolor brightmagenta "\<(BNODE|BOUND)\>"
icolor brightmagenta "\<(CEIL|COALESCE|CONCAT|CONTAINS|COUNT)\>"
icolor brightmagenta "\<(DATATYPE|DAY)\>"
icolor brightmagenta "\<(ENCODE_FOR_URI|EXISTS)\>"
icolor brightmagenta "\<(FLOOR)\>"
icolor brightmagenta "\<(GROUP_CONCAT)\>"
icolor brightmagenta "\<(HOURS)\>"
icolor brightmagenta "\<(IF|IN|IRI|ISBLANK|ISIRI|ISLITERAL|ISNUMERIC)\>"
icolor brightmagenta "\<(LANG|LANGMATCHES|LCASE)\>"
icolor brightmagenta "\<(MAX|MD5|MIN|MINUTES|MONTH)\>"
icolor brightmagenta "\<(NOW)\>"
icolor brightmagenta "\<(RAND|REGEX|REPLACE|ROUND)\>"
icolor brightmagenta "\<(SAMETERM|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRLANG|STRLEN|STRSTARTS|STRUUID|SUBSTR|SUM)\>"
icolor brightmagenta "\<(TIMEZONE|TZ)\>"
icolor brightmagenta "\<(UCASE|UUID)\>"
icolor brightmagenta "\<(YEAR)\>"
# variables, IRI
#
icolor cyan "\?\w+"
icolor brightgreen "<.+:[^ >]+>"
icolor green " \w+:"

View File

@ -55,8 +55,8 @@ color red ""[^"]*""
color white start="\\\(" end="\)"
# Comments
color green "//.*"
color brightgreen "///.*"
color green "^\s*//.*"
color brightgreen "^\s*///.*"
color green start="/\*\*" end="\*/"
color green "[/**]"

View File

@ -1,12 +1,12 @@
syntax "Systemd" "\.(service|socket)$"
syntax "Systemd" "\.(service|socket|timer)$"
header "^\[Unit\]$"
color cyan "^(Accept|After|Alias|AllowIsolate|Also|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateNetwork|PrivateTmp|PropagatesReloadTo|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)="
color brightblue "^\.include\>"
color cyan "^(Accept|After|Alias|AllowIsolate|Also|AmbientCapabilities|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateDevices|PrivateNetwork|PrivateTmp|PropagatesReloadTo|ProtectControlGroups|ProtectHome|ProtectKernelModules|ProtectKernelTunables|ProtectSystem|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RestrictAddressFamilies|RestrictNamespaces|RestrictRealtime|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallArchitectures|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)="
color green "^\.include\>"
color red "="
color brightmagenta "^\[(Unit|Install|Service|Socket)\]"
color brightyellow "\$MAINPID"
color brightcyan "\<(true|false)\>"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color brightblue "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

View File

@ -1,6 +1,9 @@
syntax "TCL" "\.tcl$"
header "^#!.*/(env +)?tclsh( |$)"
magic "Tcl(/Tk)? script"
comment "#"
## Standard Tcl [info commands]
color cyan "\<(after|append|array|auto_execok|auto_import|auto_load|auto_load_index|auto_qualify|binary|break|case|catch|cd|clock|close|concat|continue|else|encoding|eof|error|eval|exec|exit|expr|fblocked|fconfigure|fcopy|file|fileevent|flush|for|foreach|format|gets|glob|global|history|if|incr|info|interp|join|lappend|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|namespace|open|package|pid|puts|pwd|read|regexp|regsub|rename|return|scan|seek|set|socket|source|split|string|subst|switch|tclLog|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait|while)\>"
## Basic Tcl sub commands

View File

@ -1,6 +1,11 @@
## Here is a short example for TeX files.
##
syntax "TeX" "\.tex$" "bib" "\.bib$" "cls" "\.cls$"
magic "(La)?TeX document"
comment "%"
linter chktex -v0 -q -I
color yellow "\$(\\\$|[^$])*[^\\]\$"
color yellow "\$\$(\\\$|[^$])*[^\\]\$\$"
icolor green "\\.|\\[A-Z]*"

54
toml.nanorc Normal file
View File

@ -0,0 +1,54 @@
syntax "toml" "\.toml$"
comment "#"
# Booleans
color magenta "true|false"
# Numbers
color green "[+-]?[[:space:]]*[0-9]+(\.[0-9]+)?([Ee][+-]?[0-9]+)?"
color green "[0-9]+(_[0-9]+)*"
# Tables / unwrapped keys
color brightgreen "[a-zA-Z0-9_]*(\.[a-zA-Z0-9_]+)*"
# Invalid Table names
color ,red "^[[:space:]]*\[\]"
color ,red "^[[:space:]]*\[[a-zA-Z0-9_]\.\]"
color ,red "^[[:space:]]*\[.*\.\..*\]"
color ,red "^[[:space:]]*\[\..*?\]"
# Strings
color brightyellow ""(\.|[^"])*"" "'(\.|[^'])*'"
color yellow start="\"\"\"" end="\"\"\""
# Comments
color brightblue "#.*"
# Keyless value
color ,red "^[[:space:]]*=.*"
# Trailing whitespace
color ,green "[[:space:]]+$"
# MIT License
# Copyright (c) 2017 Uninteresting Account
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

View File

@ -1,9 +1,10 @@
syntax "typescript" "\.(ts)$"
header "^#!.*\/(env +)ts-node"
## Default
color white "^.+$"
## Decimal, cotal and hexadecimal numbers
## Decimal, octal and hexadecimal numbers
color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
## Floating point number with at least one digit before decimal point
@ -11,14 +12,18 @@ color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
## Keywords
color green "\<(abstract|boolean|break|byte|case|catch|set)\>"
color green "\<(as|abstract|asserts|boolean|break|byte|case|catch)\>"
color green "\<(class|const|continue|debugger|default|delete|readonly)\>"
color green "\<(do|else|enum|export|extends|finally|final|for)\>"
color green "\<(from|function|goto|if|implements|import|instanceof)\>"
color green "\<(var|interface|int|in|let|new|package|private)\>"
color green "\<(var|interface|int|in|is|infer|let|new|package|private)\>"
color green "\<(protected|public|return|static|super|switch)\>"
color green "\<(this|throw|try|typeof)\>"
color green "\<(this|throw|try|typeof|type)\>"
color green "\<(void|while|with|yield)\>"
color green "\<(async|await)\>"
color green "\<(set|get)\>"
color green "\<(module|namespace)\>"
color green "\<(declare)\>"
## Type specifiers
color red "\<(Array|Boolean|Date|Enumerator|Error|Function)\>"
@ -36,4 +41,7 @@ color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
## Comments
color magenta start="/\*" end="\*/"
color magenta "//.*$"
color magenta "^\s*//.*$"
## Trailing whitespace
color ,green "[[:space:]]+$"

1
twig.nanorc Symbolic link
View File

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

View File

@ -12,7 +12,7 @@ color blue "\<([0-9]+)\>"
color red "[-+/*=<>?:!~%&|]" "->"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/"
color brightblack start="^\s*/\*" end="\*/"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " + +| + +"

View File

@ -74,7 +74,7 @@ color brightyellow ""([^"]|\\")*"" "<[^[:blank:]=]*>"
###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
# Comments.
color brightblue "//.*"
color brightblue "^\s*//.*"
color brightblue start="/\*" end="\*/"
# Reminders.

View File

@ -1,7 +1,11 @@
## Here is an example for xml files.
##
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng)$"
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|vue|mei|musicxml)$"
header "<\?xml.*version=.*\?>"
magic "(XML|SGML) (sub)?document"
comment "<!--|-->"
color white "^.+$"
color green start="<" end=">"
color cyan "<[^> ]+"

View File

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

9
zig.nanorc Normal file
View File

@ -0,0 +1,9 @@
syntax "Zig" "\.zig$$"
color latte "\<(align|allowzero|and|anyframe|anytype|asm|async|await|break|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|noalias|nosuspend|or|orelse|packed|pub|resume|return|linksection|struct|suspend|switch|test|threadlocal|try|union|unreachable|usingnamespace|var|volatile|while)\>"
color brightcyan "@[a-zA-Z]+[0-9]{0,2}"
color cyan "(true|false|null|undefined)"
color cyan "\<(0[xob])?([0-9]_?)+\>"
color blue "\<([iu][0-9]{1,5}|f16|f32|f64|f128)\>"
color magenta "\"[^"]*\""
comment "//"
tabgives " "