chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9cf75a9
)
dot/ipython-config.py: Fix the disastrous matching-paren highlight.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 1 Aug 2017 12:15:08 +0000
(13:15 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 1 Aug 2017 12:15:08 +0000
(13:15 +0100)
dot/ipython-config.py
patch
|
blob
|
blame
|
history
diff --git
a/dot/ipython-config.py
b/dot/ipython-config.py
index 1555bba58db3a5e678b4e7ac6c1dddd80221c819..9db7f6bd22d74a0b15090e9e73f55713569abdd6 100644
(file)
--- a/
dot/ipython-config.py
+++ b/
dot/ipython-config.py
@@
-1,6
+1,8
@@
### -*-python -*-
import pygments as PYG
### -*-python -*-
import pygments as PYG
+import prompt_toolkit as PTK
+
c = get_config()
## Simple stuff.
c = get_config()
## Simple stuff.
@@
-42,5
+44,8
@@
c.TerminalInteractiveShell.highlighting_style_overrides = {
T.Name.Variable.Magic: '#fff',
T.Operator: '#eec591',
T.Operator.Word: 'bold #fff',
T.Name.Variable.Magic: '#fff',
T.Operator: '#eec591',
T.Operator.Word: 'bold #fff',
- T.Punctuation: '#eec591'
+ T.Punctuation: '#eec591',
+ PTK.token.Token.MatchingBracket: '',
+ PTK.token.Token.MatchingBracket.Cursor: '',
+ PTK.token.Token.MatchingBracket.Other: 'bg:#006400'
}
}