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:
authorAaron Muir Hamilton <aaron@correspondwith.me>2013-11-15 02:50:59 +0400
committerAaron Muir Hamilton <aaron@correspondwith.me>2013-11-15 02:50:59 +0400
commit652b4000fec14dd10e8e3977d3328f3d662e1cc7 (patch)
tree1e06c66d712db4439c108ca156bd4da333f0285a /yacc.nanorc
parentbf8f11a0c4c0382cf8f3ad238ebbc19b97e71569 (diff)
Improve functionality:
De-goof and partially normalize: gentoo.nanorc groff.nanorc haskell.nanorc # NOTE: While there used to be a source cited, we'll never know what was there before since it's a dead link with no caches. havp.nanorc html.nanorc info.nanorc ini.nanorc initng.nanorc initscript.nanorc java.nanorc js.nanorc # NOTE: This thing is still butt-ugly, and doesn't work in bright-background terminals at all. lex.nanorc log-stuff.nanorc lua.nanorc # NOTE: Similar issues to js.nanorc, but even slightly worse in white terminals. maincf.nanorc makefile.nanorc man.nanorc markdown.nanorc mimetype.nanorc named.nanorc nanorc.nanorc paludis.nanorc # NOTE: This nanorc has the same issue as js.nanorc and lua.nanorc, but with the unsettling twist of it favouring light-background terminals, not sure why this was ever included, and who would use something like this. passwd.nanorc patch.nanorc perl.nanorc php.nanorc po.nanorc pov.nanorc privoxy.nanorc python.nanorc # NOTE: python.nanorc is rather bare, maybe a new one should be forged from cython.nanorc reST.nanorc ruby.nanorc tab.nanorc tcl.nanorc tex.nanorc todo.nanorc txt2tags.nanorc url.nanorc xdefaults.nanorc xml.nanorc yacc.nanorc Remove commented legacy blocks from: privoxy.nanorc Remove altogether: mcchangelog.nanorc # NOTE: roughly identical to changelogs.nanorc profile.nanorc # NOTE: This really ought not exist, the handlers have been added to bash.nanorc rcfiles.nanorc # NOTE: Same situation as with profile.nanorc sources_list.nanorc # NOTE: replaced by aptsrclist.nanorc vhost.nanorc # NOTE: Nearly identical to apache2.nanorc, aside from some missing keywords. vhost.conf pattern has been added to apache2.nanorc.
Diffstat (limited to 'yacc.nanorc')
-rw-r--r--yacc.nanorc15
1 files changed, 8 insertions, 7 deletions
diff --git a/yacc.nanorc b/yacc.nanorc
index 4f09c6d..06ddce1 100644
--- a/yacc.nanorc
+++ b/yacc.nanorc
@@ -1,14 +1,15 @@
-## Syntax highlighting for yacc/bison input files
syntax "yacc" "\.y$"
color red "%[a-zA-Z0-9]*"
-## 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.
+
+## Strings
+# NOTE: You will in general want your comments and strings to come last, because syntax highlighting rules will be applied in the order they are read in.
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
-## This string is VERY resource intensive!
+# NOTE: Very resource intensive.
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
+
## Comments
color brightblue start="/\*" end="\*/"
-## Visible space at line ends
-color green,green "[[:space:]]+$"
+
+## Trailing whitespace
+color ,green "[[:space:]]+$"