NicholaiVogel 3c83039a71 Add 3DE to Nuke Track Converter v2.0
- Complete rewrite with beautiful Rich TUI interface
- Interactive and CLI modes for flexibility
- Robust error handling with clear, helpful messages
- Gap filling with linear interpolation support
- Coordinate system transforms (pixels/normalized)
- Auto-generated output filenames from input
- Configurable resolution and Nuke versions
- Batch processing support via CLI
- Comprehensive documentation in Scripts/README_CONVERTER.md
- Updated main README.md with Scripts section
2025-10-07 21:14:33 -06:00

43 lines
1.1 KiB
Python

"""
pygments.lexers.rita
~~~~~~~~~~~~~~~~~~~~
Lexers for RITA language
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.lexer import RegexLexer
from pygments.token import Comment, Operator, Keyword, Name, Literal, \
Punctuation, Whitespace
__all__ = ['RitaLexer']
class RitaLexer(RegexLexer):
"""
Lexer for RITA.
"""
name = 'Rita'
url = 'https://github.com/zaibacu/rita-dsl'
filenames = ['*.rita']
aliases = ['rita']
mimetypes = ['text/rita']
version_added = '2.11'
tokens = {
'root': [
(r'\n', Whitespace),
(r'\s+', Whitespace),
(r'#(.*?)\n', Comment.Single),
(r'@(.*?)\n', Operator), # Yes, whole line as an operator
(r'"(\w|\d|\s|(\\")|[\'_\-./,\?\!])+?"', Literal),
(r'\'(\w|\d|\s|(\\\')|["_\-./,\?\!])+?\'', Literal),
(r'([A-Z_]+)', Keyword),
(r'([a-z0-9_]+)', Name),
(r'((->)|[!?+*|=])', Operator),
(r'[\(\),\{\}]', Punctuation)
]
}