summaryrefslogtreecommitdiff
path: root/pygments/style.py
diff options
context:
space:
mode:
authorAnteru <bitbucket@ca.sh13.net>2019-05-21 16:32:04 +0000
committerAnteru <bitbucket@ca.sh13.net>2019-05-21 16:32:04 +0000
commit9c84bc6450663888e243268621dcf71eab18ed11 (patch)
tree15231faf42954c633413b5c06369da6b05949ed7 /pygments/style.py
parentc0db1e260ea7e399a1f34bc9966914298e1b6b17 (diff)
parent8202e648945351366bd0c465d72953fae40f4783 (diff)
downloadpygments-9c84bc6450663888e243268621dcf71eab18ed11.tar.gz
Merged in lucatorella/pygments-main (pull request #813)
Add support for @import keyword in Objective-C
Diffstat (limited to 'pygments/style.py')
-rw-r--r--pygments/style.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pygments/style.py b/pygments/style.py
index 89766d8c..aee23f96 100644
--- a/pygments/style.py
+++ b/pygments/style.py
@@ -73,9 +73,11 @@ class StyleMeta(type):
if len(col) == 6:
return col
elif len(col) == 3:
- return col[0]*2 + col[1]*2 + col[2]*2
+ return col[0] * 2 + col[1] * 2 + col[2] * 2
elif text == '':
return ''
+ elif text.startswith('var') or text.startswith('calc'):
+ return text
assert False, "wrong color format %r" % text
_styles = obj._styles = {}