summaryrefslogtreecommitdiff
path: root/pygments/token.py
diff options
context:
space:
mode:
authorMiikka Salminen <miikka.salminen@gmail.com>2015-10-23 02:55:14 +0300
committerMiikka Salminen <miikka.salminen@gmail.com>2015-10-23 02:55:14 +0300
commit9b7051b04820a9a0c5f19ed717d363d2fe86275a (patch)
tree5ba630d6bff3e571195c22617089a5a414a767a3 /pygments/token.py
parent7bc19a5fd1fb7e40c8ec4937a0fe45ddb56b5509 (diff)
downloadpygments-9b7051b04820a9a0c5f19ed717d363d2fe86275a.tar.gz
Added support and documentation for magic method and variable tokens. Reflected
this change in an updated version of my older style, Lovelace. Added Python lexing for Python's magic methods and variables.
Diffstat (limited to 'pygments/token.py')
-rw-r--r--pygments/token.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pygments/token.py b/pygments/token.py
index bfdfc114..a1ba615f 100644
--- a/pygments/token.py
+++ b/pygments/token.py
@@ -139,6 +139,7 @@ STANDARD_TYPES = {
Name.Entity: 'ni',
Name.Exception: 'ne',
Name.Function: 'nf',
+ Name.Function.Magic: 'fm',
Name.Property: 'py',
Name.Label: 'nl',
Name.Namespace: 'nn',
@@ -148,6 +149,7 @@ STANDARD_TYPES = {
Name.Variable.Class: 'vc',
Name.Variable.Global: 'vg',
Name.Variable.Instance: 'vi',
+ Name.Variable.Magic: 'vm',
Literal: 'l',
Literal.Date: 'ld',