IncludeCPP 4.6.2__tar.gz → 4.6.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {includecpp-4.6.2 → includecpp-4.6.4}/IncludeCPP.egg-info/PKG-INFO +1 -1
- {includecpp-4.6.2 → includecpp-4.6.4}/PKG-INFO +1 -1
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/__init__.py +1 -1
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cssl_syntax.py +27 -1
- {includecpp-4.6.2 → includecpp-4.6.4}/pyproject.toml +1 -1
- {includecpp-4.6.2 → includecpp-4.6.4}/IncludeCPP.egg-info/SOURCES.txt +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/IncludeCPP.egg-info/dependency_links.txt +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/IncludeCPP.egg-info/entry_points.txt +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/IncludeCPP.egg-info/requires.txt +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/IncludeCPP.egg-info/top_level.txt +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/LICENSE +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/MANIFEST.in +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/README.md +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/CHANGELOG.md +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/DOCUMENTATION.md +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/__init__.pyi +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/__main__.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/cli/__init__.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/cli/commands.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/cli/config_parser.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/__init__.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/ai_integration.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/build_manager.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cpp_api.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cpp_api.pyi +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cpp_api_extensions.pyi +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cppy_converter.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/CSSL_DOCUMENTATION.md +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/CSSL_DOCUMENTATION_NEW.md +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/__init__.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cpp/build/api.pyd +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cpp/build/cssl_core.pyi +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cpp/build/libgcc_s_seh-1.dll +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cpp/build/libstdc++-6.dll +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cpp/build/libwinpthread-1.dll +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cpp/cssl_core.cp +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cpp/cssl_lexer.hpp +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cssl_builtins.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cssl_builtins.pyi +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cssl_compiler.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cssl_events.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cssl_languages.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cssl_modules.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cssl_optimizer.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cssl_parser.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cssl_runtime.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl/cssl_types.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl_bridge.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/cssl_bridge.pyi +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/error_catalog.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/error_formatter.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/exceptions.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/path_discovery.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/project_ui.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/core/settings_ui.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/generator/__init__.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/generator/parser.cpp +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/generator/parser.h +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/generator/type_resolver.cpp +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/generator/type_resolver.h +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/py.typed +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/templates/cpp.proj.template +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/vscode/__init__.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/vscode/cssl/__init__.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/vscode/cssl/extension.js +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/vscode/cssl/images/cssl.png +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/vscode/cssl/images/cssl_pl.png +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/vscode/cssl/language-configuration.json +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/vscode/cssl/package.json +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/vscode/cssl/snippets/cssl.snippets.json +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/includecpp/vscode/cssl/syntaxes/cssl.tmLanguage.json +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/requirements.txt +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/setup.cfg +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/setup.py +0 -0
- {includecpp-4.6.2 → includecpp-4.6.4}/tests/test_multilang.py +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
CSSL Syntax Highlighting v4.6.
|
|
2
|
+
CSSL Syntax Highlighting v4.6.4
|
|
3
3
|
|
|
4
4
|
Provides syntax highlighting for CSSL code.
|
|
5
5
|
Can be used with:
|
|
@@ -21,6 +21,8 @@ class TokenCategory(Enum):
|
|
|
21
21
|
OPERATOR = auto() # <==, ==>, ->, <-, +, -, etc.
|
|
22
22
|
STRING = auto() # "string" or 'string'
|
|
23
23
|
STRING_INTERP = auto() # <variable> in strings
|
|
24
|
+
F_STRING = auto() # f"string" or f'string' - v4.6.3
|
|
25
|
+
F_STRING_INTERP = auto() # {var} in f-strings - v4.6.3
|
|
24
26
|
NUMBER = auto() # 123, 45.67
|
|
25
27
|
COMMENT = auto() # # comment or // comment
|
|
26
28
|
MODULE_REF = auto() # @Module, @VSRAM, @Desktop
|
|
@@ -41,6 +43,8 @@ class TokenCategory(Enum):
|
|
|
41
43
|
LANG_INSTANCE = auto() # Instance name after $ (orange): cpp$ClassName
|
|
42
44
|
# v4.6.0: C++ execution control
|
|
43
45
|
NATIVE_KW = auto() # native keyword (cyan/bright) - forces C++ execution
|
|
46
|
+
# v4.6.2: Dunder variables
|
|
47
|
+
DUNDER_VAR = auto() # __name__ style variables (aggressive magenta)
|
|
44
48
|
# Function categories
|
|
45
49
|
FUNCTION_OUTPUT = auto()
|
|
46
50
|
FUNCTION_TYPE = auto()
|
|
@@ -186,6 +190,13 @@ class CSSLSyntaxRules:
|
|
|
186
190
|
rules.append(HighlightRule(pattern=r'//[^\n]*', category=TokenCategory.COMMENT))
|
|
187
191
|
rules.append(HighlightRule(pattern=r'/\*[\s\S]*?\*/', category=TokenCategory.COMMENT))
|
|
188
192
|
|
|
193
|
+
# F-strings (must be before regular strings) - v4.6.3
|
|
194
|
+
rules.append(HighlightRule(pattern=r'f"(?:[^"\\]|\\.)*"', category=TokenCategory.F_STRING))
|
|
195
|
+
rules.append(HighlightRule(pattern=r"f'(?:[^'\\]|\\.)*'", category=TokenCategory.F_STRING))
|
|
196
|
+
|
|
197
|
+
# F-string interpolation {var} - v4.6.3
|
|
198
|
+
rules.append(HighlightRule(pattern=r'\{[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\}', category=TokenCategory.F_STRING_INTERP))
|
|
199
|
+
|
|
189
200
|
# Strings
|
|
190
201
|
rules.append(HighlightRule(pattern=r'"(?:[^"\\]|\\.)*"', category=TokenCategory.STRING))
|
|
191
202
|
rules.append(HighlightRule(pattern=r"'(?:[^'\\]|\\.)*'", category=TokenCategory.STRING))
|
|
@@ -204,6 +215,9 @@ class CSSLSyntaxRules:
|
|
|
204
215
|
# v4.6.0: 'native' keyword (cyan/bright) - forces C++ execution
|
|
205
216
|
rules.append(HighlightRule(pattern=r'\bnative\b', category=TokenCategory.NATIVE_KW))
|
|
206
217
|
|
|
218
|
+
# v4.6.2: Dunder variables (__name__, __this_stat_s__, __s__, etc.)
|
|
219
|
+
rules.append(HighlightRule(pattern=r'\b__[A-Za-z_][A-Za-z0-9_]*__\b', category=TokenCategory.DUNDER_VAR))
|
|
220
|
+
|
|
207
221
|
# v4.1.0: Language$Instance patterns (cpp$ClassName, py$Object)
|
|
208
222
|
rules.append(HighlightRule(pattern=r'\b(cpp|py|python|java|csharp|js|javascript)\$', category=TokenCategory.LANG_PREFIX, group=1))
|
|
209
223
|
rules.append(HighlightRule(pattern=r'\b(?:cpp|py|python|java|csharp|js|javascript)\$([A-Za-z_][A-Za-z0-9_]*)', category=TokenCategory.LANG_INSTANCE, group=1))
|
|
@@ -298,6 +312,8 @@ class ColorScheme:
|
|
|
298
312
|
TokenCategory.OPERATOR: '#c8c8d2', # Light gray
|
|
299
313
|
TokenCategory.STRING: '#50c878', # Green
|
|
300
314
|
TokenCategory.STRING_INTERP: '#f1fa8c', # Yellow for interpolation
|
|
315
|
+
TokenCategory.F_STRING: '#98c379', # Bright green for f-strings
|
|
316
|
+
TokenCategory.F_STRING_INTERP: '#e5c07b', # Gold for {var} in f-strings
|
|
301
317
|
TokenCategory.NUMBER: '#f0c040', # Yellow
|
|
302
318
|
TokenCategory.COMMENT: '#707080', # Gray
|
|
303
319
|
TokenCategory.MODULE_REF: '#ff8c00', # Orange
|
|
@@ -318,6 +334,8 @@ class ColorScheme:
|
|
|
318
334
|
TokenCategory.LANG_INSTANCE: '#ffb86c', # Orange for instance name ($ClassName)
|
|
319
335
|
# v4.6.0: C++ execution control
|
|
320
336
|
TokenCategory.NATIVE_KW: '#50fa7b', # Green for 'native' (C++ forced)
|
|
337
|
+
# v4.6.2: Dunder variables
|
|
338
|
+
TokenCategory.DUNDER_VAR: '#ff00ff', # Aggressive magenta for __name__ vars
|
|
321
339
|
# Function categories
|
|
322
340
|
TokenCategory.FUNCTION_OUTPUT: '#ff8c00', # Orange
|
|
323
341
|
TokenCategory.FUNCTION_TYPE: '#8be9fd', # Cyan
|
|
@@ -342,6 +360,8 @@ class ColorScheme:
|
|
|
342
360
|
TokenCategory.OPERATOR: '#444444', # Dark gray
|
|
343
361
|
TokenCategory.STRING: '#008000', # Green
|
|
344
362
|
TokenCategory.STRING_INTERP: '#b8860b', # DarkGoldenrod
|
|
363
|
+
TokenCategory.F_STRING: '#2e7d32', # Dark green for f-strings
|
|
364
|
+
TokenCategory.F_STRING_INTERP: '#bf8c00', # Dark gold for {var} in f-strings
|
|
345
365
|
TokenCategory.NUMBER: '#a06000', # Brown
|
|
346
366
|
TokenCategory.COMMENT: '#808080', # Gray
|
|
347
367
|
TokenCategory.MODULE_REF: '#c65d00', # Dark orange
|
|
@@ -362,6 +382,8 @@ class ColorScheme:
|
|
|
362
382
|
TokenCategory.LANG_INSTANCE: '#fd7e14', # Orange
|
|
363
383
|
# v4.6.0: C++ execution control
|
|
364
384
|
TokenCategory.NATIVE_KW: '#198754', # Green
|
|
385
|
+
# v4.6.2: Dunder variables
|
|
386
|
+
TokenCategory.DUNDER_VAR: '#c71585', # MediumVioletRed for __name__ vars
|
|
365
387
|
# Function categories (simplified for light theme)
|
|
366
388
|
TokenCategory.FUNCTION_OUTPUT: '#c65d00',
|
|
367
389
|
TokenCategory.FUNCTION_TYPE: '#008b8b',
|
|
@@ -449,6 +471,8 @@ def highlight_cssl_ansi(source: str) -> str:
|
|
|
449
471
|
TokenCategory.OPERATOR: '\033[37m', # White
|
|
450
472
|
TokenCategory.STRING: '\033[92m', # Green
|
|
451
473
|
TokenCategory.STRING_INTERP: '\033[93m', # Yellow
|
|
474
|
+
TokenCategory.F_STRING: '\033[92;1m', # Bright Green for f-strings
|
|
475
|
+
TokenCategory.F_STRING_INTERP: '\033[93;1m',# Bright Yellow for {var}
|
|
452
476
|
TokenCategory.NUMBER: '\033[93m', # Yellow
|
|
453
477
|
TokenCategory.COMMENT: '\033[90m', # Gray
|
|
454
478
|
TokenCategory.MODULE_REF: '\033[33m', # Yellow/Orange
|
|
@@ -469,6 +493,8 @@ def highlight_cssl_ansi(source: str) -> str:
|
|
|
469
493
|
TokenCategory.LANG_INSTANCE: '\033[33m', # Orange/Yellow
|
|
470
494
|
# v4.6.0: C++ execution control
|
|
471
495
|
TokenCategory.NATIVE_KW: '\033[92m', # Bright Green
|
|
496
|
+
# v4.6.2: Dunder variables
|
|
497
|
+
TokenCategory.DUNDER_VAR: '\033[95;1m', # Bright Magenta (bold)
|
|
472
498
|
# Function categories
|
|
473
499
|
TokenCategory.FUNCTION_OUTPUT: '\033[33m',
|
|
474
500
|
TokenCategory.FUNCTION_TYPE: '\033[96m',
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "IncludeCPP"
|
|
7
|
-
version = "4.6.
|
|
7
|
+
version = "4.6.4"
|
|
8
8
|
description = "Professional C++ Python bindings with type-generic templates, pystubs and native threading"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|