summary refs log tree commit diff stats
path: root/tests/coroutines/texceptions.nim.cfg
blob: b011bc585e25fb8b7e47f120edc8d48b8fe5acbf (plain) (blame)
1
-d:nimCoroutines
color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

"""
Some experimental colorscheme.
"""

from ranger.gui.colorscheme import ColorScheme
from ranger.gui.color import *

from ranger.colorschemes.default import Default
import curses

class Scheme(Default):
	def use(self, context):
		fg, bg, attr = Default.use(self, context)

		if curses.COLORS < 88:
			return fg, bg, attr

		dircolor = 77
		dircolor_selected = {True: 79, False: 78}
		linkcolor = {True: 21, False: 48}

		if context.in_browser:
			if context.media:
				if context.image:
					fg = 20
				elif context.video:
					fg = 22
				elif context.audio:
					fg = 23

			if context.container:
				fg = 32
			if context.directory:
				fg = dircolor
				if context.selected:
					fg = dircolor_selected[context.main_column]
			elif context.executable and not \
					any((context.media, context.container)):
				fg = 82
			if context.link:
				fg = linkcolor[context.good]

			if context.main_column:
				if context.selected:
					attr |= bold
				if context.marked:
					attr |= bold
					fg = 53

		if context.in_titlebar:
			if context.hostname:
				fg = context.bad and 48 or 82
			elif context.directory:
				fg = dircolor
			elif context.link:
				fg = linkcolor[True]

		return fg, bg, attr