summaryrefslogtreecommitdiff
path: root/doc
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 /doc
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 'doc')
-rw-r--r--doc/docs/tokens.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/docs/tokens.rst b/doc/docs/tokens.rst
index 6455a501..f9ed3d92 100644
--- a/doc/docs/tokens.rst
+++ b/doc/docs/tokens.rst
@@ -174,6 +174,10 @@ Name Tokens
`Name.Function`
Token type for function names.
+`Name.Function.Magic`
+ same as `Name.Function` but for function names that have an implicit use in
+ a language (e.g. ``__init__`` method in Python).
+
`Name.Label`
Token type for label names (e.g. in languages that support ``goto``).
@@ -201,6 +205,10 @@ Name Tokens
`Name.Variable.Instance`
same as `Name.Variable` but for instance variables.
+`Name.Variable.Magic`
+ same as `Name.Variable` but for variable names that have an implicit use in
+ a language (e.g. ``__doc__`` in Python).
+
Literals
========