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
commitd395701a43fba9504c9373cee7ca829cbf766065 (patch)
treebdc705969395707cc9afa4dc40dc1e7c501bcf65 /doc
parent1ce71bbfdec8de1eb84ecdfc55d26f2a86671758 (diff)
downloadpygments-git-d395701a43fba9504c9373cee7ca829cbf766065.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
========