Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/serialhex/nano-highlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Beardsmore <public@telcontar.net>2016-08-08 11:22:20 +0300
committerGitHub <noreply@github.com>2016-08-08 11:22:20 +0300
commitd6c9f8676fe015b4a275ced1b417e7bdf3670b50 (patch)
tree9b6ab195a95aeae96b6a571170da7b3c2f56960c
parentea31563a3fc5bedb0b20aee62baa0a2a9057255c (diff)
Update conf.nanorc
1) The parameter name rule was overriding the parameter value rule, so you would get magenta = magenta, instead of magenta = yellow; it is now anchored to the start of a line; this can also be achieved by reversing the icolor brightyellow and icolor magenta lines (which puts the equals also in yellow, which I prefer not to have) 2) The number rule didn't require numbers to start with digits, and it was not accepting lowercase suffixes; I've added a couple more suffixes as well for good measure
-rw-r--r--conf.nanorc4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf.nanorc b/conf.nanorc
index 3bd9097..d082a0f 100644
--- a/conf.nanorc
+++ b/conf.nanorc
@@ -5,13 +5,13 @@ icolor yellow ""(\\.|[^"])*""
# Variable name and value
icolor brightyellow start="=" end="$"
-icolor magenta start="(^|[[:space:]])[0-9a-z-]" end="="
+icolor magenta start="^[[:space:]]*[0-9a-z-]" end="="
# Braces and parentheses
icolor brightred "(^|[[:space:]])((\[|\()[0-9a-z_!@#$%^&*-]+(\]|\)))"
# Numbers
-color green "[[:space:]][0-9.KM]+"
+icolor green "[[:space:]][0-9]+[0-9.]*[KMGT]*"
# Comments
color cyan start="(^|[[:space:]])(#|;).*$" end="$"