From 188f55b6f08e455a3d1f8d18dded0a9cab4eb30e Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Tue, 23 May 2017 20:42:47 +0530 Subject: [PATCH 01/88] Add kotlin.nanorc Credits to https://github.com/bjarneh/kotkit/blob/master/misc/syntax/nano/kotlin.nanorc --- kotlin.nanorc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 kotlin.nanorc diff --git a/kotlin.nanorc b/kotlin.nanorc new file mode 100644 index 0000000..ccb8300 --- /dev/null +++ b/kotlin.nanorc @@ -0,0 +1,20 @@ +# Nano syntax file +# Language: Kotlin +# Maintainer: Bjarne Holen +# Last Change: 2012 Feb 14 + +syntax "kotlin" "\.kt$" +color brightred "\<[A-Z_][0-9A-Z_]+\>" +color green "\<(namespace|as|type|class|this|super|val|var|fun|for|null|true|false|is|in|throw|return|break|continue|object|if|try|else|while|do|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|catch|out|vararg|inline|finally|final|package)\>" +## +## 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 blue "<[^= ]*>" ""(\\.|[^"])*"" + +## Comment highlighting +color red "//.*" +color red start="/\*" end="\*/" + +## Trailing whitespace +color ,green "[[:space:]]+$" From 0f13ffd8c210736c5c20f394f2ffa569868f79b9 Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Tue, 23 May 2017 20:44:21 +0530 Subject: [PATCH 02/88] Add kotlin.nanorc --- nanorc | 1 + 1 file changed, 1 insertion(+) diff --git a/nanorc b/nanorc index f987aa1..3e74035 100644 --- a/nanorc +++ b/nanorc @@ -35,6 +35,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" From d6b9ba466ddc0d3987aaad3dbf569b55a5e2a7a9 Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Wed, 24 May 2017 11:49:31 +0530 Subject: [PATCH 03/88] Adjust colors --- kotlin.nanorc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/kotlin.nanorc b/kotlin.nanorc index ccb8300..f13d992 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -1,16 +1,21 @@ # Nano syntax file # Language: Kotlin # Maintainer: Bjarne Holen -# Last Change: 2012 Feb 14 +# Edited by: Ritiek Malhotra +# Last Change: 2017 May 24 -syntax "kotlin" "\.kt$" -color brightred "\<[A-Z_][0-9A-Z_]+\>" -color green "\<(namespace|as|type|class|this|super|val|var|fun|for|null|true|false|is|in|throw|return|break|continue|object|if|try|else|while|do|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|catch|out|vararg|inline|finally|final|package)\>" +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)\>" +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 blue "<[^= ]*>" ""(\\.|[^"])*"" +color brightblue "<[^= ]*>" ""(\\.|[^"])*"" ## Comment highlighting color red "//.*" From acdc221649b98505f45ddc19020792c7f992a7ea Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Thu, 25 May 2017 01:06:26 +0530 Subject: [PATCH 04/88] Add copyright --- kotlin.nanorc | 1 + 1 file changed, 1 insertion(+) diff --git a/kotlin.nanorc b/kotlin.nanorc index f13d992..ac2bdf7 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -3,6 +3,7 @@ # Maintainer: Bjarne Holen # Edited by: Ritiek Malhotra # 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" From db62155f3aed0ce2b08f0cc619e1018d6d561be4 Mon Sep 17 00:00:00 2001 From: Hunter Peavey Date: Fri, 18 Oct 2019 16:38:17 -0700 Subject: [PATCH 05/88] Add official Arch Linux package; change a few words to fit; and fixed a few typos --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 43658e9..ee2f37e 100644 --- a/readme.md +++ b/readme.md @@ -28,13 +28,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 +63,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` From 017cccbc7f5c7198fdac873efa323b5725135d55 Mon Sep 17 00:00:00 2001 From: Hunter Peavey Date: Fri, 18 Oct 2019 16:45:33 -0700 Subject: [PATCH 06/88] Fix spacing --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index ee2f37e..2aea067 100644 --- a/readme.md +++ b/readme.md @@ -34,7 +34,7 @@ Feel free to add your official package manager. | System | Command | | ---------- | ---------------------------------------- | -| Arch Linux | `pacman -S nano-syntax-highlighting` | +| Arch Linux | `pacman -S nano-syntax-highlighting` | ### 3. Clone repo (copy the files) From 7b2faa354a5bd4fa0d514e898f446940bbb9097a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 30 Oct 2019 12:07:52 +0530 Subject: [PATCH 07/88] kotlin: Add lateinit to qualifiers Signed-off-by: Harsh Shandilya --- kotlin.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin.nanorc b/kotlin.nanorc index ac2bdf7..6fd3459 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -8,7 +8,7 @@ syntax "kotlin" "\.kt$" "\.kts$" color magenta "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" color yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" -color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package)\>" +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)\>" color yellow "\<(true|false|null)\>" color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>" color brightred "\<(inner|outer)\>" From 8ac8d00e086a2d93fa0d220a4033e07f748f0baf Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sat, 2 Nov 2019 16:57:35 +1300 Subject: [PATCH 08/88] Highlight trailing whitespace --- ts.nanorc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts.nanorc b/ts.nanorc index 9e09c7c..f233465 100644 --- a/ts.nanorc +++ b/ts.nanorc @@ -37,3 +37,6 @@ color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" ## Comments color magenta start="/\*" end="\*/" color magenta "//.*$" + +## Trailing whitespace +color ,green "[[:space:]]+$" From 7c6dc77d82ae6345305a846fc0704c25c6c916de Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sat, 2 Nov 2019 17:05:37 +1300 Subject: [PATCH 09/88] Highlight trailing whitespace (nanorc.nanorc) --- nanorc.nanorc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nanorc.nanorc b/nanorc.nanorc index b951127..a224372 100644 --- a/nanorc.nanorc +++ b/nanorc.nanorc @@ -15,3 +15,6 @@ icolor white ""(\\.|[^"])*"" ## Comments icolor brightblue "^[[:space:]]*#.*$" icolor cyan "^[[:space:]]*##.*$" + +## Trailing whitespace +icolor ,green "[[:space:]]+$" From ed2409da612c0e009651f75b332283125e71171c Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 10 Nov 2019 19:28:25 +0530 Subject: [PATCH 10/88] java: Enforce atleast one leading space for comments This might not be the best way to approach the problem Signed-off-by: Harsh Shandilya --- java.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java.nanorc b/java.nanorc index 8d37d5c..9ec2b6e 100644 --- a/java.nanorc +++ b/java.nanorc @@ -7,7 +7,7 @@ color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interfa color red ""[^"]*"" color yellow "\<(true|false|null)\>" icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" -color blue "//.*" +color blue " //.*" color blue start="/\*" end="\*/" color brightblue start="/\*\*" end="\*/" color ,green "[[:space:]]+$" From a0d2186fd95410c45692e9ea517f73c6b4016b0b Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 2 Dec 2019 15:55:18 +0530 Subject: [PATCH 11/88] 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 --- systemd.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd.nanorc b/systemd.nanorc index f4b9bf5..4ca1ea3 100644 --- a/systemd.nanorc +++ b/systemd.nanorc @@ -1,7 +1,7 @@ syntax "Systemd" "\.(service|socket)$" 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 cyan "^(Accept|After|Alias|AllowIsolate|Also|AmbientCapabilities|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateDevices|PrivateNetwork|PrivateTmp|PropagatesReloadTo|ProtectHome|ProtectSystem|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)=" color brightblue "^\.include\>" color red "=" color brightmagenta "^\[(Unit|Install|Service|Socket)\]" From 586cbc3e4376db8fb83c377d3cf7f1705297fcb5 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 24 Nov 2019 14:31:06 +0530 Subject: [PATCH 12/88] kotlin: Enforce one leading space Signed-off-by: Harsh Shandilya --- kotlin.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin.nanorc b/kotlin.nanorc index 6fd3459..dc17459 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -19,7 +19,7 @@ color brightred "\<(inner|outer)\>" color brightblue "<[^= ]*>" ""(\\.|[^"])*"" ## Comment highlighting -color red "//.*" +color red " //.*" color red start="/\*" end="\*/" ## Trailing whitespace From 8b6b6b5ad875915a7ea8d64a0f06ccfb85fb0b51 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 25 Nov 2019 15:02:14 +0530 Subject: [PATCH 13/88] Enforce leading spaces for comments in all languages Signed-off-by: Harsh Shandilya --- arduino.nanorc | 2 +- asm.nanorc | 2 +- c.nanorc | 2 +- js.nanorc | 2 +- pov.nanorc | 2 +- rust.nanorc | 2 +- scala.nanorc | 2 +- swift.nanorc | 4 ++-- ts.nanorc | 2 +- verilog.nanorc | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arduino.nanorc b/arduino.nanorc index 1c60033..1d73c1f 100644 --- a/arduino.nanorc +++ b/arduino.nanorc @@ -109,7 +109,7 @@ color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Comments -color brightblue "//.*" +color brightblue " //.*" color brightblue start="/\*" end="\*/" ## Trailing whitespace diff --git a/asm.nanorc b/asm.nanorc index 1273b8e..9cbd63f 100644 --- a/asm.nanorc +++ b/asm.nanorc @@ -11,7 +11,7 @@ color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif| color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Highlight comments -color brightblue "//.*" +color brightblue " //.*" color brightblue start="/\*" end="\*/" ## Highlight trailing whitespace color ,green "[[:space:]]+$" diff --git a/c.nanorc b/c.nanorc index 2550299..07acf78 100644 --- a/c.nanorc +++ b/c.nanorc @@ -35,7 +35,7 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*"" #color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Comment highlighting -color brightblue "//.*" +color brightblue " //.*" color brightblue start="/\*" end="\*/" ## Trailing whitespace diff --git a/js.nanorc b/js.nanorc index 648d48e..7388c55 100644 --- a/js.nanorc +++ b/js.nanorc @@ -49,4 +49,4 @@ color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" ## Comments color brightblue start="/\*" end="\*/" -color brightblue "//.*$" +color brightblue " //.*$" diff --git a/pov.nanorc b/pov.nanorc index f8cb8b5..d9dab52 100644 --- a/pov.nanorc +++ b/pov.nanorc @@ -11,5 +11,5 @@ color brightred "\<(fog|object|camera)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color brightmagenta "\<(union|group|subgroup)\>" ## Comment highlighting -color brightblue "//.*" +color brightblue " //.*" color brightblue start="/\*" end="\*/" diff --git a/rust.nanorc b/rust.nanorc index 3d3c17a..6ad2149 100644 --- a/rust.nanorc +++ b/rust.nanorc @@ -26,7 +26,7 @@ color green start="\".*\\$" end=".*\"" color green start="r#+\"" end="\"#+" # Comments -color blue "//.*" +color blue " //.*" color blue start="/\*" end="\*/" # Attributes diff --git a/scala.nanorc b/scala.nanorc index 4a11006..1d7631f 100644 --- a/scala.nanorc +++ b/scala.nanorc @@ -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 " //.*" color blue start="/\*" end="\*/" color brightblue start="/\*\*" end="\*/" color ,green "[[:space:]]+$" diff --git a/swift.nanorc b/swift.nanorc index d1af78e..f10d22e 100644 --- a/swift.nanorc +++ b/swift.nanorc @@ -55,8 +55,8 @@ color red ""[^"]*"" color white start="\\\(" end="\)" # Comments -color green "//.*" -color brightgreen "///.*" +color green " //.*" +color brightgreen " ///.*" color green start="/\*\*" end="\*/" color green "[/**]" diff --git a/ts.nanorc b/ts.nanorc index f233465..8cbd8cd 100644 --- a/ts.nanorc +++ b/ts.nanorc @@ -36,7 +36,7 @@ color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" ## Comments color magenta start="/\*" end="\*/" -color magenta "//.*$" +color magenta " //.*$" ## Trailing whitespace color ,green "[[:space:]]+$" diff --git a/verilog.nanorc b/verilog.nanorc index 820b53d..f2a48f5 100644 --- a/verilog.nanorc +++ b/verilog.nanorc @@ -74,7 +74,7 @@ color brightyellow ""([^"]|\\")*"" "<[^[:blank:]=]*>" ###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" # Comments. -color brightblue "//.*" +color brightblue " //.*" color brightblue start="/\*" end="\*/" # Reminders. From 3cbbea4a301a5bf24fec7481c39002b5d165ff9e Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 2 Dec 2019 18:58:54 +0530 Subject: [PATCH 14/88] Handle this the proper way Suggested-by: SuperSandro2000 Signed-off-by: Harsh Shandilya --- arduino.nanorc | 2 +- asm.nanorc | 2 +- c.nanorc | 2 +- java.nanorc | 2 +- js.nanorc | 2 +- kotlin.nanorc | 2 +- pov.nanorc | 2 +- rust.nanorc | 2 +- scala.nanorc | 2 +- swift.nanorc | 4 ++-- ts.nanorc | 2 +- verilog.nanorc | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arduino.nanorc b/arduino.nanorc index 1d73c1f..b97b2ce 100644 --- a/arduino.nanorc +++ b/arduino.nanorc @@ -109,7 +109,7 @@ color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Comments -color brightblue " //.*" +color brightblue "^\s*//.*" color brightblue start="/\*" end="\*/" ## Trailing whitespace diff --git a/asm.nanorc b/asm.nanorc index 9cbd63f..c5c5bd5 100644 --- a/asm.nanorc +++ b/asm.nanorc @@ -11,7 +11,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:]]+$" diff --git a/c.nanorc b/c.nanorc index 07acf78..7b16cf6 100644 --- a/c.nanorc +++ b/c.nanorc @@ -35,7 +35,7 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*"" #color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Comment highlighting -color brightblue " //.*" +color brightblue "^\s*//.*" color brightblue start="/\*" end="\*/" ## Trailing whitespace diff --git a/java.nanorc b/java.nanorc index 9ec2b6e..53b0b5e 100644 --- a/java.nanorc +++ b/java.nanorc @@ -7,7 +7,7 @@ color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interfa color red ""[^"]*"" color yellow "\<(true|false|null)\>" icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" -color blue " //.*" +color blue "^\s*//.*" color blue start="/\*" end="\*/" color brightblue start="/\*\*" end="\*/" color ,green "[[:space:]]+$" diff --git a/js.nanorc b/js.nanorc index 7388c55..0d9cb33 100644 --- a/js.nanorc +++ b/js.nanorc @@ -49,4 +49,4 @@ color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" ## Comments color brightblue start="/\*" end="\*/" -color brightblue " //.*$" +color brightblue "^\s*//.*$" diff --git a/kotlin.nanorc b/kotlin.nanorc index dc17459..a70b18d 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -19,7 +19,7 @@ color brightred "\<(inner|outer)\>" color brightblue "<[^= ]*>" ""(\\.|[^"])*"" ## Comment highlighting -color red " //.*" +color red "^\s*//.*" color red start="/\*" end="\*/" ## Trailing whitespace diff --git a/pov.nanorc b/pov.nanorc index d9dab52..6e71e27 100644 --- a/pov.nanorc +++ b/pov.nanorc @@ -11,5 +11,5 @@ color brightred "\<(fog|object|camera)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color brightmagenta "\<(union|group|subgroup)\>" ## Comment highlighting -color brightblue " //.*" +color brightblue "^\s*//.*" color brightblue start="/\*" end="\*/" diff --git a/rust.nanorc b/rust.nanorc index 6ad2149..f776b64 100644 --- a/rust.nanorc +++ b/rust.nanorc @@ -26,7 +26,7 @@ color green start="\".*\\$" end=".*\"" color green start="r#+\"" end="\"#+" # Comments -color blue " //.*" +color blue "^\s*//.*" color blue start="/\*" end="\*/" # Attributes diff --git a/scala.nanorc b/scala.nanorc index 1d7631f..ab2a119 100644 --- a/scala.nanorc +++ b/scala.nanorc @@ -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 "^\s*//.*" color blue start="/\*" end="\*/" color brightblue start="/\*\*" end="\*/" color ,green "[[:space:]]+$" diff --git a/swift.nanorc b/swift.nanorc index f10d22e..636441a 100644 --- a/swift.nanorc +++ b/swift.nanorc @@ -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 "[/**]" diff --git a/ts.nanorc b/ts.nanorc index 8cbd8cd..bd1c9f1 100644 --- a/ts.nanorc +++ b/ts.nanorc @@ -36,7 +36,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:]]+$" diff --git a/verilog.nanorc b/verilog.nanorc index f2a48f5..b414308 100644 --- a/verilog.nanorc +++ b/verilog.nanorc @@ -74,7 +74,7 @@ color brightyellow ""([^"]|\\")*"" "<[^[:blank:]=]*>" ###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" # Comments. -color brightblue " //.*" +color brightblue "^\s*//.*" color brightblue start="/\*" end="\*/" # Reminders. From 391ed68163390545b73c143b16ca172e107bc07c Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 18 Dec 2019 09:34:49 -0500 Subject: [PATCH 15/88] * Syntax Files: Detect more files for highlighting --- fish.nanorc | 1 + html.nanorc | 2 +- sh.nanorc | 4 ++-- twig.nanorc | 1 + xml.nanorc | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) create mode 120000 twig.nanorc diff --git a/fish.nanorc b/fish.nanorc index 85fa258..081ee9a 100644 --- a/fish.nanorc +++ b/fish.nanorc @@ -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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" diff --git a/html.nanorc b/html.nanorc index 4f225d8..77a04dd 100644 --- a/html.nanorc +++ b/html.nanorc @@ -1,6 +1,6 @@ ## HTML syntax highlighting rules for Nano -syntax "HTML" "\.html?(.j2)?$" +syntax "HTML" "\.html?(.j2)?(.twig)?$" magic "HTML document" comment "" diff --git a/sh.nanorc b/sh.nanorc index 4eeb07d..0fe1cb2 100644 --- a/sh.nanorc +++ b/sh.nanorc @@ -1,7 +1,7 @@ ## 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( |$)" ## keywords: color green "\<(case|do|done|elif|else|esac|fi|for|function|if|in|select|then|time|until|while)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" diff --git a/twig.nanorc b/twig.nanorc new file mode 120000 index 0000000..c18f7cb --- /dev/null +++ b/twig.nanorc @@ -0,0 +1 @@ +html.nanorc \ No newline at end of file diff --git a/xml.nanorc b/xml.nanorc index 8ad5a32..005032a 100644 --- a/xml.nanorc +++ b/xml.nanorc @@ -1,7 +1,7 @@ ## Here is an example for xml files. ## -syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng)$" +syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|mei|musicxml)$" color white "^.+$" color green start="<" end=">" color cyan "<[^> ]+" From 021cd029637a438c7d5f6aabdcfb9db8eae75f37 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 18 Dec 2019 09:41:41 -0500 Subject: [PATCH 16/88] * CSS Syntax highlighting: highlight .less files --- css.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css.nanorc b/css.nanorc index 3e6b83c..04d4a97 100644 --- a/css.nanorc +++ b/css.nanorc @@ -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="[;^\{]" From 45db47864810a00310d1beb956a7ab9e58f3092f Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 18 Dec 2019 10:10:58 -0500 Subject: [PATCH 17/88] * Nanorc: Color the colors as the colors This makes editing nanorc files more visual! --- nanorc.nanorc | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/nanorc.nanorc b/nanorc.nanorc index a224372..924ef35 100644 --- a/nanorc.nanorc +++ b/nanorc.nanorc @@ -4,9 +4,36 @@ syntax "Nanorc" "\.?nanorc$" ## 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)\>" From 97f06f6c7381641ce89b5e1afb2732f4f73cc69c Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 18 Dec 2019 11:13:13 -0500 Subject: [PATCH 18/88] * Nanorc: Copy comment syntax from nano 4.6 nanorcs --- asm.nanorc | 2 ++ awk.nanorc | 1 + c.nanorc | 1 + cmake.nanorc | 1 + fortran.nanorc | 2 +- gentoo.nanorc | 2 ++ go.nanorc | 1 + groff.nanorc | 2 ++ java.nanorc | 2 ++ javascript.nanorc | 2 +- js.nanorc | 1 + json.nanorc | 2 ++ lua.nanorc | 1 + makefile.nanorc | 1 + man.nanorc | 2 ++ nanorc.nanorc | 2 ++ ocaml.nanorc | 4 ++++ patch.nanorc | 3 +++ perl.nanorc | 1 + php.nanorc | 1 + po.nanorc | 1 + pov.nanorc | 2 ++ python.nanorc | 1 + ruby.nanorc | 1 + rust.nanorc | 3 +++ sh.nanorc | 2 ++ tcl.nanorc | 2 ++ tex.nanorc | 2 ++ xml.nanorc | 1 + 29 files changed, 47 insertions(+), 2 deletions(-) diff --git a/asm.nanorc b/asm.nanorc index c5c5bd5..b08e250 100644 --- a/asm.nanorc +++ b/asm.nanorc @@ -1,6 +1,8 @@ ## Here is an example for assembler. ## syntax "ASM" "\.(S|s|asm)$" +comment "//" + color red "\<[A-Z_]{2,}\>" color brightgreen "\.(data|subsection|text)" color green "\.(align|file|globl|global|hidden|section|size|type|weak)" diff --git a/awk.nanorc b/awk.nanorc index ad343aa..f41b8bf 100644 --- a/awk.nanorc +++ b/awk.nanorc @@ -1,5 +1,6 @@ syntax "AWK" "\.awk$" header "^#!.*bin/(env +)?awk( |$)" +comment "#" color brightyellow "\$[A-Za-z0-9_!@#$*?-]+" color brightyellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" diff --git a/c.nanorc b/c.nanorc index 7b16cf6..f2fe00d 100644 --- a/c.nanorc +++ b/c.nanorc @@ -1,6 +1,7 @@ ## Here is an example for C/C++. ## syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" +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\>" diff --git a/cmake.nanorc b/cmake.nanorc index e5ae059..728d14a 100644 --- a/cmake.nanorc +++ b/cmake.nanorc @@ -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)\>" diff --git a/fortran.nanorc b/fortran.nanorc index 2b77e6b..73534d8 100644 --- a/fortran.nanorc +++ b/fortran.nanorc @@ -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]+\>" diff --git a/gentoo.nanorc b/gentoo.nanorc index 24b5485..4959fa9 100644 --- a/gentoo.nanorc +++ b/gentoo.nanorc @@ -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 diff --git a/go.nanorc b/go.nanorc index b603c2f..d5d8ca8 100644 --- a/go.nanorc +++ b/go.nanorc @@ -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)\>" diff --git a/groff.nanorc b/groff.nanorc index 6a0ecc7..508c4ab 100644 --- a/groff.nanorc +++ b/groff.nanorc @@ -1,6 +1,8 @@ ## 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:]]]*" ## Single character escapes diff --git a/java.nanorc b/java.nanorc index 53b0b5e..f285462 100644 --- a/java.nanorc +++ b/java.nanorc @@ -1,6 +1,8 @@ ## Here is an example for Java. ## syntax "Java" "\.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)\>" diff --git a/javascript.nanorc b/javascript.nanorc index 85925d3..0f5c236 100644 --- a/javascript.nanorc +++ b/javascript.nanorc @@ -1,5 +1,5 @@ syntax "JavaScript" "\.js$" - +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]?" diff --git a/js.nanorc b/js.nanorc index 0d9cb33..d5f1d8d 100644 --- a/js.nanorc +++ b/js.nanorc @@ -13,6 +13,7 @@ ## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting syntax "JavaScript" "\.(js)$" +comment "//" ## Default color white "^.+$" diff --git a/json.nanorc b/json.nanorc index deca0e1..1f79c18 100644 --- a/json.nanorc +++ b/json.nanorc @@ -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 "\" diff --git a/lua.nanorc b/lua.nanorc index 9138a8f..dd12ef5 100644 --- a/lua.nanorc +++ b/lua.nanorc @@ -13,6 +13,7 @@ # Automatically use for '.lua' files syntax "Lua" ".*\.lua$" +comment "--" # General color brightwhite ".+" diff --git a/makefile.nanorc b/makefile.nanorc index 12db1e2..c008148 100644 --- a/makefile.nanorc +++ b/makefile.nanorc @@ -1,5 +1,6 @@ syntax "Makefile" "([Mm]akefile|\.ma?k)$" header "^#!.*/(env +)?[bg]?make( |$)" +comment "#" color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>" color cyan "^(export|include|override)\>" diff --git a/man.nanorc b/man.nanorc index 59334be..e718d5c 100644 --- a/man.nanorc +++ b/man.nanorc @@ -1,6 +1,8 @@ ## Here is an example for manpages. ## syntax "Man" "\.[1-9]x?$" +comment ".\"" + color green "\.(S|T)H.*$" color brightgreen "\.(S|T)H" "\.TP" color brightred "\.(BR?|I[PR]?).*$" diff --git a/nanorc.nanorc b/nanorc.nanorc index a224372..3eeb9a9 100644 --- a/nanorc.nanorc +++ b/nanorc.nanorc @@ -1,6 +1,8 @@ ## 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 diff --git a/ocaml.nanorc b/ocaml.nanorc index f5cd2c7..455fa6f 100644 --- a/ocaml.nanorc +++ b/ocaml.nanorc @@ -1,4 +1,8 @@ +## Syntax highlighting for OCaml. + syntax "OCaml" "\.mli?$" +comment "(*|*)" + #uid color red "\<[A-Z][0-9a-z_]{2,}\>" #declarations diff --git a/patch.nanorc b/patch.nanorc index 7e9b16a..73e6326 100644 --- a/patch.nanorc +++ b/patch.nanorc @@ -1,6 +1,9 @@ ## Here is an example for patch files. ## syntax "Patch" "\.(patch|diff)$" +# You can't add comments in patch files. +comment "" + color brightgreen "^\+.*" color green "^\+\+\+.*" color brightblue "^ .*" diff --git a/perl.nanorc b/perl.nanorc index 3e629b9..88e2a1e 100644 --- a/perl.nanorc +++ b/perl.nanorc @@ -2,6 +2,7 @@ ## syntax "Perl" "\.p[lm]$" header "^#!.*/(env +)?perl( |$)" +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)\>" diff --git a/php.nanorc b/php.nanorc index ec6832e..3c0e187 100644 --- a/php.nanorc +++ b/php.nanorc @@ -1,5 +1,6 @@ ## PHP Syntax Highlighting syntax "PHP" "\.php[2345s~]?$" +comment "//" color white start="<\?(php|=)?" end="\?>" # Functions color brightblue "([a-zA-Z0-9_-]*)\(" diff --git a/po.nanorc b/po.nanorc index d434b2a..24bc6a6 100644 --- a/po.nanorc +++ b/po.nanorc @@ -1,4 +1,5 @@ syntax "PO" "\.pot?$" +comment "#" color cyan "\<(msgid|msgstr)\>" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" diff --git a/pov.nanorc b/pov.nanorc index 6e71e27..5d18ee8 100644 --- a/pov.nanorc +++ b/pov.nanorc @@ -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)\>" diff --git a/python.nanorc b/python.nanorc index 0517bd8..a127364 100644 --- a/python.nanorc +++ b/python.nanorc @@ -3,6 +3,7 @@ syntax "python" "\.py$" header "^#!.*/(env +)?python[-0-9._]*( |$)" magic "Python script" +comment "#" ## built-in objects color cyan "\<(None|self|True|False)\>" diff --git a/ruby.nanorc b/ruby.nanorc index ca4f3a6..d064984 100644 --- a/ruby.nanorc +++ b/ruby.nanorc @@ -2,6 +2,7 @@ ## syntax "Ruby" "\.rb$" "Gemfile" "config.ru" "Rakefile" "Capfile" "Vagrantfile" header "^#!.*/(env +)?ruby( |$)" +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)\>" diff --git a/rust.nanorc b/rust.nanorc index f776b64..a7b139b 100644 --- a/rust.nanorc +++ b/rust.nanorc @@ -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_]+" diff --git a/sh.nanorc b/sh.nanorc index 4eeb07d..3b27e18 100644 --- a/sh.nanorc +++ b/sh.nanorc @@ -2,6 +2,8 @@ ## 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( |$)" +comment "#" + ## keywords: color green "\<(case|do|done|elif|else|esac|fi|for|function|if|in|select|then|time|until|while)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" diff --git a/tcl.nanorc b/tcl.nanorc index 7829cb0..e08ff6a 100644 --- a/tcl.nanorc +++ b/tcl.nanorc @@ -1,6 +1,8 @@ syntax "TCL" "\.tcl$" header "^#!.*/(env +)?tclsh( |$)" +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 diff --git a/tex.nanorc b/tex.nanorc index b768ed1..208f9af 100644 --- a/tex.nanorc +++ b/tex.nanorc @@ -1,6 +1,8 @@ ## Here is a short example for TeX files. ## syntax "TeX" "\.tex$" "bib" "\.bib$" "cls" "\.cls$" +comment "%" + color yellow "\$(\\\$|[^$])*[^\\]\$" color yellow "\$\$(\\\$|[^$])*[^\\]\$\$" icolor green "\\.|\\[A-Z]*" diff --git a/xml.nanorc b/xml.nanorc index 8ad5a32..1ebe934 100644 --- a/xml.nanorc +++ b/xml.nanorc @@ -2,6 +2,7 @@ ## syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng)$" +comment "" color white "^.+$" color green start="<" end=">" color cyan "<[^> ]+" From db98b9f1b5b8ac17021b77acde40d8854a95de3f Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 18 Dec 2019 11:20:31 -0500 Subject: [PATCH 19/88] * NanoRC Files: Copy linter and magic from nano 4.6 configs --- asm.nanorc | 1 + awk.nanorc | 1 + c.nanorc | 1 + java.nanorc | 1 + lua.nanorc | 3 +++ makefile.nanorc | 1 + man.nanorc | 1 + ocaml.nanorc | 1 + patch.nanorc | 1 + perl.nanorc | 1 + php.nanorc | 1 + python.nanorc | 2 ++ ruby.nanorc | 2 ++ sh.nanorc | 3 +++ tcl.nanorc | 1 + tex.nanorc | 3 +++ xml.nanorc | 2 ++ 17 files changed, 26 insertions(+) diff --git a/asm.nanorc b/asm.nanorc index b08e250..b27a272 100644 --- a/asm.nanorc +++ b/asm.nanorc @@ -1,6 +1,7 @@ ## Here is an example for assembler. ## syntax "ASM" "\.(S|s|asm)$" +magic "assembler source" comment "//" color red "\<[A-Z_]{2,}\>" diff --git a/awk.nanorc b/awk.nanorc index f41b8bf..501bc97 100644 --- a/awk.nanorc +++ b/awk.nanorc @@ -1,5 +1,6 @@ syntax "AWK" "\.awk$" header "^#!.*bin/(env +)?awk( |$)" +magic "awk script" comment "#" color brightyellow "\$[A-Za-z0-9_!@#$*?-]+" diff --git a/c.nanorc b/c.nanorc index f2fe00d..22ffea6 100644 --- a/c.nanorc +++ b/c.nanorc @@ -1,6 +1,7 @@ ## Here is an example for C/C++. ## syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" +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)\>" diff --git a/java.nanorc b/java.nanorc index f285462..46e5dd5 100644 --- a/java.nanorc +++ b/java.nanorc @@ -1,6 +1,7 @@ ## 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)\>" diff --git a/lua.nanorc b/lua.nanorc index dd12ef5..bec44ad 100644 --- a/lua.nanorc +++ b/lua.nanorc @@ -13,8 +13,11 @@ # Automatically use for '.lua' files syntax "Lua" ".*\.lua$" +magic "Lua script" comment "--" +linter luacheck --no-color + # General color brightwhite ".+" diff --git a/makefile.nanorc b/makefile.nanorc index c008148..5bda434 100644 --- a/makefile.nanorc +++ b/makefile.nanorc @@ -1,5 +1,6 @@ syntax "Makefile" "([Mm]akefile|\.ma?k)$" header "^#!.*/(env +)?[bg]?make( |$)" +magic "makefile script" comment "#" color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>" diff --git a/man.nanorc b/man.nanorc index e718d5c..5239bea 100644 --- a/man.nanorc +++ b/man.nanorc @@ -1,6 +1,7 @@ ## Here is an example for manpages. ## syntax "Man" "\.[1-9]x?$" +magic "troff or preprocessor input" comment ".\"" color green "\.(S|T)H.*$" diff --git a/ocaml.nanorc b/ocaml.nanorc index 455fa6f..d1bba12 100644 --- a/ocaml.nanorc +++ b/ocaml.nanorc @@ -1,6 +1,7 @@ ## Syntax highlighting for OCaml. syntax "OCaml" "\.mli?$" +magic "OCaml" comment "(*|*)" #uid diff --git a/patch.nanorc b/patch.nanorc index 73e6326..bd282b7 100644 --- a/patch.nanorc +++ b/patch.nanorc @@ -1,6 +1,7 @@ ## Here is an example for patch files. ## syntax "Patch" "\.(patch|diff)$" +magic "diff output" # You can't add comments in patch files. comment "" diff --git a/perl.nanorc b/perl.nanorc index 88e2a1e..117a95c 100644 --- a/perl.nanorc +++ b/perl.nanorc @@ -2,6 +2,7 @@ ## 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)\>" diff --git a/php.nanorc b/php.nanorc index 3c0e187..e9e2959 100644 --- a/php.nanorc +++ b/php.nanorc @@ -1,5 +1,6 @@ ## PHP Syntax Highlighting syntax "PHP" "\.php[2345s~]?$" +magic "PHP script" comment "//" color white start="<\?(php|=)?" end="\?>" # Functions diff --git a/python.nanorc b/python.nanorc index a127364..70022a3 100644 --- a/python.nanorc +++ b/python.nanorc @@ -5,6 +5,8 @@ header "^#!.*/(env +)?python[-0-9._]*( |$)" magic "Python script" comment "#" +linter pyflakes + ## built-in objects color cyan "\<(None|self|True|False)\>" ## built-in attributes diff --git a/ruby.nanorc b/ruby.nanorc index d064984..7e8aef1 100644 --- a/ruby.nanorc +++ b/ruby.nanorc @@ -2,6 +2,8 @@ ## 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 diff --git a/sh.nanorc b/sh.nanorc index 3b27e18..3771b87 100644 --- a/sh.nanorc +++ b/sh.nanorc @@ -2,8 +2,11 @@ ## 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( |$)" +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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" diff --git a/tcl.nanorc b/tcl.nanorc index e08ff6a..99c9ae0 100644 --- a/tcl.nanorc +++ b/tcl.nanorc @@ -1,6 +1,7 @@ syntax "TCL" "\.tcl$" header "^#!.*/(env +)?tclsh( |$)" +magic "Tcl(/Tk)? script" comment "#" ## Standard Tcl [info commands] diff --git a/tex.nanorc b/tex.nanorc index 208f9af..8b281d5 100644 --- a/tex.nanorc +++ b/tex.nanorc @@ -1,8 +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]*" diff --git a/xml.nanorc b/xml.nanorc index 1ebe934..bd7b273 100644 --- a/xml.nanorc +++ b/xml.nanorc @@ -2,6 +2,8 @@ ## syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng)$" +header "<\?xml.*version=.*\?>" +magic "(XML|SGML) (sub)?document" comment "" color white "^.+$" color green start="<" end=">" From aaee778ba512f078cea4b003898144ed45ef8e3c Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 18 Dec 2019 22:08:43 -0500 Subject: [PATCH 20/88] - syntax: Add a few more file endings --- c.nanorc | 2 +- xml.nanorc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c.nanorc b/c.nanorc index 22ffea6..5a521d3 100644 --- a/c.nanorc +++ b/c.nanorc @@ -1,6 +1,6 @@ ## Here is an example for C/C++. ## -syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" +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_]+\>" diff --git a/xml.nanorc b/xml.nanorc index 710e166..809a048 100644 --- a/xml.nanorc +++ b/xml.nanorc @@ -1,7 +1,7 @@ ## Here is an example for xml files. ## -syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|mei|musicxml)$" +syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|vue|mei|musicxml)$" header "<\?xml.*version=.*\?>" magic "(XML|SGML) (sub)?document" comment "" From a22ad89b771afb5c8ed34b68a1b72cb310f2b694 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 16 Dec 2019 02:27:35 +0530 Subject: [PATCH 21/88] Fix block comments highlighting Signed-off-by: Harsh Shandilya --- csharp.nanorc | 2 +- dot.nanorc | 2 +- fsharp.nanorc | 2 +- genie.nanorc | 2 +- glsl.nanorc | 2 +- go.nanorc | 2 +- java.nanorc | 2 +- js.nanorc | 2 +- kotlin.nanorc | 2 +- pov.nanorc | 2 +- prolog.nanorc | 2 +- pug.nanorc | 2 +- rust.nanorc | 2 +- scala.nanorc | 2 +- vala.nanorc | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/csharp.nanorc b/csharp.nanorc index 3093e0a..893bb37 100644 --- a/csharp.nanorc +++ b/csharp.nanorc @@ -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 " + +| + +" diff --git a/dot.nanorc b/dot.nanorc index 441a35c..40d4d06 100644 --- a/dot.nanorc +++ b/dot.nanorc @@ -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="\*/" diff --git a/fsharp.nanorc b/fsharp.nanorc index 90a7796..0ec109d 100644 --- a/fsharp.nanorc +++ b/fsharp.nanorc @@ -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:?" diff --git a/genie.nanorc b/genie.nanorc index 187e864..0cd3722 100644 --- a/genie.nanorc +++ b/genie.nanorc @@ -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:]]+$" diff --git a/glsl.nanorc b/glsl.nanorc index 1cec6cf..d098e29 100644 --- a/glsl.nanorc +++ b/glsl.nanorc @@ -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 " + +| + +" diff --git a/go.nanorc b/go.nanorc index d5d8ca8..acd32df 100644 --- a/go.nanorc +++ b/go.nanorc @@ -17,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 " + +| + +" diff --git a/java.nanorc b/java.nanorc index 46e5dd5..e43daf9 100644 --- a/java.nanorc +++ b/java.nanorc @@ -11,6 +11,6 @@ color red ""[^"]*"" color yellow "\<(true|false|null)\>" icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" color blue "^\s*//.*" -color blue start="/\*" end="\*/" +color blue start="^\s*/\*" end="\*/" color brightblue start="/\*\*" end="\*/" color ,green "[[:space:]]+$" diff --git a/js.nanorc b/js.nanorc index d5f1d8d..3d484ba 100644 --- a/js.nanorc +++ b/js.nanorc @@ -49,5 +49,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 start="^\s*/\*" end="\*/" color brightblue "^\s*//.*$" diff --git a/kotlin.nanorc b/kotlin.nanorc index a70b18d..ec05c61 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -20,7 +20,7 @@ color brightblue "<[^= ]*>" ""(\\.|[^"])*"" ## Comment highlighting color red "^\s*//.*" -color red start="/\*" end="\*/" +color red start="^\s*/\*" end="\*/" ## Trailing whitespace color ,green "[[:space:]]+$" diff --git a/pov.nanorc b/pov.nanorc index 5d18ee8..9151792 100644 --- a/pov.nanorc +++ b/pov.nanorc @@ -14,4 +14,4 @@ color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color brightmagenta "\<(union|group|subgroup)\>" ## Comment highlighting color brightblue "^\s*//.*" -color brightblue start="/\*" end="\*/" +color brightblue start="^\s*/\*" end="\*/" diff --git a/prolog.nanorc b/prolog.nanorc index 8475ab6..56165d4 100644 --- a/prolog.nanorc +++ b/prolog.nanorc @@ -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)" diff --git a/pug.nanorc b/pug.nanorc index 49d4ab4..a1855c0 100644 --- a/pug.nanorc +++ b/pug.nanorc @@ -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 diff --git a/rust.nanorc b/rust.nanorc index a7b139b..88a0be8 100644 --- a/rust.nanorc +++ b/rust.nanorc @@ -30,7 +30,7 @@ color green start="r#+\"" end="\"#+" # Comments color blue "^\s*//.*" -color blue start="/\*" end="\*/" +color blue start="^\s*/\*" end="\*/" # Attributes color magenta start="#!\[" end="\]" diff --git a/scala.nanorc b/scala.nanorc index ab2a119..53fc5f7 100644 --- a/scala.nanorc +++ b/scala.nanorc @@ -7,6 +7,6 @@ color cyan "\<(def|object|case|trait|lazy|implicit|abstract|class|extends|final| color red ""[^"]*"" color yellow "\<(true|false|null)\>" color blue "^\s*//.*" -color blue start="/\*" end="\*/" +color blue start="^\s*/\*" end="\*/" color brightblue start="/\*\*" end="\*/" color ,green "[[:space:]]+$" diff --git a/vala.nanorc b/vala.nanorc index 52f58b9..0864cf1 100644 --- a/vala.nanorc +++ b/vala.nanorc @@ -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 " + +| + +" From d1d39ec8e92872864ac624e0c4f7f7b54057569f Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 22 Dec 2019 17:00:19 +0530 Subject: [PATCH 22/88] kotlin: Add the 'constructor' qualifier Signed-off-by: Harsh Shandilya --- kotlin.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin.nanorc b/kotlin.nanorc index a70b18d..4fd6a13 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -8,7 +8,7 @@ syntax "kotlin" "\.kt$" "\.kts$" color magenta "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" color yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" -color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit)\>" +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)\>" color yellow "\<(true|false|null)\>" color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>" color brightred "\<(inner|outer)\>" From c06c2b0a4f9c2be12e7dcb5efdd426ea415e4913 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Wed, 25 Dec 2019 21:55:19 -0600 Subject: [PATCH 23/88] Added syntax highlighting for javadoc --- java.nanorc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java.nanorc b/java.nanorc index 46e5dd5..912c5d5 100644 --- a/java.nanorc +++ b/java.nanorc @@ -13,4 +13,10 @@ icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" " color blue "^\s*//.*" color blue start="/\*" 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:]]+$" From 8959baefff1470fd996522241d61d60a5508e8c6 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Wed, 25 Dec 2019 21:57:14 -0600 Subject: [PATCH 24/88] added documentation comments to c.nanorc --- c.nanorc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/c.nanorc b/c.nanorc index 22ffea6..728dac6 100644 --- a/c.nanorc +++ b/c.nanorc @@ -40,5 +40,10 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*"" color brightblue "^\s*//.*" 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:]]+$" From 5a86342efe6ad1bf11e6bb6ffafe3794894d680a Mon Sep 17 00:00:00 2001 From: CryptoDragonLady Date: Mon, 30 Dec 2019 02:00:29 -0700 Subject: [PATCH 25/88] Fixed readme errors and wording --- readme.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 2aea067..646f1b5 100644 --- a/readme.md +++ b/readme.md @@ -77,7 +77,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 +95,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)! From 39a6f5d9b6eab852ff81ff403b33fff2ba68c0bd Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 1 Jan 2020 23:20:28 +0530 Subject: [PATCH 26/88] kotlin: Add companion and const qualifiers Signed-off-by: Harsh Shandilya --- kotlin.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin.nanorc b/kotlin.nanorc index 4fd6a13..0872cb3 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -8,7 +8,7 @@ syntax "kotlin" "\.kt$" "\.kts$" color magenta "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" color yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" -color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor)\>" +color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor|companion|const)\>" color yellow "\<(true|false|null)\>" color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>" color brightred "\<(inner|outer)\>" From 745a0469d6836baa34287d83af8f9c7cc9e53b70 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sat, 11 Jan 2020 15:09:43 +1300 Subject: [PATCH 27/88] ts: highlight async/await keywords --- ts.nanorc | 1 + 1 file changed, 1 insertion(+) diff --git a/ts.nanorc b/ts.nanorc index bd1c9f1..459b5c1 100644 --- a/ts.nanorc +++ b/ts.nanorc @@ -19,6 +19,7 @@ color green "\<(var|interface|int|in|let|new|package|private)\>" color green "\<(protected|public|return|static|super|switch)\>" color green "\<(this|throw|try|typeof)\>" color green "\<(void|while|with|yield)\>" +color green "\<(async|await)\>" ## Type specifiers color red "\<(Array|Boolean|Date|Enumerator|Error|Function)\>" From 29b82b6f3b41525deec069aca4bb01d8357627c6 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Sat, 25 Jan 2020 21:12:38 -0500 Subject: [PATCH 28/88] added zach --- .authors.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.authors.yml b/.authors.yml index 4c358cd..d868ce8 100644 --- a/.authors.yml +++ b/.authors.yml @@ -552,3 +552,5 @@ num_commits: 2 first_commit: 2019-06-06 02:27:13 github: rasa +- name: Zach DeCook + email: zdecook@ccel.org From d2ddb52222ad9e292019a7ca44a4709e93d4b2d3 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Sat, 25 Jan 2020 21:14:25 -0500 Subject: [PATCH 29/88] added zach 2 --- .authors.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.authors.yml b/.authors.yml index d868ce8..ddefd24 100644 --- a/.authors.yml +++ b/.authors.yml @@ -554,3 +554,5 @@ github: rasa - name: Zach DeCook email: zdecook@ccel.org + alternate_emails: + - zachdecook@librem.one \ No newline at end of file From ec4e86c44bf95deda91caca12a0b524b5eae4b98 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Sat, 25 Jan 2020 21:15:16 -0500 Subject: [PATCH 30/88] Updated authorship for 2020.1.25 --- .authors.yml | 33 ++++++++++++++++++++++++++++++--- .mailmap | 8 +++++++- AUTHORS.rst | 8 +++++++- 3 files changed, 44 insertions(+), 5 deletions(-) diff --git a/.authors.yml b/.authors.yml index ddefd24..d2ee29d 100644 --- a/.authors.yml +++ b/.authors.yml @@ -252,7 +252,7 @@ github: hawk93 - name: Harsh Shandilya email: msfjarvis@gmail.com - num_commits: 1 + num_commits: 10 first_commit: 2019-09-19 15:52:44 github: msfjarvis - name: DesertPunk @@ -335,7 +335,7 @@ github: TJProgrammer - name: Anthony Scopatz email: scopatz@gmail.com - num_commits: 47 + num_commits: 50 first_commit: 2010-07-28 18:15:43 github: astronautlevel - name: PhilipRoman @@ -555,4 +555,31 @@ - name: Zach DeCook email: zdecook@ccel.org alternate_emails: - - zachdecook@librem.one \ No newline at end of file + - zachdecook@librem.one + num_commits: 6 + first_commit: 2019-12-18 09:34:49 + github: earboxer +- name: Gareth Jones + email: Jones258@Gmail.com + num_commits: 3 + first_commit: 2019-11-01 23:57:35 +- name: Dante Falzone + email: 48266179+DanteFalzone0@users.noreply.github.com + num_commits: 2 + 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 diff --git a/.mailmap b/.mailmap index 776b39b..05ba6f8 100644 --- a/.mailmap +++ b/.mailmap @@ -14,9 +14,11 @@ Elof Simon Volpert Andrea Dejan Grande Alex Taber +Harsh Shandilya Mariusz Smykuła Michael Straube Michael Straube CoffeeTableEnnui +Zach DeCook Zach DeCook Daniel Kaplun Philipp Tiago Almeida @@ -24,6 +26,7 @@ yochem nl6720 Thomas Rosenau ThomasR Matthew Cox +Ritiek Malhotra Birger Jarl divinity76 CirKu17 CirKu17 @@ -34,6 +37,7 @@ Huub de Beer Mikael O. Bonnier Jeppe Fihl-Pearson Ondřej Ešler +Gareth Jones Dan Kaplun Aryan Ebrahimpour Paduct Bro @@ -52,6 +56,8 @@ Bryan Ross Nicholas Christopoulos Sina Ross Smith II +Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> +Hunter Peavey Dan Pasanen Marcus Willock Crazcalm Dario Ostuni @@ -84,7 +90,6 @@ Luis Lobo Borobia Lephend maritaria Alessandro Luppi -Harsh Shandilya floomby esler Karl @@ -118,3 +123,4 @@ grandtheftjiujitsu John S Long Ghost-NULL PN Wu (小平) +CryptoDragonLady diff --git a/AUTHORS.rst b/AUTHORS.rst index 53426dd..25e7957 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -6,9 +6,11 @@ Authors are sorted by number of commits. * Simon Volpert * Andrea Dejan Grande * Alex Taber +* Harsh Shandilya * Mariusz Smykuła * Michael Straube * CoffeeTableEnnui +* Zach DeCook * Daniel Kaplun * Philipp * Tiago Almeida @@ -16,6 +18,7 @@ Authors are sorted by number of commits. * nl6720 * Thomas Rosenau * Matthew Cox +* Ritiek Malhotra * Birger Jarl * divinity76 * CirKu17 @@ -26,6 +29,7 @@ Authors are sorted by number of commits. * Mikael O. Bonnier * Jeppe Fihl-Pearson * Ondřej Ešler +* Gareth Jones * Dan Kaplun * Aryan Ebrahimpour * Paduct @@ -44,6 +48,8 @@ Authors are sorted by number of commits. * Nicholas Christopoulos * Sina * Ross Smith II +* Dante Falzone +* Hunter Peavey * Dan Pasanen * Marcus Willock * Dario Ostuni @@ -76,7 +82,6 @@ Authors are sorted by number of commits. * Lephend * maritaria * Alessandro Luppi -* Harsh Shandilya * floomby * esler * Karl @@ -110,3 +115,4 @@ Authors are sorted by number of commits. * John S Long * Ghost-NULL * PN Wu (小平) +* CryptoDragonLady From 72787edbc59357088ff645899c04fc30af8648e1 Mon Sep 17 00:00:00 2001 From: "Paulo S. Costa" Date: Mon, 27 Jan 2020 15:18:02 -0800 Subject: [PATCH 31/88] Add toml support --- toml.nanorc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 toml.nanorc diff --git a/toml.nanorc b/toml.nanorc new file mode 100644 index 0000000..6b0eedb --- /dev/null +++ b/toml.nanorc @@ -0,0 +1,31 @@ +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:]]+$" From ae1e6021886a0b4215e1ca8617c6d746b5a957ae Mon Sep 17 00:00:00 2001 From: Justin P Date: Thu, 30 Jan 2020 23:28:08 -0600 Subject: [PATCH 32/88] 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. --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index c26cc80..0785700 100755 --- a/install.sh +++ b/install.sh @@ -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 From 9e8ff03ada89e7a12b47545819d5838d1746d1ad Mon Sep 17 00:00:00 2001 From: "Paulo S. Costa" Date: Tue, 4 Feb 2020 11:19:43 -0800 Subject: [PATCH 33/88] Add copyright notice --- toml.nanorc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/toml.nanorc b/toml.nanorc index 6b0eedb..3bafa74 100644 --- a/toml.nanorc +++ b/toml.nanorc @@ -29,3 +29,26 @@ 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. From a527805ceba312f6c6bf4287a6c8cae5e5eaee70 Mon Sep 17 00:00:00 2001 From: emidiostani Date: Wed, 5 Feb 2020 12:48:21 +0100 Subject: [PATCH 34/88] include PHP syntax highlighting for .module files (used by Drupal) --- php.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php.nanorc b/php.nanorc index e9e2959..33f6f9a 100644 --- a/php.nanorc +++ b/php.nanorc @@ -1,5 +1,5 @@ ## PHP Syntax Highlighting -syntax "PHP" "\.php[2345s~]?$" +syntax "PHP" "\.php[2345s~]?$|\.module$" magic "PHP script" comment "//" color white start="<\?(php|=)?" end="\?>" From cdb3a12cc78874d8cfcf9e5ea160286860a60eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mlendea=2C=20Hora=C8=9Biu?= Date: Sun, 9 Feb 2020 11:50:20 +0200 Subject: [PATCH 35/88] M3U playlist syntax --- m3u.nanorc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 m3u.nanorc diff --git a/m3u.nanorc b/m3u.nanorc new file mode 100644 index 0000000..a853ffa --- /dev/null +++ b/m3u.nanorc @@ -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 brightmagenta start="#EXTM3U.*" end="$" +color brightred "^#EXT[-A-Z]*:" + +# Separators +color normal "[,=]" + +# URLs +color normal "^[^#].*" From 0f32f4755cc7183f4923d3d3e9e55ae9a748b002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mlendea=2C=20Hora=C8=9Biu?= Date: Sun, 9 Feb 2020 11:57:37 +0200 Subject: [PATCH 36/88] Fixed main header highlighting --- m3u.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m3u.nanorc b/m3u.nanorc index a853ffa..3e237e3 100644 --- a/m3u.nanorc +++ b/m3u.nanorc @@ -12,8 +12,8 @@ color brightyellow "=[\"][^\"]*[\"]" color brightgreen "[a-zA-Z-]*=" # Headers -color brightmagenta start="#EXTM3U.*" end="$" color brightred "^#EXT[-A-Z]*:" +color brightmagenta "^#EXTM3U" # Separators color normal "[,=]" From 233a018cc87a6fdf0d5f31ec76651ad10e10fa03 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 20 Feb 2020 03:50:53 +0530 Subject: [PATCH 37/88] systemd: Add more directives ProtectControlGroups ProtectKernelModules ProtectKernelTunables RestrictAddressFamilies RestrictNamespaces RestrictRealtime SystemCallArchitectures Signed-off-by: Harsh Shandilya --- systemd.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd.nanorc b/systemd.nanorc index 4ca1ea3..888cab8 100644 --- a/systemd.nanorc +++ b/systemd.nanorc @@ -1,7 +1,7 @@ syntax "Systemd" "\.(service|socket)$" header "^\[Unit\]$" -color cyan "^(Accept|After|Alias|AllowIsolate|Also|AmbientCapabilities|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateDevices|PrivateNetwork|PrivateTmp|PropagatesReloadTo|ProtectHome|ProtectSystem|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)=" +color cyan "^(Accept|After|Alias|AllowIsolate|Also|AmbientCapabilities|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateDevices|PrivateNetwork|PrivateTmp|PropagatesReloadTo|ProtectControlGroups|ProtectHome|ProtectKernelModules|ProtectKernelTunables|ProtectSystem|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RestrictAddressFamilies|RestrictNamespaces|RestrictRealtime|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallArchitectures|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)=" color brightblue "^\.include\>" color red "=" color brightmagenta "^\[(Unit|Install|Service|Socket)\]" From 56e63831c4b2b47687b2fc1dfbc8c4abc89b790b Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Thu, 12 Mar 2020 15:35:16 +1300 Subject: [PATCH 38/88] fix(ts): add missing keywords --- ts.nanorc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ts.nanorc b/ts.nanorc index 459b5c1..2ae3ca8 100644 --- a/ts.nanorc +++ b/ts.nanorc @@ -11,15 +11,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|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|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)\>" From b6627d0641c3289564b2496afd7750e8ad7acd03 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Thu, 12 Mar 2020 15:36:48 +1300 Subject: [PATCH 39/88] fix(ts): add `asserts` and `is` keyword --- ts.nanorc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts.nanorc b/ts.nanorc index 2ae3ca8..bab8652 100644 --- a/ts.nanorc +++ b/ts.nanorc @@ -11,11 +11,11 @@ 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 "\<(as|abstract|boolean|break|byte|case|catch)\>" +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|infer|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|type)\>" color green "\<(void|while|with|yield)\>" From 6e22afe76f71f5d366e8ec005d2a8c50f7a9838f Mon Sep 17 00:00:00 2001 From: Aiden Gall Date: Sat, 14 Mar 2020 23:09:11 +0000 Subject: [PATCH 40/88] 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. --- haskell.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haskell.nanorc b/haskell.nanorc index 2b37ecf..f42ba06 100644 --- a/haskell.nanorc +++ b/haskell.nanorc @@ -12,7 +12,7 @@ color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})" color magenta "(==|/=|&&|\|\||<|>|<=|>=)" ## Various symbols -color cyan "(->|<-)" +color cyan "(->|<-|=>)" color magenta "\.|\$" ## Data constructors From c9c2175bffef9886158dabc3b854e4a0f3f7f4d9 Mon Sep 17 00:00:00 2001 From: Yvan Satyawan Date: Mon, 16 Mar 2020 14:40:58 +0100 Subject: [PATCH 41/88] Clarifies where the .nanorc files are unpacked to --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 646f1b5..1112bc1 100644 --- a/readme.md +++ b/readme.md @@ -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 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. From 935008947cc94dfa9e42c4b0c72709a88642eb64 Mon Sep 17 00:00:00 2001 From: Yvan Satyawan Date: Mon, 16 Mar 2020 14:44:12 +0100 Subject: [PATCH 42/88] Clarified where the .nanorc files are unpacked to --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 1112bc1..4c89997 100644 --- a/readme.md +++ b/readme.md @@ -20,7 +20,7 @@ If your machine doesn't have `curl` command, use this code: wget https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh -O- | sh ``` -This unpacks all the `.nanorc` files to `~/.nano`. +This automatically unpacks all the `.nanorc` files to `~/.nano`. #### Note From 0eb16aceafc2108332cf428b3b67c6e15b09f12f Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 18 Mar 2020 14:09:28 +1300 Subject: [PATCH 43/88] fix(hcl): quote syntax name to improve v2.9 support --- hcl.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcl.nanorc b/hcl.nanorc index b839d87..f02308b 100644 --- a/hcl.nanorc +++ b/hcl.nanorc @@ -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 "" From 1b96a2396053f8a06586b9a2b71e2837ac4e8bfb Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 18 Mar 2020 14:10:35 +1300 Subject: [PATCH 44/88] fix(prolog): quote syntax name to improve v2.9 support --- prolog.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prolog.nanorc b/prolog.nanorc index 56165d4..ecd9e41 100644 --- a/prolog.nanorc +++ b/prolog.nanorc @@ -1,6 +1,6 @@ ## Here is a prolog example. -syntax prolog "\.pl" +syntax "prolog" "\.pl" comment "%" # Reset everything From 15d54a8cc51c143afbcb229ee7d1595171cb94b1 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 18 Mar 2020 14:45:31 +1300 Subject: [PATCH 45/88] feat(ts): add header regex --- ts.nanorc | 1 + 1 file changed, 1 insertion(+) diff --git a/ts.nanorc b/ts.nanorc index bab8652..1a8d85c 100644 --- a/ts.nanorc +++ b/ts.nanorc @@ -1,4 +1,5 @@ syntax "typescript" "\.(ts)$" +header "^#!.*\/(env +)ts-node" ## Default color white "^.+$" From d573d03ccf9441be4bf3dd3166b977ae000a7d13 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 18 Mar 2020 14:46:45 +1300 Subject: [PATCH 46/88] feat(js): add header regex --- js.nanorc | 1 + 1 file changed, 1 insertion(+) diff --git a/js.nanorc b/js.nanorc index 3d484ba..a986743 100644 --- a/js.nanorc +++ b/js.nanorc @@ -13,6 +13,7 @@ ## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting syntax "JavaScript" "\.(js)$" +header "^#!.*\/(env +)node" comment "//" ## Default From 6ff09050d017cc0968ffc61e4c42f8770d29efa1 Mon Sep 17 00:00:00 2001 From: msuska Date: Sat, 21 Mar 2020 16:18:26 +0100 Subject: [PATCH 47/88] highlighting file for Java .properties files --- properties.nanorc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 properties.nanorc diff --git a/properties.nanorc b/properties.nanorc new file mode 100644 index 0000000..bb75d45 --- /dev/null +++ b/properties.nanorc @@ -0,0 +1,6 @@ +syntax "properties" "\.properties$" +# property key +icolor green "^[^:=]+[:=]" + +# comments +icolor blue "([[:space:]])*[#!].*$" From 69818fa42581903e71165216da511dafd09891ba Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 26 Mar 2020 11:15:36 +0530 Subject: [PATCH 48/88] kotlin: Add suspend modifier Signed-off-by: Harsh Shandilya --- kotlin.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin.nanorc b/kotlin.nanorc index d9f3ea1..a69516f 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -8,7 +8,7 @@ syntax "kotlin" "\.kt$" "\.kts$" color magenta "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" color yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" -color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor|companion|const)\>" +color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor|companion|const|suspend)\>" color yellow "\<(true|false|null)\>" color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>" color brightred "\<(inner|outer)\>" From cfa6717850d7b7f2417917a736fbdc5fb2dfc816 Mon Sep 17 00:00:00 2001 From: Ryan Westlund Date: Wed, 8 Apr 2020 09:16:57 -0400 Subject: [PATCH 49/88] Improve haskell.nanorc --- haskell.nanorc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/haskell.nanorc b/haskell.nanorc index f42ba06..bb2a290 100644 --- a/haskell.nanorc +++ b/haskell.nanorc @@ -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 "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})" @@ -16,13 +15,15 @@ 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 "--.*" From 8b3b92ae392171c0bea9b7e288e5e20d1bbce284 Mon Sep 17 00:00:00 2001 From: Ryan Westlund Date: Sun, 12 Apr 2020 09:29:23 -0400 Subject: [PATCH 50/88] Fix #299: Make comments not black in nginx syntax --- nginx.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.nanorc b/nginx.nanorc index 0efc239..6735073 100644 --- a/nginx.nanorc +++ b/nginx.nanorc @@ -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 " + +| + +" From c82f8da66106062323b0968b4004dbb09e33ae3a Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Thu, 16 Apr 2020 12:33:49 +1200 Subject: [PATCH 51/88] feat(js): format template strings --- js.nanorc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js.nanorc b/js.nanorc index a986743..8991928 100644 --- a/js.nanorc +++ b/js.nanorc @@ -42,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:]]+$" From 4874956f4261790d5de20e87be22cca79f8501d9 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sun, 19 Apr 2020 17:33:58 -0400 Subject: [PATCH 52/88] * Email: Use extension, allow spaces after quote indent --- email.nanorc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/email.nanorc b/email.nanorc index fd3cf70..60eea88 100644 --- a/email.nanorc +++ b/email.nanorc @@ -1,5 +1,5 @@ -syntax "Email" +syntax "Email" "\.em(ai)?l$" color magenta "^>([^>].*|$)" -color blue "^>>([^>].*|$)" -color green "^>>>.*" +color blue "^> ?>([^>].*|$)" +color green "^> ?> ?>.*" From 6cbe4a99af693c7ff876a42354ec438c72579f21 Mon Sep 17 00:00:00 2001 From: yzzyx Date: Fri, 24 Apr 2020 09:22:09 -0500 Subject: [PATCH 53/88] Add support for Gophermap and Gemini markdown files --- gemini.nanorc | 21 +++++++++++++++++++++ gophermap.nanorc | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 gemini.nanorc create mode 100644 gophermap.nanorc diff --git a/gemini.nanorc b/gemini.nanorc new file mode 100644 index 0000000..ac8f9d4 --- /dev/null +++ b/gemini.nanorc @@ -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="^```" diff --git a/gophermap.nanorc b/gophermap.nanorc new file mode 100644 index 0000000..7c868e2 --- /dev/null +++ b/gophermap.nanorc @@ -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 "#.*" From be00d820d543ae8bfa1197aa0d6969c47fbc59ff Mon Sep 17 00:00:00 2001 From: hdquemada <44162051+hdquemada@users.noreply.github.com> Date: Mon, 27 Apr 2020 00:09:25 -0400 Subject: [PATCH 54/88] Update asciidoc.nanorc 2020-04-27 --- asciidoc.nanorc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asciidoc.nanorc b/asciidoc.nanorc index b16a74e..1f9d2cc 100644 --- a/asciidoc.nanorc +++ b/asciidoc.nanorc @@ -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 From e35d6674f476901e6c429ef2bb7ac2ddf1ee5978 Mon Sep 17 00:00:00 2001 From: hdquemada <44162051+hdquemada@users.noreply.github.com> Date: Thu, 30 Apr 2020 10:31:24 -0400 Subject: [PATCH 55/88] Update groff.nanorc 2020-04-30 Changed to allow coloring of more than the first letter of the macro commancs --- groff.nanorc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/groff.nanorc b/groff.nanorc index 508c4ab..8b60c74 100644 --- a/groff.nanorc +++ b/groff.nanorc @@ -4,7 +4,7 @@ syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." comment ".\"" ## The argument of .ds or .nr -color cyan "^\.(ds|nr) [^[[:space:]]]*" +color cyan "^\.(ds|nr) [^[[:space:]]]*[^[[:space:]]]*" ## Single character escapes color brightmagenta "\\." ## Highlight the argument of \f or \s in the same color @@ -13,7 +13,8 @@ color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" color cyan "(\\|\\\\)n(.|\(..)" color cyan start="(\\|\\\\)n\[" end="]" ## Requests -color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" +#color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" +color brightgreen "^\.[[:space:]]*[^[[:space:]]]*[^[[:space:]]]*" ## Comments color yellow "^\.\\".*$" ## Strings From 104dde0fb103077c3c11c7bb3d6eaf41fd3703b1 Mon Sep 17 00:00:00 2001 From: hdquemada <44162051+hdquemada@users.noreply.github.com> Date: Thu, 30 Apr 2020 10:36:04 -0400 Subject: [PATCH 56/88] Update groff.nanorc 2020-04-30 deleted old line commented out --- groff.nanorc | 1 - 1 file changed, 1 deletion(-) diff --git a/groff.nanorc b/groff.nanorc index 8b60c74..95e0ee4 100644 --- a/groff.nanorc +++ b/groff.nanorc @@ -13,7 +13,6 @@ color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" color cyan "(\\|\\\\)n(.|\(..)" color cyan start="(\\|\\\\)n\[" end="]" ## Requests -#color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" color brightgreen "^\.[[:space:]]*[^[[:space:]]]*[^[[:space:]]]*" ## Comments color yellow "^\.\\".*$" From 1ef8583bae1c0d958bf26bb6ae25db0931552ce1 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 1 May 2020 10:22:23 +1200 Subject: [PATCH 57/88] fix(php): only highlight the spaces that are trailing --- php.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php.nanorc b/php.nanorc index 33f6f9a..de27228 100644 --- a/php.nanorc +++ b/php.nanorc @@ -37,6 +37,6 @@ 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="\*/" From 694cacc2853187d97d3a0954784cf9a6e000ae4f Mon Sep 17 00:00:00 2001 From: hdquemada <44162051+hdquemada@users.noreply.github.com> Date: Thu, 30 Apr 2020 21:10:06 -0400 Subject: [PATCH 58/88] Update groff.nanorc added original line to allow color of some macros that only have one letter after . --- groff.nanorc | 1 + 1 file changed, 1 insertion(+) diff --git a/groff.nanorc b/groff.nanorc index 95e0ee4..fdf794f 100644 --- a/groff.nanorc +++ b/groff.nanorc @@ -14,6 +14,7 @@ color cyan "(\\|\\\\)n(.|\(..)" color cyan start="(\\|\\\\)n\[" end="]" ## Requests color brightgreen "^\.[[:space:]]*[^[[:space:]]]*[^[[:space:]]]*" +color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" ## Comments color yellow "^\.\\".*$" ## Strings From e5dad505ff318d0b1f9f2abf18bd433e432334d9 Mon Sep 17 00:00:00 2001 From: yzzyx Date: Tue, 5 May 2020 06:46:23 -0500 Subject: [PATCH 59/88] Add support for MoonScript Based on https://github.com/leafo/moonscript-vim --- moonscript.nanorc | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 moonscript.nanorc diff --git a/moonscript.nanorc b/moonscript.nanorc new file mode 100644 index 0000000..776a27a --- /dev/null +++ b/moonscript.nanorc @@ -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 "--.*" From b847f09c596eb95d1bfc19408c9ab0e9de3a884a Mon Sep 17 00:00:00 2001 From: yzzyx Date: Fri, 8 May 2020 12:15:24 -0500 Subject: [PATCH 60/88] Add Sieve script syntax resolves issue #303 --- sieve.nanorc | 187 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 sieve.nanorc diff --git a/sieve.nanorc b/sieve.nanorc new file mode 100644 index 0000000..d33eb48 --- /dev/null +++ b/sieve.nanorc @@ -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="^.$" From 816a67f20237c9cc8e5883bd3c93030af77e1f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=C3=AFleurre?= <66210874+oileurre@users.noreply.github.com> Date: Sun, 7 Jun 2020 14:20:21 +0200 Subject: [PATCH 61/88] Create creole.nanorc --- creole.nanorc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 creole.nanorc diff --git a/creole.nanorc b/creole.nanorc new file mode 100644 index 0000000..f86c203 --- /dev/null +++ b/creole.nanorc @@ -0,0 +1,20 @@ +syntax "Creole" "\.creole$" + +# Headers +color magenta "^=.*=$" + +# Emphasis +color yellow start="//" end="//" +color brightyellow start="\*\*" end="\*\*" + +# Lists +color green "^[#*]+\s.*" + +# Links and images +color cyan start="\[\[" end="\]\]" +color cyan start="\{\{" end="\}\}" + +# Pre and tables +color red start="\{\{\{" end="\}\}\}" +color red "\|" +color brightred "\|=" From 71c21911c4b4b2982fead9f86138336129cf84fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=C3=AFleurre?= <66210874+oileurre@users.noreply.github.com> Date: Mon, 8 Jun 2020 12:29:48 +0200 Subject: [PATCH 62/88] Fix collisions between lists and emphasis --- creole.nanorc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/creole.nanorc b/creole.nanorc index f86c203..cca97a6 100644 --- a/creole.nanorc +++ b/creole.nanorc @@ -3,10 +3,6 @@ syntax "Creole" "\.creole$" # Headers color magenta "^=.*=$" -# Emphasis -color yellow start="//" end="//" -color brightyellow start="\*\*" end="\*\*" - # Lists color green "^[#*]+\s.*" @@ -14,7 +10,13 @@ color green "^[#*]+\s.*" 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+$" From 8f5c3cc4294b392d6ea348f7af4f14607143835f Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 20 Jun 2020 23:03:33 +0530 Subject: [PATCH 63/88] kotlin: add sealed as a class modifier Signed-off-by: Harsh Shandilya --- kotlin.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin.nanorc b/kotlin.nanorc index a69516f..bde7592 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -8,7 +8,7 @@ syntax "kotlin" "\.kt$" "\.kts$" color magenta "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" color yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" -color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor|companion|const|suspend)\>" +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)\>" From 421f4b36b27154f14e8f9bb89c261ae2d2119a82 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 14 Jul 2020 17:00:56 -0400 Subject: [PATCH 64/88] * PHP: Improve operator coloring, support Nowdocs, Heredocs --- php.nanorc | 46 +++++++++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/php.nanorc b/php.nanorc index de27228..7e2a3ea 100644 --- a/php.nanorc +++ b/php.nanorc @@ -3,35 +3,53 @@ 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 "(\;\;|\|\||::|=>|->)" +color green "(\;\;|\|\||::|=>)" +color cyan "->" # Online Comments -color brightyellow "(#.*|//.*)$" -# STRINGS! -color red "('[^']*')|(\"[^\"]*\")" +color brightyellow "^(#.*|//.*)$" +color brightyellow "[ | ](#.*|//.*)$" +# 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 "('[^']*')" # PHP Tags color red "(<\?(php)?|\?>)" # General HTML @@ -40,3 +58,5 @@ color red start="\?>" end="<\?(php|=)?" 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_]*;" From d307f5a75b3a8ac8cab564b45f6f9fe35dc966d0 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 14 Jul 2020 17:20:52 -0400 Subject: [PATCH 65/88] * PHP: Decrease priority of inline comment --- php.nanorc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php.nanorc b/php.nanorc index 7e2a3ea..26e5cb6 100644 --- a/php.nanorc +++ b/php.nanorc @@ -39,9 +39,6 @@ color yellow "( and | or | xor |!|&&|\|\|)" # And/Or/SRO/etc color green "(\;\;|\|\||::|=>)" color cyan "->" -# Online Comments -color brightyellow "^(#.*|//.*)$" -color brightyellow "[ | ](#.*|//.*)$" # Double quoted STRINGS! color red "(\"[^\"]*\")" # Heredoc (typically ends with a semicolon). @@ -50,6 +47,9 @@ color red start="<<<['\"]?[A-Z][A-Z0-9_]*['\"]?" end="^[A-Z][A-Z0-9_]*;" color white "\{\$[^}]*\}" # Single quoted string color red "('[^']*')" +# Online Comments +color brightyellow "^(#.*|//.*)$" +color brightyellow "[ | ](#.*|//.*)$" # PHP Tags color red "(<\?(php)?|\?>)" # General HTML From e50fb095bfea449a60a62a9a28e007f76476ee51 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 15 Jul 2020 14:50:36 -0400 Subject: [PATCH 66/88] * PHP: Make paamayim nekodotayim same color as arrow --- php.nanorc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php.nanorc b/php.nanorc index 26e5cb6..693695f 100644 --- a/php.nanorc +++ b/php.nanorc @@ -37,8 +37,7 @@ color yellow "(==|===|!=|<>|!==|<=|>=|<=>)" # Logical Operators color yellow "( and | or | xor |!|&&|\|\|)" # And/Or/SRO/etc -color green "(\;\;|\|\||::|=>)" -color cyan "->" +color cyan "(\;\;|\|\||::|=>|->)" # Double quoted STRINGS! color red "(\"[^\"]*\")" # Heredoc (typically ends with a semicolon). From 94f8d695c144366e431d18b7ed89f830c3da6e10 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Wed, 5 Aug 2020 13:56:49 -0500 Subject: [PATCH 67/88] Added support for Batch (CMD.EXE) --- batch.nanorc | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 batch.nanorc diff --git a/batch.nanorc b/batch.nanorc new file mode 100644 index 0000000..4036de7 --- /dev/null +++ b/batch.nanorc @@ -0,0 +1,39 @@ +## Nano syntax highlighting file for Batch +## Written by Dante Falzone https://github.com/DanteFalzone0 + +syntax "Batch" "\.[bBcC][aAmM][tTdD]$" +comment "REM" + +## Commands for basic I/O +icolor green "\<(cls|echo|pause|choice|more|type)\>" + +## Commands for file operations +icolor green "\<(assoc|cd|copy|del|move|path|rd|ren|vol|attrib|chkdsk|comp|convert)\>" +icolor green "\<(expand|format|label|subst|xcopy|robocopy|fc|diskpart|md|mkdir)\>" + +## Other commands +icolor cyan "\<(ver|dir|date|exit|prompt|start|time|cmd|driverquery|find|help|ipconfig)\>" +icolor cyan "\<(net|ping|shutdown|sort|systeminfo|taskkill|tasklist|tree|title|set)\>" + +## Operators +icolor yellow "[.:;,+*-/|=!<>&%@\"]" + +## Executable files +icolor brightred "[[:graph:]]+\.exe[[:space:]]" +icolor brightred "[[:graph:]]+\.exe$" + +## Switches and labels +icolor brightmagenta "/[[:graph:]]+$" +icolor brightmagenta "/[[:graph:]]+[[:space:]]" + +## Numerals +icolor brightyellow "[[:digit:]]" + +## Block delimeters +icolor magenta "[(){}]" + +## Comments +icolor brightblue "REM.*" + +## Trailing whitespace +color ,green "[[:space:]]+$" From ee9ce560032f3a42d33788f76e7a784a0fd91f1f Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Wed, 5 Aug 2020 13:57:56 -0500 Subject: [PATCH 68/88] fixed file extension matching for batch.nanorc --- batch.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batch.nanorc b/batch.nanorc index 4036de7..0001dd1 100644 --- a/batch.nanorc +++ b/batch.nanorc @@ -1,7 +1,7 @@ ## Nano syntax highlighting file for Batch ## Written by Dante Falzone https://github.com/DanteFalzone0 -syntax "Batch" "\.[bBcC][aAmM][tTdD]$" +syntax "Batch" "\.[bB][aA][tT]$" "\.[cC][mM][dD]$" comment "REM" ## Commands for basic I/O From ad73d1ba5bff7679c49be30d5814c3df734f1811 Mon Sep 17 00:00:00 2001 From: Rashil Gandhi Date: Mon, 10 Aug 2020 18:42:56 +0530 Subject: [PATCH 69/88] Add PowerShell syntax file --- powershell.nanorc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 powershell.nanorc diff --git a/powershell.nanorc b/powershell.nanorc new file mode 100644 index 0000000..db459ee --- /dev/null +++ b/powershell.nanorc @@ -0,0 +1,34 @@ +## Nano syntax highlighting file for PowerShell +## Written by Rashil Gandhi https://github.com/rashil2000 + +syntax "PowerShell" "\.[pP][sS][1]$" "\.[pP][sS][mM][1]$" + +## Commands +icolor cyan "\<(Add-AppPackage|Add-AppPackageVolume|Add-AppProvisionedPackage|Add-ProvisionedAppPackage|Add-ProvisionedAppxPackage|Add-ProvisioningPackage|Add-TrustedProvisioningCertificate|Apply-WindowsUnattend|Disable-PhysicalDiskIndication|Disable-StorageDiagnosticLog|Dismount-AppPackageVolume|Enable-PhysicalDiskIndication|Enable-StorageDiagnosticLog|Flush-Volume|Get-AppPackage|Get-AppPackageDefaultVolume|Get-AppPackageLastError|Get-AppPackageLog|Get-AppPackageManifest|Get-AppPackageVolume|Get-AppProvisionedPackage|Get-DiskSNV|Get-PhysicalDiskSNV|Get-ProvisionedAppPackage|Get-ProvisionedAppxPackage|Get-StorageEnclosureSNV|Initialize-Volume|Mount-AppPackageVolume|Move-AppPackage|Move-SmbClient|Optimize-AppProvisionedPackages|Optimize-ProvisionedAppPackages|Optimize-ProvisionedAppxPackages|Remove-AppPackage|Remove-AppPackageVolume|Remove-AppProvisionedPackage|Remove-EtwTraceSession|Remove-ProvisionedAppPackage|Remove-ProvisionedAppxPackage|Remove-ProvisioningPackage|Remove-TrustedProvisioningCertificate|Set-AppPackageDefaultVolume|Set-AppPackageProvisionedDataFile|Set-AutologgerConfig|Set-EtwTraceSession|Set-ProvisionedAppPackageDataFile|Set-ProvisionedAppXDataFile|Write-FileSystemCache|A:|Add-BitLockerKeyProtector|Add-DnsClientNrptRule|Add-DtcClusterTMMapping|Add-EtwTraceProvider|Add-InitiatorIdToMaskingSet|Add-MpPreference|Add-MpPreference|Add-NetEventNetworkAdapter|Add-NetEventPacketCaptureProvider|Add-NetEventProvider|Add-NetEventVFPProvider|Add-NetEventVmNetworkAdapter|Add-NetEventVmSwitch|Add-NetEventVmSwitchProvider|Add-NetEventWFPCaptureProvider|Add-NetIPHttpsCertBinding|Add-NetLbfoTeamMember|Add-NetLbfoTeamNic|Add-NetNatExternalAddress|Add-NetNatStaticMapping|Add-NetSwitchTeamMember|Add-OdbcDsn|Add-PartitionAccessPath|Add-PhysicalDisk|Add-PoshGitToProfile|Add-Printer|Add-PrinterDriver|Add-PrinterPort|Add-SshKey|Add-StorageFaultDomain|Add-TargetPortToMaskingSet|Add-VirtualDiskToMaskingSet|Add-VpnConnection|Add-VpnConnectionRoute|Add-VpnConnectionTriggerApplication|Add-VpnConnectionTriggerDnsConfiguration|Add-VpnConnectionTriggerTrustedNetwork|AfterAll|AfterEach|Assert-MockCalled|Assert-VerifiableMocks|B:|Backup-BitLockerKeyProtector|BackupToAAD-BitLockerKeyProtector|BeforeAll|BeforeEach|Block-FileShareAccess|Block-SmbShareAccess|C:|cd..|cd\|Clear-BitLockerAutoUnlock|Clear-Disk|Clear-DnsClientCache|Clear-FileStorageTier|Clear-Host|Clear-PcsvDeviceLog|Clear-StorageBusDisk|Clear-StorageDiagnosticInfo|Close-SmbOpenFile|Close-SmbSession|Compress-Archive|Configuration|Connect-IscsiTarget|Connect-VirtualDisk|Context|ConvertFrom-SddlString|Copy-NetFirewallRule|Copy-NetIPsecMainModeCryptoSet|Copy-NetIPsecMainModeRule|Copy-NetIPsecPhase1AuthSet|Copy-NetIPsecPhase2AuthSet|Copy-NetIPsecQuickModeCryptoSet|Copy-NetIPsecRule|D:|Debug-FileShare|Debug-MMAppPrelaunch|Debug-StorageSubSystem|Debug-Volume|Describe|Disable-BitLocker|Disable-BitLockerAutoUnlock|Disable-DAManualEntryPointSelection|Disable-DeliveryOptimizationVerboseLogs|Disable-DscDebug|Disable-MMAgent|Disable-NetAdapter|Disable-NetAdapterBinding|Disable-NetAdapterChecksumOffload|Disable-NetAdapterEncapsulatedPacketTaskOffload|Disable-NetAdapterIPsecOffload|Disable-NetAdapterLso|Disable-NetAdapterPacketDirect|Disable-NetAdapterPowerManagement|Disable-NetAdapterQos|Disable-NetAdapterRdma|Disable-NetAdapterRsc|Disable-NetAdapterRss|Disable-NetAdapterSriov|Disable-NetAdapterUso|Disable-NetAdapterVmq|Disable-NetDnsTransitionConfiguration|Disable-NetFirewallRule|Disable-NetIPHttpsProfile|Disable-NetIPsecMainModeRule|Disable-NetIPsecRule|Disable-NetNatTransitionConfiguration|Disable-NetworkSwitchEthernetPort|Disable-NetworkSwitchFeature|Disable-NetworkSwitchVlan|Disable-OdbcPerfCounter|Disable-PhysicalDiskIdentification|Disable-PnpDevice|Disable-PSTrace|Disable-PSWSManCombinedTrace|Disable-ScheduledTask|Disable-SmbDelegation|Disable-StorageBusCache|Disable-StorageBusDisk|Disable-StorageEnclosureIdentification|Disable-StorageEnclosurePower|Disable-StorageHighAvailability|Disable-StorageMaintenanceMode|Disable-WdacBidTrace|Disable-WSManTrace|Disconnect-IscsiTarget|Disconnect-VirtualDisk|Dismount-DiskImage|E:|Enable-BitLocker|Enable-BitLockerAutoUnlock|Enable-DAManualEntryPointSelection|Enable-DeliveryOptimizationVerboseLogs|Enable-DscDebug|Enable-GitColors|Enable-MMAgent|Enable-NetAdapter|Enable-NetAdapterBinding|Enable-NetAdapterChecksumOffload|Enable-NetAdapterEncapsulatedPacketTaskOffload|Enable-NetAdapterIPsecOffload|Enable-NetAdapterLso|Enable-NetAdapterPacketDirect|Enable-NetAdapterPowerManagement|Enable-NetAdapterQos|Enable-NetAdapterRdma|Enable-NetAdapterRsc|Enable-NetAdapterRss|Enable-NetAdapterSriov|Enable-NetAdapterUso|Enable-NetAdapterVmq|Enable-NetDnsTransitionConfiguration|Enable-NetFirewallRule|Enable-NetIPHttpsProfile|Enable-NetIPsecMainModeRule|Enable-NetIPsecRule|Enable-NetNatTransitionConfiguration|Enable-NetworkSwitchEthernetPort|Enable-NetworkSwitchFeature|Enable-NetworkSwitchVlan|Enable-OdbcPerfCounter|Enable-PhysicalDiskIdentification|Enable-PnpDevice|Enable-PSTrace|Enable-PSWSManCombinedTrace|Enable-ScheduledTask|Enable-SmbDelegation|Enable-StorageBusCache|Enable-StorageBusDisk|Enable-StorageEnclosureIdentification|Enable-StorageEnclosurePower|Enable-StorageHighAvailability|Enable-StorageMaintenanceMode|Enable-WdacBidTrace|Enable-WSManTrace|Expand-Archive|Expand-GitCommand|Export-ODataEndpointProxy|Export-ScheduledTask|F:|Find-Command|Find-Command|Find-Command|Find-DSCResource|Find-DSCResource|Find-DscResource|Find-Module|Find-Module|Find-Module|Find-NetIPsecRule|Find-NetRoute|Find-RoleCapability|Find-RoleCapability|Find-RoleCapability|Find-Script|Find-Script|Find-Script|Flush-EtwTraceSession|Format-Hex|Format-Volume|G:|Get-AliasPattern|Get-AppBackgroundTask|Get-AppxLastError|Get-AppxLog|Get-AutologgerConfig|Get-BitLockerVolume|Get-ClusteredScheduledTask|Get-ComputerName|Get-CredsFromCredentialProvider|Get-CredsFromCredentialProvider|Get-DAClientExperienceConfiguration|Get-DAConnectionStatus|Get-DAEntryPointTableItem|Get-DedupProperties|Get-DeliveryOptimizationPerfSnap|Get-DeliveryOptimizationPerfSnapThisMonth|Get-DeliveryOptimizationStatus|Get-Disk|Get-DiskImage|Get-DiskStorageNodeView|Get-DnsClient|Get-DnsClientCache|Get-DnsClientGlobalSetting|Get-DnsClientNrptGlobal|Get-DnsClientNrptPolicy|Get-DnsClientNrptRule|Get-DnsClientServerAddress|Get-DOConfig|Get-DODownloadMode|Get-DOPercentageMaxBackgroundBandwidth|Get-DOPercentageMaxForegroundBandwidth|Get-DscConfiguration|Get-DscConfigurationStatus|Get-DscLocalConfigurationManager|Get-DscResource|Get-Dtc|Get-DtcAdvancedHostSetting|Get-DtcAdvancedSetting|Get-DtcClusterDefault|Get-DtcClusterTMMapping|Get-DtcDefault|Get-DtcLog|Get-DtcNetworkSetting|Get-DtcTransaction|Get-DtcTransactionsStatistics|Get-DtcTransactionsTraceSession|Get-DtcTransactionsTraceSetting|Get-EtwTraceProvider|Get-EtwTraceSession|Get-FileHash|Get-FileIntegrity|Get-FileShare|Get-FileShareAccessControlEntry|Get-FileStorageTier|Get-FormattedRootLocation|Get-FullPath|Get-GitBranch|Get-GitDirectory|Get-GitStatus|Get-HnsEndpoint|Get-HnsNamespace|Get-HnsNetwork|Get-HnsPolicyList|Get-InitiatorId|Get-InitiatorPort|Get-InstalledModule|Get-InstalledModule|Get-InstalledModule|Get-InstalledScript|Get-InstalledScript|Get-InstalledScript|Get-IscsiConnection|Get-IscsiSession|Get-IscsiTarget|Get-IscsiTargetPortal|Get-IseSnippet|Get-LogProperties|Get-MaskingSet|Get-MMAgent|Get-MockDynamicParameters|Get-MpComputerStatus|Get-MpComputerStatus|Get-MpPreference|Get-MpPreference|Get-MpThreat|Get-MpThreat|Get-MpThreatCatalog|Get-MpThreatCatalog|Get-MpThreatDetection|Get-MpThreatDetection|Get-NCSIPolicyConfiguration|Get-Net6to4Configuration|Get-NetAdapter|Get-NetAdapterAdvancedProperty|Get-NetAdapterBinding|Get-NetAdapterChecksumOffload|Get-NetAdapterEncapsulatedPacketTaskOffload|Get-NetAdapterHardwareInfo|Get-NetAdapterIPsecOffload|Get-NetAdapterLso|Get-NetAdapterPacketDirect|Get-NetAdapterPowerManagement|Get-NetAdapterQos|Get-NetAdapterRdma|Get-NetAdapterRsc|Get-NetAdapterRss|Get-NetAdapterSriov|Get-NetAdapterSriovVf|Get-NetAdapterStatistics|Get-NetAdapterUso|Get-NetAdapterVmq|Get-NetAdapterVMQQueue|Get-NetAdapterVPort|Get-NetCompartment|Get-NetConnectionProfile|Get-NetDnsTransitionConfiguration|Get-NetDnsTransitionMonitoring|Get-NetEventNetworkAdapter|Get-NetEventPacketCaptureProvider|Get-NetEventProvider|Get-NetEventSession|Get-NetEventVFPProvider|Get-NetEventVmNetworkAdapter|Get-NetEventVmSwitch|Get-NetEventVmSwitchProvider|Get-NetEventWFPCaptureProvider|Get-NetFirewallAddressFilter|Get-NetFirewallApplicationFilter|Get-NetFirewallInterfaceFilter|Get-NetFirewallInterfaceTypeFilter|Get-NetFirewallPortFilter|Get-NetFirewallProfile|Get-NetFirewallRule|Get-NetFirewallSecurityFilter|Get-NetFirewallServiceFilter|Get-NetFirewallSetting|Get-NetIPAddress|Get-NetIPConfiguration|Get-NetIPHttpsConfiguration|Get-NetIPHttpsState|Get-NetIPInterface|Get-NetIPsecDospSetting|Get-NetIPsecMainModeCryptoSet|Get-NetIPsecMainModeRule|Get-NetIPsecMainModeSA|Get-NetIPsecPhase1AuthSet|Get-NetIPsecPhase2AuthSet|Get-NetIPsecQuickModeCryptoSet|Get-NetIPsecQuickModeSA|Get-NetIPsecRule|Get-NetIPv4Protocol|Get-NetIPv6Protocol|Get-NetIsatapConfiguration|Get-NetLbfoTeam|Get-NetLbfoTeamMember|Get-NetLbfoTeamNic|Get-NetNat|Get-NetNatExternalAddress|Get-NetNatGlobal|Get-NetNatSession|Get-NetNatStaticMapping|Get-NetNatTransitionConfiguration|Get-NetNatTransitionMonitoring|Get-NetNeighbor|Get-NetOffloadGlobalSetting|Get-NetPrefixPolicy|Get-NetQosPolicy|Get-NetRoute|Get-NetSwitchTeam|Get-NetSwitchTeamMember|Get-NetTCPConnection|Get-NetTCPSetting|Get-NetTeredoConfiguration|Get-NetTeredoState|Get-NetTransportFilter|Get-NetUDPEndpoint|Get-NetUDPSetting|Get-NetView|Get-NetworkSwitchEthernetPort|Get-NetworkSwitchFeature|Get-NetworkSwitchGlobalData|Get-NetworkSwitchVlan|Get-OdbcDriver|Get-OdbcDsn|Get-OdbcPerfCounter|Get-OffloadDataTransferSetting|Get-OperationValidation|Get-Partition|Get-PartitionSupportedSize|Get-PcsvDevice|Get-PcsvDeviceLog|Get-PhysicalDisk|Get-PhysicalDiskStorageNodeView|Get-PhysicalExtent|Get-PhysicalExtentAssociation|Get-PnpDevice|Get-PnpDeviceProperty|Get-PrintConfiguration|Get-Printer|Get-PrinterDriver|Get-PrinterPort|Get-PrinterProperty|Get-PrintJob|Get-PromptPath|Get-PSRepository|Get-PSRepository|Get-PSRepository|Get-ResiliencySetting|Get-ScheduledTask|Get-ScheduledTaskInfo|Get-ShortPath|Get-SmbBandWidthLimit|Get-SmbClientConfiguration|Get-SmbClientNetworkInterface|Get-SmbConnection|Get-SmbDelegation|Get-SmbGlobalMapping|Get-SmbMapping|Get-SmbMultichannelConnection|Get-SmbMultichannelConstraint|Get-SmbOpenFile|Get-SmbServerCertificateMapping|Get-SmbServerConfiguration|Get-SmbServerNetworkInterface|Get-SmbSession|Get-SmbShare|Get-SmbShareAccess|Get-SmbWitnessClient|Get-SshAgent|Get-SshPath|Get-StartApps|Get-StorageAdvancedProperty|Get-StorageBusBinding|Get-StorageBusDisk|Get-StorageChassis|Get-StorageDiagnosticInfo|Get-StorageEnclosure|Get-StorageEnclosureStorageNodeView|Get-StorageEnclosureVendorData|Get-StorageExtendedStatus|Get-StorageFaultDomain|Get-StorageFileServer|Get-StorageFirmwareInformation|Get-StorageHealthAction|Get-StorageHealthReport|Get-StorageHealthSetting|Get-StorageHistory|Get-StorageJob|Get-StorageNode|Get-StoragePool|Get-StorageProvider|Get-StorageRack|Get-StorageReliabilityCounter|Get-StorageScaleUnit|Get-StorageSetting|Get-StorageSite|Get-StorageSubSystem|Get-StorageTier|Get-StorageTierSupportedSize|Get-SupportedClusterSizes|Get-SupportedFileSystems|Get-TargetPort|Get-TargetPortal|Get-TestDriveItem|Get-Theme|Get-ThemesLocation|Get-VcsInfo|Get-VCSStatus|Get-Verb|Get-VirtualDisk|Get-VirtualDiskSupportedSize|Get-VirtualEnvName|Get-Volume|Get-VolumeCorruptionCount|Get-VolumeScrubPolicy|Get-VpnConnection|Get-VpnConnectionTrigger|Get-WdacBidTrace|Get-WindowsUpdateLog|Get-WUAVersion|Get-WUIsPendingReboot|Get-WULastInstallationDate|Get-WULastScanSuccessDate|Grant-FileShareAccess|Grant-SmbShareAccess|H:|help|Hide-VirtualDisk|I:|Import-IseSnippet|Import-PowerShellDataFile|ImportSystemModules|In|Initialize-Disk|InModuleScope|Install-Dtc|Install-Module|Install-Module|Install-Module|Install-Script|Install-Script|Install-Script|Install-WUUpdates|Invoke-AsWorkflow|Invoke-Mock|Invoke-NullCoalescing|Invoke-OperationValidation|Invoke-Pester|It|J:|K:|L:|Lock-BitLocker|M:|mkdir|Mock|more|Mount-DiskImage|Move-SmbWitnessClient|N:|New-AutologgerConfig|New-DAEntryPointTableItem|New-DscChecksum|New-EapConfiguration|New-EtwTraceSession|New-FileShare|New-Fixture|New-Guid|New-IscsiTargetPortal|New-IseSnippet|New-MaskingSet|New-NetAdapterAdvancedProperty|New-NetEventSession|New-NetFirewallRule|New-NetIPAddress|New-NetIPHttpsConfiguration|New-NetIPsecDospSetting|New-NetIPsecMainModeCryptoSet|New-NetIPsecMainModeRule|New-NetIPsecPhase1AuthSet|New-NetIPsecPhase2AuthSet|New-NetIPsecQuickModeCryptoSet|New-NetIPsecRule|New-NetLbfoTeam|New-NetNat|New-NetNatTransitionConfiguration|New-NetNeighbor|New-NetQosPolicy|New-NetRoute|New-NetSwitchTeam|New-NetTransportFilter|New-NetworkSwitchVlan|New-Partition|New-PesterOption|New-PSWorkflowSession|New-ScheduledTask|New-ScheduledTaskAction|New-ScheduledTaskPrincipal|New-ScheduledTaskSettingsSet|New-ScheduledTaskTrigger|New-ScriptFileInfo|New-ScriptFileInfo|New-ScriptFileInfo|New-SmbGlobalMapping|New-SmbMapping|New-SmbMultichannelConstraint|New-SmbServerCertificateMapping|New-SmbShare|New-StorageBusBinding|New-StorageBusCacheStore|New-StorageFileServer|New-StoragePool|New-StorageSubsystemVirtualDisk|New-StorageTier|New-TemporaryFile|New-VirtualDisk|New-VirtualDiskClone|New-VirtualDiskSnapshot|New-Volume|New-VpnServerAddress|O:|Open-NetGPO|Optimize-StoragePool|Optimize-Volume|oss|Out-Default|P:|Pause|prompt|PSConsoleHostReadLine|Publish-Module|Publish-Module|Publish-Module|Publish-Script|Publish-Script|Publish-Script|Q:|R:|Read-PrinterNfcTag|Register-ClusteredScheduledTask|Register-DnsClient|Register-IscsiSession|Register-PSRepository|Register-PSRepository|Register-PSRepository|Register-ScheduledTask|Register-StorageSubsystem|Remove-AutologgerConfig|Remove-BitLockerKeyProtector|Remove-DAEntryPointTableItem|Remove-DnsClientNrptRule|Remove-DscConfigurationDocument|Remove-DtcClusterTMMapping|Remove-EtwTraceProvider|Remove-FileShare|Remove-HnsEndpoint|Remove-HnsNamespace|Remove-HnsNetwork|Remove-HnsPolicyList|Remove-InitiatorId|Remove-InitiatorIdFromMaskingSet|Remove-IscsiTargetPortal|Remove-MaskingSet|Remove-MpPreference|Remove-MpPreference|Remove-MpThreat|Remove-MpThreat|Remove-NetAdapterAdvancedProperty|Remove-NetEventNetworkAdapter|Remove-NetEventPacketCaptureProvider|Remove-NetEventProvider|Remove-NetEventSession|Remove-NetEventVFPProvider|Remove-NetEventVmNetworkAdapter|Remove-NetEventVmSwitch|Remove-NetEventVmSwitchProvider|Remove-NetEventWFPCaptureProvider|Remove-NetFirewallRule|Remove-NetIPAddress|Remove-NetIPHttpsCertBinding|Remove-NetIPHttpsConfiguration|Remove-NetIPsecDospSetting|Remove-NetIPsecMainModeCryptoSet|Remove-NetIPsecMainModeRule|Remove-NetIPsecMainModeSA|Remove-NetIPsecPhase1AuthSet|Remove-NetIPsecPhase2AuthSet|Remove-NetIPsecQuickModeCryptoSet|Remove-NetIPsecQuickModeSA|Remove-NetIPsecRule|Remove-NetLbfoTeam|Remove-NetLbfoTeamMember|Remove-NetLbfoTeamNic|Remove-NetNat|Remove-NetNatExternalAddress|Remove-NetNatStaticMapping|Remove-NetNatTransitionConfiguration|Remove-NetNeighbor|Remove-NetQosPolicy|Remove-NetRoute|Remove-NetSwitchTeam|Remove-NetSwitchTeamMember|Remove-NetTransportFilter|Remove-NetworkSwitchEthernetPortIPAddress|Remove-NetworkSwitchVlan|Remove-OdbcDsn|Remove-Partition|Remove-PartitionAccessPath|Remove-PhysicalDisk|Remove-Printer|Remove-PrinterDriver|Remove-PrinterPort|Remove-PrintJob|Remove-SmbBandwidthLimit|Remove-SmbGlobalMapping|Remove-SmbMapping|Remove-SmbMultichannelConstraint|Remove-SmbServerCertificateMapping|Remove-SmbShare|Remove-StorageBusBinding|Remove-StorageFaultDomain|Remove-StorageFileServer|Remove-StorageHealthIntent|Remove-StorageHealthSetting|Remove-StoragePool|Remove-StorageTier|Remove-TargetPortFromMaskingSet|Remove-VirtualDisk|Remove-VirtualDiskFromMaskingSet|Remove-VpnConnection|Remove-VpnConnectionRoute|Remove-VpnConnectionTriggerApplication|Remove-VpnConnectionTriggerDnsConfiguration|Remove-VpnConnectionTriggerTrustedNetwork|Rename-DAEntryPointTableItem|Rename-MaskingSet|Rename-NetAdapter|Rename-NetFirewallRule|Rename-NetIPHttpsConfiguration|Rename-NetIPsecMainModeCryptoSet|Rename-NetIPsecMainModeRule|Rename-NetIPsecPhase1AuthSet|Rename-NetIPsecPhase2AuthSet|Rename-NetIPsecQuickModeCryptoSet|Rename-NetIPsecRule|Rename-NetLbfoTeam|Rename-NetSwitchTeam|Rename-Printer|Repair-FileIntegrity|Repair-VirtualDisk|Repair-Volume|Reset-DAClientExperienceConfiguration|Reset-DAEntryPointTableItem|Reset-DtcLog|Reset-NCSIPolicyConfiguration|Reset-Net6to4Configuration|Reset-NetAdapterAdvancedProperty|Reset-NetDnsTransitionConfiguration|Reset-NetIPHttpsConfiguration|Reset-NetIsatapConfiguration|Reset-NetTeredoConfiguration|Reset-PhysicalDisk|Reset-StorageReliabilityCounter|Resize-Partition|Resize-StorageTier|Resize-VirtualDisk|Restart-NetAdapter|Restart-PcsvDevice|Restart-PrintJob|Restore-DscConfiguration|Restore-NetworkSwitchConfiguration|Resume-BitLocker|Resume-PrintJob|Resume-StorageBusDisk|Revoke-FileShareAccess|Revoke-SmbShareAccess|S:|SafeGetCommand|Save-EtwTraceSession|Save-Module|Save-Module|Save-Module|Save-NetGPO|Save-NetworkSwitchConfiguration|Save-Script|Save-Script|Save-Script|Send-EtwTraceSession|Set-ClusteredScheduledTask|Set-CursorForRightBlockWrite|Set-CursorUp|Set-DAClientExperienceConfiguration|Set-DAEntryPointTableItem|Set-Disk|Set-DnsClient|Set-DnsClientGlobalSetting|Set-DnsClientNrptGlobal|Set-DnsClientNrptRule|Set-DnsClientServerAddress|Set-DtcAdvancedHostSetting|Set-DtcAdvancedSetting|Set-DtcClusterDefault|Set-DtcClusterTMMapping|Set-DtcDefault|Set-DtcLog|Set-DtcNetworkSetting|Set-DtcTransaction|Set-DtcTransactionsTraceSession|Set-DtcTransactionsTraceSetting|Set-DynamicParameterVariables|Set-EtwTraceProvider|Set-FileIntegrity|Set-FileShare|Set-FileStorageTier|Set-InitiatorPort|Set-IscsiChapSecret|Set-LogProperties|Set-MMAgent|Set-MpPreference|Set-MpPreference|Set-NCSIPolicyConfiguration|Set-Net6to4Configuration|Set-NetAdapter|Set-NetAdapterAdvancedProperty|Set-NetAdapterBinding|Set-NetAdapterChecksumOffload|Set-NetAdapterEncapsulatedPacketTaskOffload|Set-NetAdapterIPsecOffload|Set-NetAdapterLso|Set-NetAdapterPacketDirect|Set-NetAdapterPowerManagement|Set-NetAdapterQos|Set-NetAdapterRdma|Set-NetAdapterRsc|Set-NetAdapterRss|Set-NetAdapterSriov|Set-NetAdapterUso|Set-NetAdapterVmq|Set-NetConnectionProfile|Set-NetDnsTransitionConfiguration|Set-NetEventPacketCaptureProvider|Set-NetEventProvider|Set-NetEventSession|Set-NetEventVFPProvider|Set-NetEventVmSwitchProvider|Set-NetEventWFPCaptureProvider|Set-NetFirewallAddressFilter|Set-NetFirewallApplicationFilter|Set-NetFirewallInterfaceFilter|Set-NetFirewallInterfaceTypeFilter|Set-NetFirewallPortFilter|Set-NetFirewallProfile|Set-NetFirewallRule|Set-NetFirewallSecurityFilter|Set-NetFirewallServiceFilter|Set-NetFirewallSetting|Set-NetIPAddress|Set-NetIPHttpsConfiguration|Set-NetIPInterface|Set-NetIPsecDospSetting|Set-NetIPsecMainModeCryptoSet|Set-NetIPsecMainModeRule|Set-NetIPsecPhase1AuthSet|Set-NetIPsecPhase2AuthSet|Set-NetIPsecQuickModeCryptoSet|Set-NetIPsecRule|Set-NetIPv4Protocol|Set-NetIPv6Protocol|Set-NetIsatapConfiguration|Set-NetLbfoTeam|Set-NetLbfoTeamMember|Set-NetLbfoTeamNic|Set-NetNat|Set-NetNatGlobal|Set-NetNatTransitionConfiguration|Set-NetNeighbor|Set-NetOffloadGlobalSetting|Set-NetQosPolicy|Set-NetRoute|Set-NetTCPSetting|Set-NetTeredoConfiguration|Set-NetUDPSetting|Set-NetworkSwitchEthernetPortIPAddress|Set-NetworkSwitchPortMode|Set-NetworkSwitchPortProperty|Set-NetworkSwitchVlanProperty|Set-Newline|Set-OdbcDriver|Set-OdbcDsn|Set-Partition|Set-PcsvDeviceBootConfiguration|Set-PcsvDeviceNetworkConfiguration|Set-PcsvDeviceUserPassword|Set-PhysicalDisk|Set-PrintConfiguration|Set-Printer|Set-PrinterProperty|Set-Prompt|Set-PSRepository|Set-PSRepository|Set-PSRepository|Set-ResiliencySetting|Set-ScheduledTask|Set-SmbBandwidthLimit|Set-SmbClientConfiguration|Set-SmbPathAcl|Set-SmbServerConfiguration|Set-SmbShare|Set-StorageBusProfile|Set-StorageFileServer|Set-StorageHealthSetting|Set-StoragePool|Set-StorageProvider|Set-StorageSetting|Set-StorageSubSystem|Set-StorageTier|Set-TestInconclusive|Set-Theme|Setup|Set-VirtualDisk|Set-Volume|Set-VolumeScrubPolicy|Set-VpnConnection|Set-VpnConnectionIPsecConfiguration|Set-VpnConnectionProxy|Set-VpnConnectionTriggerDnsConfiguration|Set-VpnConnectionTriggerTrustedNetwork|Should|Show-Colors|Show-NetFirewallRule|Show-NetIPsecRule|Show-StorageHistory|Show-ThemeColors|Show-ThemeSymbols|Show-VirtualDisk|Start-AppBackgroundTask|Start-AutologgerConfig|Start-Dtc|Start-DtcTransactionsTraceSession|Start-EtwTraceSession|Start-MpScan|Start-MpScan|Start-MpWDOScan|Start-MpWDOScan|Start-NetEventSession|Start-PcsvDevice|Start-ScheduledTask|Start-SshAgent|Start-StorageDiagnosticLog|Start-Trace|Start-WUScan|Stop-DscConfiguration|Stop-Dtc|Stop-DtcTransactionsTraceSession|Stop-EtwTraceSession|Stop-NetEventSession|Stop-PcsvDevice|Stop-ScheduledTask|Stop-SshAgent|Stop-StorageDiagnosticLog|Stop-StorageJob|Stop-Trace|Suspend-BitLocker|Suspend-PrintJob|Suspend-StorageBusDisk|Sync-NetIPsecRule|T:|TabExpansion|TabExpansion2|Test-Administrator|Test-Dtc|Test-NetConnection|Test-NotDefaultUser|Test-ScriptFileInfo|Test-ScriptFileInfo|Test-ScriptFileInfo|Test-VirtualEnv|tgit|U:|Unblock-FileShareAccess|Unblock-SmbShareAccess|Uninstall-Dtc|Uninstall-Module|Uninstall-Module|Uninstall-Module|Uninstall-Script|Uninstall-Script|Uninstall-Script|Unlock-BitLocker|Unregister-AppBackgroundTask|Unregister-ClusteredScheduledTask|Unregister-IscsiSession|Unregister-PSRepository|Unregister-PSRepository|Unregister-PSRepository|Unregister-ScheduledTask|Unregister-StorageSubsystem|Update-AllBranches|Update-AutologgerConfig|Update-Disk|Update-DscConfiguration|Update-EtwTraceSession|Update-HostStorageCache|Update-IscsiTarget|Update-IscsiTargetPortal|Update-Module|Update-Module|Update-Module|Update-ModuleManifest|Update-ModuleManifest|Update-ModuleManifest|Update-MpSignature|Update-MpSignature|Update-NetIPsecRule|Update-Script|Update-Script|Update-Script|Update-ScriptFileInfo|Update-ScriptFileInfo|Update-ScriptFileInfo|Update-SmbMultichannelConnection|Update-StorageFirmware|Update-StoragePool|Update-StorageProviderCache|V:|vimdiff|W:|Write-ColorPreview|Write-DtcTransactionsTraceSession|Write-GitStatus|Write-PrinterNfcTag|Write-Prompt|Write-VcsStatus|Write-VolumeCache|Write-WithPrompt|X:|Y:|Z:|Add-AppxPackage|Add-AppxProvisionedPackage|Add-AppxVolume|Add-BitsFile|Add-CertificateEnrollmentPolicyServer|Add-Computer|Add-Content|Add-History|Add-JobTrigger|Add-KdsRootKey|Add-LocalGroupMember|Add-Member|Add-PSSnapin|Add-Type|Add-WindowsCapability|Add-WindowsDriver|Add-WindowsImage|Add-WindowsPackage|Checkpoint-Computer|Clear-Content|Clear-EventLog|Clear-History|Clear-Item|Clear-ItemProperty|Clear-KdsCache|Clear-RecycleBin|Clear-Tpm|Clear-Variable|Clear-WindowsCorruptMountPoint|Compare-Object|Complete-BitsTransfer|Complete-DtcDiagnosticTransaction|Complete-Transaction|Confirm-SecureBootUEFI|Connect-PSSession|Connect-WSMan|ConvertFrom-Csv|ConvertFrom-Json|ConvertFrom-SecureString|ConvertFrom-String|ConvertFrom-StringData|Convert-Path|Convert-String|ConvertTo-Csv|ConvertTo-Html|ConvertTo-Json|ConvertTo-ProcessMitigationPolicy|ConvertTo-SecureString|ConvertTo-TpmOwnerAuth|ConvertTo-Xml|Copy-Item|Copy-ItemProperty|Debug-Job|Debug-Process|Debug-Runspace|Delete-DeliveryOptimizationCache|Disable-AppBackgroundTaskDiagnosticLog|Disable-ComputerRestore|Disable-JobTrigger|Disable-LocalUser|Disable-PSBreakpoint|Disable-PSRemoting|Disable-PSSessionConfiguration|Disable-RunspaceDebug|Disable-ScheduledJob|Disable-TlsCipherSuite|Disable-TlsEccCurve|Disable-TlsSessionTicketKey|Disable-TpmAutoProvisioning|Disable-WindowsErrorReporting|Disable-WindowsOptionalFeature|Disable-WSManCredSSP|Disconnect-PSSession|Disconnect-WSMan|Dismount-AppxVolume|Dismount-WindowsImage|Enable-AppBackgroundTaskDiagnosticLog|Enable-ComputerRestore|Enable-JobTrigger|Enable-LocalUser|Enable-PSBreakpoint|Enable-PSRemoting|Enable-PSSessionConfiguration|Enable-RunspaceDebug|Enable-ScheduledJob|Enable-TlsCipherSuite|Enable-TlsEccCurve|Enable-TlsSessionTicketKey|Enable-TpmAutoProvisioning|Enable-WindowsErrorReporting|Enable-WindowsOptionalFeature|Enable-WSManCredSSP|Enter-PSHostProcess|Enter-PSSession|Exit-PSHostProcess|Exit-PSSession|Expand-WindowsCustomDataImage|Expand-WindowsImage|Export-Alias|Export-BinaryMiLog|Export-Certificate|Export-Clixml|Export-Console|Export-Counter|Export-Csv|Export-FormatData|Export-ModuleMember|Export-PfxCertificate|Export-ProvisioningPackage|Export-PSSession|Export-StartLayout|Export-StartLayoutEdgeAssets|Export-TlsSessionTicketKey|Export-Trace|Export-WindowsCapabilitySource|Export-WindowsDriver|Export-WindowsImage|Find-Package|Find-PackageProvider|ForEach-Object|Format-Custom|Format-List|Format-SecureBootUEFI|Format-Table|Format-Wide|Get-Acl|Get-Alias|Get-AppxDefaultVolume|Get-AppxPackage|Get-AppxPackageManifest|Get-AppxProvisionedPackage|Get-AppxVolume|Get-AuthenticodeSignature|Get-BitsTransfer|Get-Certificate|Get-CertificateAutoEnrollmentPolicy|Get-CertificateEnrollmentPolicyServer|Get-CertificateNotificationTask|Get-ChildItem|Get-CimAssociatedInstance|Get-CimClass|Get-CimInstance|Get-CimSession|Get-Clipboard|Get-CmsMessage|Get-Command|Get-ComputerInfo|Get-ComputerRestorePoint|Get-Content|Get-ControlPanelItem|Get-Counter|Get-Credential|Get-Culture|Get-DAPolicyChange|Get-Date|Get-DeliveryOptimizationLog|Get-DeliveryOptimizationLogAnalysis|Get-Event|Get-EventLog|Get-EventSubscriber|Get-ExecutionPolicy|Get-FormatData|Get-Help|Get-History|Get-Host|Get-HotFix|Get-Item|Get-ItemProperty|Get-ItemPropertyValue|Get-Job|Get-JobTrigger|Get-KdsConfiguration|Get-KdsRootKey|Get-LocalGroup|Get-LocalGroupMember|Get-LocalUser|Get-Location|Get-Member|Get-Module|Get-NonRemovableAppsPolicy|Get-Package|Get-PackageProvider|Get-PackageSource|Get-PfxCertificate|Get-PfxData|Get-PmemDisk|Get-PmemPhysicalDevice|Get-PmemUnusedRegion|Get-Process|Get-ProcessMitigation|Get-ProvisioningPackage|Get-PSBreakpoint|Get-PSCallStack|Get-PSDrive|Get-PSHostProcessInfo|Get-PSProvider|Get-PSReadLineKeyHandler|Get-PSReadLineOption|Get-PSSession|Get-PSSessionCapability|Get-PSSessionConfiguration|Get-PSSnapin|Get-Random|Get-Runspace|Get-RunspaceDebug|Get-ScheduledJob|Get-ScheduledJobOption|Get-SecureBootPolicy|Get-SecureBootUEFI|Get-Service|Get-TimeZone|Get-TlsCipherSuite|Get-TlsEccCurve|Get-Tpm|Get-TpmEndorsementKeyInfo|Get-TpmSupportedFeature|Get-TraceSource|Get-Transaction|Get-TroubleshootingPack|Get-TrustedProvisioningCertificate|Get-TypeData|Get-UICulture|Get-Unique|Get-Variable|Get-WheaMemoryPolicy|Get-WIMBootEntry|Get-WinAcceptLanguageFromLanguageListOptOut|Get-WinCultureFromLanguageListOptOut|Get-WinDefaultInputMethodOverride|Get-WindowsCapability|Get-WindowsDeveloperLicense|Get-WindowsDriver|Get-WindowsEdition|Get-WindowsErrorReporting|Get-WindowsImage|Get-WindowsImageContent|Get-WindowsOptionalFeature|Get-WindowsPackage|Get-WindowsReservedStorageState|Get-WindowsSearchSetting|Get-WinEvent|Get-WinHomeLocation|Get-WinLanguageBarOption|Get-WinSystemLocale|Get-WinUILanguageOverride|Get-WinUserLanguageList|Get-WmiObject|Get-WSManCredSSP|Get-WSManInstance|Group-Object|Import-Alias|Import-BinaryMiLog|Import-Certificate|Import-Clixml|Import-Counter|Import-Csv|Import-LocalizedData|Import-Module|Import-PackageProvider|Import-PfxCertificate|Import-PSSession|Import-StartLayout|Import-TpmOwnerAuth|Initialize-PmemPhysicalDevice|Initialize-Tpm|Install-Package|Install-PackageProvider|Install-ProvisioningPackage|Install-TrustedProvisioningCertificate|Invoke-CimMethod|Invoke-Command|Invoke-CommandInDesktopPackage|Invoke-DscResource|Invoke-Expression|Invoke-History|Invoke-Item|Invoke-RestMethod|Invoke-TroubleshootingPack|Invoke-WebRequest|Invoke-WmiMethod|Invoke-WSManAction|Join-DtcDiagnosticResourceManager|Join-Path|Limit-EventLog|Measure-Command|Measure-Object|Mount-AppxVolume|Mount-WindowsImage|Move-AppxPackage|Move-Item|Move-ItemProperty|New-Alias|New-CertificateNotificationTask|New-CimInstance|New-CimSession|New-CimSessionOption|New-DtcDiagnosticTransaction|New-Event|New-EventLog|New-FileCatalog|New-Item|New-ItemProperty|New-JobTrigger|New-LocalGroup|New-LocalUser|New-Module|New-ModuleManifest|New-NetIPsecAuthProposal|New-NetIPsecMainModeCryptoProposal|New-NetIPsecQuickModeCryptoProposal|New-Object|New-PmemDisk|New-ProvisioningRepro|New-PSDrive|New-PSRoleCapabilityFile|New-PSSession|New-PSSessionConfigurationFile|New-PSSessionOption|New-PSTransportOption|New-PSWorkflowExecutionOption|New-ScheduledJobOption|New-SelfSignedCertificate|New-Service|New-TimeSpan|New-TlsSessionTicketKey|New-Variable|New-WebServiceProxy|New-WindowsCustomImage|New-WindowsImage|New-WinEvent|New-WinUserLanguageList|New-WSManInstance|New-WSManSessionOption|Optimize-AppxProvisionedPackages|Optimize-WindowsImage|Out-Default|Out-File|Out-GridView|Out-Host|Out-Null|Out-Printer|Out-String|Pop-Location|Protect-CmsMessage|Publish-DscConfiguration|Push-Location|Read-Host|Receive-DtcDiagnosticTransaction|Receive-Job|Receive-PSSession|Register-ArgumentCompleter|Register-CimIndicationEvent|Register-EngineEvent|Register-ObjectEvent|Register-PackageSource|Register-PSSessionConfiguration|Register-ScheduledJob|Register-WmiEvent|Remove-AppxPackage|Remove-AppxProvisionedPackage|Remove-AppxVolume|Remove-BitsTransfer|Remove-CertificateEnrollmentPolicyServer|Remove-CertificateNotificationTask|Remove-CimInstance|Remove-CimSession|Remove-Computer|Remove-Event|Remove-EventLog|Remove-Item|Remove-ItemProperty|Remove-Job|Remove-JobTrigger|Remove-LocalGroup|Remove-LocalGroupMember|Remove-LocalUser|Remove-Module|Remove-PmemDisk|Remove-PSBreakpoint|Remove-PSDrive|Remove-PSReadLineKeyHandler|Remove-PSSession|Remove-PSSnapin|Remove-TypeData|Remove-Variable|Remove-WindowsCapability|Remove-WindowsDriver|Remove-WindowsImage|Remove-WindowsPackage|Remove-WmiObject|Remove-WSManInstance|Rename-Computer|Rename-Item|Rename-ItemProperty|Rename-LocalGroup|Rename-LocalUser|Repair-WindowsImage|Reset-ComputerMachinePassword|Resolve-DnsName|Resolve-Path|Restart-Computer|Restart-Service|Restore-Computer|Resume-BitsTransfer|Resume-Job|Resume-ProvisioningSession|Resume-Service|Save-Help|Save-Package|Save-WindowsImage|Select-Object|Select-String|Select-Xml|Send-DtcDiagnosticTransaction|Send-MailMessage|Set-Acl|Set-Alias|Set-AppBackgroundTaskResourcePolicy|Set-AppxDefaultVolume|Set-AppXProvisionedDataFile|Set-AuthenticodeSignature|Set-BitsTransfer|Set-CertificateAutoEnrollmentPolicy|Set-CimInstance|Set-Clipboard|Set-Content|Set-Culture|Set-Date|Set-DeliveryOptimizationStatus|Set-DODownloadMode|Set-DOPercentageMaxBackgroundBandwidth|Set-DOPercentageMaxForegroundBandwidth|Set-DscLocalConfigurationManager|Set-ExecutionPolicy|Set-Item|Set-ItemProperty|Set-JobTrigger|Set-KdsConfiguration|Set-LocalGroup|Set-LocalUser|Set-Location|Set-NonRemovableAppsPolicy|Set-PackageSource|Set-ProcessMitigation|Set-PSBreakpoint|Set-PSDebug|Set-PSReadLineKeyHandler|Set-PSReadLineOption|Set-PSSessionConfiguration|Set-ScheduledJob|Set-ScheduledJobOption|Set-SecureBootUEFI|Set-Service|Set-StrictMode|Set-TimeZone|Set-TpmOwnerAuth|Set-TraceSource|Set-Variable|Set-WheaMemoryPolicy|Set-WinAcceptLanguageFromLanguageListOptOut|Set-WinCultureFromLanguageListOptOut|Set-WinDefaultInputMethodOverride|Set-WindowsEdition|Set-WindowsProductKey|Set-WindowsReservedStorageState|Set-WindowsSearchSetting|Set-WinHomeLocation|Set-WinLanguageBarOption|Set-WinSystemLocale|Set-WinUILanguageOverride|Set-WinUserLanguageList|Set-WmiInstance|Set-WSManInstance|Set-WSManQuickConfig|Show-Command|Show-ControlPanelItem|Show-EventLog|Show-WindowsDeveloperLicenseRegistration|Sort-Object|Split-Path|Split-WindowsImage|Start-BitsTransfer|Start-DscConfiguration|Start-DtcDiagnosticResourceManager|Start-Job|Start-OSUninstall|Start-Process|Start-Service|Start-Sleep|Start-Transaction|Start-Transcript|Stop-Computer|Stop-DtcDiagnosticResourceManager|Stop-Job|Stop-Process|Stop-Service|Stop-Transcript|Suspend-BitsTransfer|Suspend-Job|Suspend-Service|Switch-Certificate|Tee-Object|Test-Certificate|Test-ComputerSecureChannel|Test-Connection|Test-DscConfiguration|Test-FileCatalog|Test-KdsRootKey|Test-ModuleManifest|Test-Path|Test-PSSessionConfigurationFile|Test-WSMan|Trace-Command|Unblock-File|Unblock-Tpm|Undo-DtcDiagnosticTransaction|Undo-Transaction|Uninstall-Package|Uninstall-ProvisioningPackage|Uninstall-TrustedProvisioningCertificate|Unprotect-CmsMessage|Unregister-Event|Unregister-PackageSource|Unregister-PSSessionConfiguration|Unregister-ScheduledJob|Unregister-WindowsDeveloperLicense|Update-DscConfiguration|Update-FormatData|Update-Help|Update-List|Update-TypeData|Update-WIMBootEntry|Use-Transaction|Use-WindowsUnattend|Wait-Debugger|Wait-Event|Wait-Job|Wait-Process|Where-Object|Write-Debug|Write-Error|Write-EventLog|Write-Host|Write-Information|Write-Output|Write-Progress|Write-Verbose|Write-Warning)\>" + +## Functions +icolor brightyellow "\" + +## Comparison operators +icolor brightyellow "-\<(eq|ne|gt|lt|ge|le|like|notlike|match|notmatch|contains|notcontains|in|notin|replace|is|isnot)\>" + +## Variables +icolor brightred "\$[a-zA-Z0-9_]+" + +## Statements +icolor brightcyan "\<(if|do|else|elseif|for|foreach|switch|until|while)\>" + +## Comments +color brightblue "#.*$" +color brightblue start="<#" end="#>" + +## Quoted text +color brightwhite "\"[^\"]*\"" +color brightwhite "'[^']*'" + +## Text between %'s and @'s +icolor brightmagenta "\%[^\%]*\%" +icolor brightmagenta start="@\"" end="\"@" + +## Trailing whitespace +color ,green "[[:space:]]+$" From 1b25243ee2fea0fa771550500e1c1b7fa0c243ad Mon Sep 17 00:00:00 2001 From: Joerg Stoever Date: Fri, 14 Aug 2020 13:04:10 +0200 Subject: [PATCH 70/88] Add a red highlight to YAML lines with trailing whitespace --- yaml.nanorc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yaml.nanorc b/yaml.nanorc index b079c72..f202cd8 100644 --- a/yaml.nanorc +++ b/yaml.nanorc @@ -19,3 +19,6 @@ color brightwhite ":(\s|\t|$)" # Comments color brightblue "(^|[[:space:]])#.*$" + +# Trailing whitespace +color ,red "[[:space:]]+$" From bf2b6e4627b93221616e2425446f769318967fdb Mon Sep 17 00:00:00 2001 From: czechuuu Date: Wed, 26 Aug 2020 19:13:33 +0200 Subject: [PATCH 71/88] Added highlighting for bool and ___bool__ --- python.nanorc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python.nanorc b/python.nanorc index 70022a3..014b26b 100644 --- a/python.nanorc +++ b/python.nanorc @@ -12,11 +12,11 @@ color cyan "\<(None|self|True|False)\>" ## built-in attributes color cyan "\<(__builtin__|__dict__|__methods__|__members__|__class__|__bases__|__import__|__name__|__doc__|__self__|__debug__)\>" ## built-in functions -color cyan "\<(abs|append|apply|buffer|callable|chr|clear|close|closed|cmp|coerce|compile|complex|conjugate|copy|count|delattr|dir|divmod|eval|execfile|exec|extend|fileno|filter|float|flush|get|getattr|globals|has_key|hasattr|hash|hex|id|index|input|insert|int|intern|isatty|isinstance|issubclass|items|keys|len|list|locals|long|map|max|min|mode|name|oct|open|ord|pop|pow|print|range|raw_input|read|readline|readlines|reduce|reload|remove|repr|reverse|round|seek|setattr|slice|softspace|sort|str|tell|truncate|tuple|type|unichr|unicode|update|values|vars|write|writelines|xrange|zip)\>" +color cyan "\<(abs|append|apply|buffer|callable|chr|clear|close|closed|cmp|coerce|compile|complex|conjugate|copy|count|delattr|dir|divmod|eval|execfile|exec|extend|fileno|filter|float|flush|get|getattr|globals|has_key|hasattr|hash|hex|id|index|input|insert|int|intern|isatty|isinstance|issubclass|items|keys|len|list|locals|long|map|max|min|mode|name|oct|open|ord|pop|pow|print|range|raw_input|read|readline|readlines|reduce|reload|remove|repr|reverse|round|seek|setattr|slice|softspace|sort|str|tell|truncate|tuple|type|unichr|unicode|update|values|vars|write|writelines|xrange|zip|bool)\>" ## built-in functions that were previously keywords color brightblue "\<(print|exec)\>([[:space:]]|$)" ## special method names -color cyan "\<(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|__concat__|__contains__|__del__|__delattr__|__delitem__|__delslice__|__div__|__divmod__|__float__|__getattr__|__getitem__|__getslice__|__hash__|__hex__|__init__|__int__|__inv__|__invert__|__len__|__long__|__lshift__|__mod__|__mul__|__neg__|__nonzero__|__oct__|__or__|__pos__|__pow__|__radd__|__rand__|__rcmp__|__rdiv__|__rdivmod__|__repeat__|__repr__|__rlshift__|__rmod__|__rmul__|__ror__|__rpow__|__rrshift__|__rshift__|__rsub__|__rxor__|__setattr__|__setitem__|__setslice__|__str__|__sub__|__xor__)\>" +color cyan "\<(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|__concat__|__contains__|__del__|__delattr__|__delitem__|__delslice__|__div__|__divmod__|__float__|__getattr__|__getitem__|__getslice__|__hash__|__hex__|__init__|__int__|__inv__|__invert__|__len__|__long__|__lshift__|__mod__|__mul__|__neg__|__nonzero__|__oct__|__or__|__pos__|__pow__|__radd__|__rand__|__rcmp__|__rdiv__|__rdivmod__|__repeat__|__repr__|__rlshift__|__rmod__|__rmul__|__ror__|__rpow__|__rrshift__|__rshift__|__rsub__|__rxor__|__setattr__|__setitem__|__setslice__|__str__|__sub__|__xor__|__bool__)\>" ## exception classes color cyan "\<(Exception|StandardError|ArithmeticError|LookupError|EnvironmentError|AssertionError|AttributeError|EOFError|FloatingPointError|IOError|ImportError|IndexError|KeyError|KeyboardInterrupt|MemoryError|NameError|NotImplementedError|OSError|OverflowError|RuntimeError|SyntaxError|SystemError|SystemExit|TypeError|UnboundLocalError|UnicodeError|ValueError|WindowsError|ZeroDivisionError)\>" ## types From 7d8b17832a91c90a58ba7b1c1357f67c18a2e52c Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Thu, 27 Aug 2020 09:17:08 -0500 Subject: [PATCH 72/88] Fixed highlighting of inline comments in c.nanorc --- c.nanorc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c.nanorc b/c.nanorc index 4ddd554..f99bf8f 100644 --- a/c.nanorc +++ b/c.nanorc @@ -3,7 +3,7 @@ syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino" magic "^(C|C\+\+) (source|program)" comment "//" -color brightred "\<[A-Z_][0-9A-Z_]+\>" +color brightred "\<[A-Z_][0-9A-Z_]+\>" color green "\<(float|double|bool|char|wchar_t|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" color green "\<((s?size)|(char(16|32))|((u_?)?int(_fast|_least)?(8|16|32|64))|u?int(max|ptr))_t\>" color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" @@ -21,7 +21,7 @@ color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\ color green "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" #Operator Color -color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" +color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" #Parenthetical Color color magenta "[(){}]" "\[" "\]" @@ -37,7 +37,7 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*"" #color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Comment highlighting -color brightblue "^\s*//.*" +color brightblue "//.*" color brightblue start="/\*" end="\*/" # Highlighting for documentation comments From 4980f572394df48d49e3157e2159645b26045135 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Thu, 27 Aug 2020 09:18:20 -0500 Subject: [PATCH 73/88] Fixed higlighting of inline comments in java.nanorc --- java.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java.nanorc b/java.nanorc index c22894a..fe3f286 100644 --- a/java.nanorc +++ b/java.nanorc @@ -10,7 +10,7 @@ color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interfa color red ""[^"]*"" color yellow "\<(true|false|null)\>" icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" -color blue "^\s*//.*" +color blue "//.*" color blue start="^\s*/\*" end="\*/" color brightblue start="/\*\*" end="\*/" From 09d9216ff59e213a0c4eaacfcb8771b7deab3d99 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Thu, 27 Aug 2020 09:19:51 -0500 Subject: [PATCH 74/88] Fixed highlighting of inline comments in javascript.nanorc --- javascript.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript.nanorc b/javascript.nanorc index 0f5c236..39ce3a0 100644 --- a/javascript.nanorc +++ b/javascript.nanorc @@ -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 ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)" From 56b1d0af8737b5fcf6ce07e028042e1e0ce76f51 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Thu, 27 Aug 2020 09:44:59 -0500 Subject: [PATCH 75/88] Added highlighting for printf format specifiers --- c.nanorc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c.nanorc b/c.nanorc index f99bf8f..d05f482 100644 --- a/c.nanorc +++ b/c.nanorc @@ -36,6 +36,9 @@ 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="\*/" From f9c86cd3b73c5d94b35f92535d70d2dafcdcb0f5 Mon Sep 17 00:00:00 2001 From: davidhcefx Date: Mon, 31 Aug 2020 10:21:54 +0800 Subject: [PATCH 76/88] Delete batch.nanorc --- batch.nanorc | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 batch.nanorc diff --git a/batch.nanorc b/batch.nanorc deleted file mode 100644 index 0001dd1..0000000 --- a/batch.nanorc +++ /dev/null @@ -1,39 +0,0 @@ -## Nano syntax highlighting file for Batch -## Written by Dante Falzone https://github.com/DanteFalzone0 - -syntax "Batch" "\.[bB][aA][tT]$" "\.[cC][mM][dD]$" -comment "REM" - -## Commands for basic I/O -icolor green "\<(cls|echo|pause|choice|more|type)\>" - -## Commands for file operations -icolor green "\<(assoc|cd|copy|del|move|path|rd|ren|vol|attrib|chkdsk|comp|convert)\>" -icolor green "\<(expand|format|label|subst|xcopy|robocopy|fc|diskpart|md|mkdir)\>" - -## Other commands -icolor cyan "\<(ver|dir|date|exit|prompt|start|time|cmd|driverquery|find|help|ipconfig)\>" -icolor cyan "\<(net|ping|shutdown|sort|systeminfo|taskkill|tasklist|tree|title|set)\>" - -## Operators -icolor yellow "[.:;,+*-/|=!<>&%@\"]" - -## Executable files -icolor brightred "[[:graph:]]+\.exe[[:space:]]" -icolor brightred "[[:graph:]]+\.exe$" - -## Switches and labels -icolor brightmagenta "/[[:graph:]]+$" -icolor brightmagenta "/[[:graph:]]+[[:space:]]" - -## Numerals -icolor brightyellow "[[:digit:]]" - -## Block delimeters -icolor magenta "[(){}]" - -## Comments -icolor brightblue "REM.*" - -## Trailing whitespace -color ,green "[[:space:]]+$" From 79b2b9d9510a7fcf2bd6649acd66a2c0ac55913d Mon Sep 17 00:00:00 2001 From: davidhcefx Date: Mon, 31 Aug 2020 10:22:18 +0800 Subject: [PATCH 77/88] Create batch.nanorc --- batch.nanorc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 batch.nanorc diff --git a/batch.nanorc b/batch.nanorc new file mode 100644 index 0000000..8b11b87 --- /dev/null +++ b/batch.nanorc @@ -0,0 +1,34 @@ +## Here is an example for Batch file shell script. +## Author: 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:]]*(\|::).*" + +# Strings. +icolor brightyellow ""(\^.|[^"])*"" + +# Trailling whitespace +color ,green "[[:space:]]+$" From 66c3512fabc3acc171ba2151f48805e9e791866f Mon Sep 17 00:00:00 2001 From: davidhcefx Date: Tue, 1 Sep 2020 05:05:02 +0800 Subject: [PATCH 78/88] Add a link --- batch.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batch.nanorc b/batch.nanorc index 8b11b87..bc936d8 100644 --- a/batch.nanorc +++ b/batch.nanorc @@ -1,5 +1,5 @@ ## Here is an example for Batch file shell script. -## Author: davidhcefx, based on Mitch Bumgarner's version. +## Author: davidhcefx (https://github.com/davidhcefx), based on Mitch Bumgarner's version. ## License: MIT License syntax "batch" "\.(bat|cmd)$" From cca764ce6c961e0f97006cfdf41a68705f148b17 Mon Sep 17 00:00:00 2001 From: Exonorid Date: Fri, 2 Oct 2020 00:46:00 -0700 Subject: [PATCH 79/88] Added support for Zig --- zig.nanorc | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 zig.nanorc diff --git a/zig.nanorc b/zig.nanorc new file mode 100644 index 0000000..4dce80a --- /dev/null +++ b/zig.nanorc @@ -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 " " From 5a29d4957c80961396a4ef16b32771c955602ebf Mon Sep 17 00:00:00 2001 From: Bart Hanssens Date: Wed, 7 Oct 2020 18:30:35 +0200 Subject: [PATCH 80/88] GH-333 initial sparql support Signed-off-by: Bart Hanssens --- sparql.nanorc | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 sparql.nanorc diff --git a/sparql.nanorc b/sparql.nanorc new file mode 100644 index 0000000..932b97e --- /dev/null +++ b/sparql.nanorc @@ -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+:" + From b67784acaf943ff1f1da5737c2af5feccb8e4e10 Mon Sep 17 00:00:00 2001 From: Serhiy Zahoriya Date: Thu, 8 Oct 2020 18:43:13 +0300 Subject: [PATCH 81/88] Highlight second curly bracket in html.nanorc --- html.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.nanorc b/html.nanorc index 77a04dd..01bb24a 100644 --- a/html.nanorc +++ b/html.nanorc @@ -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 From 11b7039c246c5b0ac191dea4fd089924031e7ecc Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Sat, 10 Oct 2020 14:24:15 -0500 Subject: [PATCH 82/88] authors update --- .authors.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.authors.yml b/.authors.yml index d2ee29d..db7947d 100644 --- a/.authors.yml +++ b/.authors.yml @@ -255,6 +255,8 @@ num_commits: 10 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 @@ -583,3 +585,41 @@ num_commits: 4 first_commit: 2017-05-23 11:12:47 github: ritiek +- name: hdquemada + email: 44162051+hdquemada@users.noreply.github.com +- name: Oïleurre + email: 66210874+oileurre@users.noreply.github.com +- name: Joerg Stoever + email: stoever@dtv-verkehrsconsult.de +- name: emidiostani + email: emidiostani@gmail.com +- name: Justin P + email: Jpartain89@gmail.com +- name: Yvan Satyawan + email: y_satyawan@hotmail.com +- name: Paulo S. Costa + email: pauloscosta5@gmail.com +- name: czechuuu + email: czechuuu@users.noreply.github.com +- name: msuska + email: Martin.Suska@dhl.com +- name: davidhcefx + email: davidhu0903ex3@gmail.com +- name: Mlendea, Horațiu + email: Mlendea.Horatiu@GMail.com +- name: Exonorid + email: exonorid@gmail.com +- name: yzzyx + email: yzzyx@yzzyx.network + alternate_emails: + - yzzyx@cock.li +- name: Aiden Gall + email: aidentvgall@gmail.com +- name: Rashil Gandhi + email: rashil2000@gmail.com +- name: Ryan Westlund + email: rlwestlund@gmail.com +- name: Serhiy Zahoriya + email: serhiy.int@gmail.com +- name: Bart Hanssens + email: bart.hanssens@bosa.fgov.be From 6807e67d2da9c1ff47159174e6e2bea3183bb7a5 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Sat, 10 Oct 2020 14:25:18 -0500 Subject: [PATCH 83/88] Updated authorship for 2020.10.10 --- .authors.yml | 66 ++++++++++++++++++++++++++++++++++++++++++++++------ .mailmap | 26 +++++++++++++++++---- AUTHORS.rst | 26 +++++++++++++++++---- 3 files changed, 103 insertions(+), 15 deletions(-) diff --git a/.authors.yml b/.authors.yml index db7947d..2f033e6 100644 --- a/.authors.yml +++ b/.authors.yml @@ -252,11 +252,11 @@ github: hawk93 - name: Harsh Shandilya email: msfjarvis@gmail.com - num_commits: 10 + num_commits: 13 first_commit: 2019-09-19 15:52:44 github: msfjarvis alternate_emails: - - me@msfjarvis.dev + - me@msfjarvis.dev - name: DesertPunk email: 38014530+DesertPunk@users.noreply.github.com num_commits: 2 @@ -337,7 +337,7 @@ github: TJProgrammer - name: Anthony Scopatz email: scopatz@gmail.com - num_commits: 50 + num_commits: 52 first_commit: 2010-07-28 18:15:43 github: astronautlevel - name: PhilipRoman @@ -558,16 +558,16 @@ email: zdecook@ccel.org alternate_emails: - zachdecook@librem.one - num_commits: 6 + num_commits: 10 first_commit: 2019-12-18 09:34:49 github: earboxer - name: Gareth Jones email: Jones258@Gmail.com - num_commits: 3 + num_commits: 11 first_commit: 2019-11-01 23:57:35 - name: Dante Falzone email: 48266179+DanteFalzone0@users.noreply.github.com - num_commits: 2 + num_commits: 8 first_commit: 2019-12-25 22:55:19 github: DanteFalzone0 - name: CryptoDragonLady @@ -587,39 +587,91 @@ 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 + - 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 diff --git a/.mailmap b/.mailmap index 05ba6f8..2b1c3a1 100644 --- a/.mailmap +++ b/.mailmap @@ -12,13 +12,15 @@ Anthony Scopatz Elof Simon Volpert +Harsh Shandilya Harsh Shandilya Andrea Dejan Grande Alex Taber -Harsh Shandilya +Gareth Jones +Zach DeCook Zach DeCook Mariusz Smykuła +Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Michael Straube Michael Straube CoffeeTableEnnui -Zach DeCook Zach DeCook Daniel Kaplun Philipp Tiago Almeida @@ -27,6 +29,7 @@ nl6720 Thomas Rosenau ThomasR Matthew Cox Ritiek Malhotra +hdquemada <44162051+hdquemada@users.noreply.github.com> Birger Jarl divinity76 CirKu17 CirKu17 @@ -37,7 +40,8 @@ Huub de Beer Mikael O. Bonnier Jeppe Fihl-Pearson Ondřej Ešler -Gareth Jones +davidhcefx +yzzyx yzzyx Dan Kaplun Aryan Ebrahimpour Paduct Bro @@ -56,8 +60,12 @@ Bryan Ross Nicholas Christopoulos Sina Ross Smith II -Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Hunter Peavey +Oïleurre <66210874+oileurre@users.noreply.github.com> +Yvan Satyawan +Paulo S. Costa +Mlendea, Horațiu +Ryan Westlund Dan Pasanen Marcus Willock Crazcalm Dario Ostuni @@ -124,3 +132,13 @@ John S Long Ghost-NULL PN Wu (小平) CryptoDragonLady +Joerg Stoever +emidiostani +Justin P +czechuuu +msuska +Exonorid +Aiden Gall +Rashil Gandhi +Serhiy Zahoriya +Bart Hanssens diff --git a/AUTHORS.rst b/AUTHORS.rst index 25e7957..3704125 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -4,13 +4,15 @@ Authors are sorted by number of commits. * Anthony Scopatz * Elof * Simon Volpert +* Harsh Shandilya * Andrea Dejan Grande * Alex Taber -* Harsh Shandilya +* Gareth Jones +* Zach DeCook * Mariusz Smykuła +* Dante Falzone * Michael Straube * CoffeeTableEnnui -* Zach DeCook * Daniel Kaplun * Philipp * Tiago Almeida @@ -19,6 +21,7 @@ Authors are sorted by number of commits. * Thomas Rosenau * Matthew Cox * Ritiek Malhotra +* hdquemada * Birger Jarl * divinity76 * CirKu17 @@ -29,7 +32,8 @@ Authors are sorted by number of commits. * Mikael O. Bonnier * Jeppe Fihl-Pearson * Ondřej Ešler -* Gareth Jones +* davidhcefx +* yzzyx * Dan Kaplun * Aryan Ebrahimpour * Paduct @@ -48,8 +52,12 @@ Authors are sorted by number of commits. * Nicholas Christopoulos * Sina * Ross Smith II -* Dante Falzone * Hunter Peavey +* Oïleurre +* Yvan Satyawan +* Paulo S. Costa +* Mlendea, Horațiu +* Ryan Westlund * Dan Pasanen * Marcus Willock * Dario Ostuni @@ -116,3 +124,13 @@ Authors are sorted by number of commits. * Ghost-NULL * PN Wu (小平) * CryptoDragonLady +* Joerg Stoever +* emidiostani +* Justin P +* czechuuu +* msuska +* Exonorid +* Aiden Gall +* Rashil Gandhi +* Serhiy Zahoriya +* Bart Hanssens From a66a284004e3f8e03f293f266a442bc447f0f786 Mon Sep 17 00:00:00 2001 From: palto42 Date: Sun, 8 Nov 2020 08:59:58 +0100 Subject: [PATCH 84/88] comment color for visibility on dark terminals --- ini.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ini.nanorc b/ini.nanorc index d9fcee7..d89f729 100644 --- a/ini.nanorc +++ b/ini.nanorc @@ -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 " + +| + +" From 342d31a7b1f9e21d2a95a4e0a35d3f1449f34927 Mon Sep 17 00:00:00 2001 From: miku86 Date: Thu, 19 Nov 2020 16:49:48 +0100 Subject: [PATCH 85/88] Fix typo: "cotal" => "octal" --- ts.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts.nanorc b/ts.nanorc index 1a8d85c..b504c1e 100644 --- a/ts.nanorc +++ b/ts.nanorc @@ -4,7 +4,7 @@ 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 From ed51c7c00cd6ef02e9daf4cc55f96dc375794d63 Mon Sep 17 00:00:00 2001 From: Jip Date: Sat, 21 Nov 2020 23:28:55 +0100 Subject: [PATCH 86/88] 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. --- javascript.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript.nanorc b/javascript.nanorc index 39ce3a0..2cdd4a2 100644 --- a/javascript.nanorc +++ b/javascript.nanorc @@ -1,4 +1,4 @@ -syntax "JavaScript" "\.js$" +syntax "JavaScript" "\.(js|ts)$" comment "//" color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" From 15de1acdde393e2ba8ffde31996b2223d7374f72 Mon Sep 17 00:00:00 2001 From: palto42 Date: Sun, 22 Nov 2020 11:42:54 +0100 Subject: [PATCH 87/88] systemd .timer & comments color for dark terminal --- systemd.nanorc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/systemd.nanorc b/systemd.nanorc index 888cab8..0a2787a 100644 --- a/systemd.nanorc +++ b/systemd.nanorc @@ -1,12 +1,12 @@ -syntax "Systemd" "\.(service|socket)$" +syntax "Systemd" "\.(service|socket|timer)$" header "^\[Unit\]$" color cyan "^(Accept|After|Alias|AllowIsolate|Also|AmbientCapabilities|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateDevices|PrivateNetwork|PrivateTmp|PropagatesReloadTo|ProtectControlGroups|ProtectHome|ProtectKernelModules|ProtectKernelTunables|ProtectSystem|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RestrictAddressFamilies|RestrictNamespaces|RestrictRealtime|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallArchitectures|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)=" -color brightblue "^\.include\>" +color green "^\.include\>" color red "=" color brightmagenta "^\[(Unit|Install|Service|Socket)\]" color brightyellow "\$MAINPID" color brightcyan "\<(true|false)\>" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color brightblue "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" From 88081acf785155c635373f21ef1c7033adabc1ac Mon Sep 17 00:00:00 2001 From: Anders Eknert Date: Thu, 17 Dec 2020 09:42:22 +0100 Subject: [PATCH 88/88] Add support for Rego The policy language of Open Policy Agent. Signed-off-by: Anders Eknert --- rego.nanorc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 rego.nanorc diff --git a/rego.nanorc b/rego.nanorc new file mode 100644 index 0000000..f48673a --- /dev/null +++ b/rego.nanorc @@ -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*#.*"