kr.motd.maven.sphinx.dist.pygments.lexers.supercollider.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sphinx-maven-plugin Show documentation
Show all versions of sphinx-maven-plugin Show documentation
Maven plugin that creates the site with Sphinx
# -*- coding: utf-8 -*-
"""
pygments.lexers.supercollider
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lexer for SuperCollider
:copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, include, words
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
Number, Punctuation
__all__ = ['SuperColliderLexer']
class SuperColliderLexer(RegexLexer):
"""
For `SuperCollider `_ source code.
.. versionadded:: 2.1
"""
name = 'SuperCollider'
aliases = ['sc', 'supercollider']
filenames = ['*.sc', '*.scd']
mimetypes = ['application/supercollider', 'text/supercollider', ]
flags = re.DOTALL | re.MULTILINE
tokens = {
'commentsandwhitespace': [
(r'\s+', Text),
(r'