je-editor 0.0.194__py3-none-any.whl → 0.0.195__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- je_editor/pyside_ui/code/syntax/python_syntax.py +10 -8
- {je_editor-0.0.194.dist-info → je_editor-0.0.195.dist-info}/METADATA +1 -1
- {je_editor-0.0.194.dist-info → je_editor-0.0.195.dist-info}/RECORD +6 -6
- {je_editor-0.0.194.dist-info → je_editor-0.0.195.dist-info}/LICENSE +0 -0
- {je_editor-0.0.194.dist-info → je_editor-0.0.195.dist-info}/WHEEL +0 -0
- {je_editor-0.0.194.dist-info → je_editor-0.0.195.dist-info}/top_level.txt +0 -0
@@ -25,8 +25,16 @@ class PythonHighlighter(QSyntaxHighlighter):
|
|
25
25
|
current_file_suffix = Path(main_window.current_file).suffix
|
26
26
|
else:
|
27
27
|
current_file_suffix = ".py"
|
28
|
+
# Basic Highlight
|
29
|
+
for rule_variable_dict in syntax_rule_setting_dict.values():
|
30
|
+
color = rule_variable_dict.get("color")
|
31
|
+
text_char_format = QTextCharFormat()
|
32
|
+
text_char_format.setForeground(color)
|
33
|
+
for rule in rule_variable_dict.get("rules"):
|
34
|
+
pattern = QRegularExpression(rule)
|
35
|
+
self.highlight_rules.append((pattern, text_char_format))
|
28
36
|
if current_file_suffix == ".py":
|
29
|
-
# Highlight
|
37
|
+
# Python Highlight
|
30
38
|
for rule_variable_dict in syntax_word_setting_dict.values():
|
31
39
|
color = rule_variable_dict.get("color")
|
32
40
|
text_char_format = QTextCharFormat()
|
@@ -34,14 +42,8 @@ class PythonHighlighter(QSyntaxHighlighter):
|
|
34
42
|
for word in rule_variable_dict.get("words"):
|
35
43
|
pattern = QRegularExpression(rf"\b{word}\b")
|
36
44
|
self.highlight_rules.append((pattern, text_char_format))
|
37
|
-
for rule_variable_dict in syntax_rule_setting_dict.values():
|
38
|
-
color = rule_variable_dict.get("color")
|
39
|
-
text_char_format = QTextCharFormat()
|
40
|
-
text_char_format.setForeground(color)
|
41
|
-
for rule in rule_variable_dict.get("rules"):
|
42
|
-
pattern = QRegularExpression(rule)
|
43
|
-
self.highlight_rules.append((pattern, text_char_format))
|
44
45
|
else:
|
46
|
+
# Another Highlight
|
45
47
|
if syntax_extend_setting_dict.get(current_file_suffix):
|
46
48
|
for rule_variable_dict in syntax_extend_setting_dict.get(current_file_suffix).values():
|
47
49
|
color = rule_variable_dict.get("color")
|
@@ -21,7 +21,7 @@ je_editor/pyside_ui/code/plaintext_code_edit/code_edit_plaintext.py,sha256=lcwmB
|
|
21
21
|
je_editor/pyside_ui/code/shell_process/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
je_editor/pyside_ui/code/shell_process/shell_exec.py,sha256=WpWORZ-1T4G_SdnJ4K_6THycNOpQbsIFgjSQFQOJ_1M,8730
|
23
23
|
je_editor/pyside_ui/code/syntax/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
|
-
je_editor/pyside_ui/code/syntax/python_syntax.py,sha256=
|
24
|
+
je_editor/pyside_ui/code/syntax/python_syntax.py,sha256=9rK7_DYAANgf28PUdVl9xs42b76Re_SWwIpijEGBuzQ,3054
|
25
25
|
je_editor/pyside_ui/code/syntax/syntax_setting.py,sha256=oaLRF_83Oa6bcAorf7AlZG0Mrt4FmsK7b4aA-LS_bRo,2284
|
26
26
|
je_editor/pyside_ui/code/textedit_code_result/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
27
|
je_editor/pyside_ui/code/textedit_code_result/code_record.py,sha256=pT-CmcADEaXLZ0ih6D6rpe1XywgszrEpcJxtJYgopJE,2162
|
@@ -101,8 +101,8 @@ je_editor/utils/redirect_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
101
101
|
je_editor/utils/redirect_manager/redirect_manager_class.py,sha256=RsLRbhBy_YyiwTN5g0YkoobI-BvSdZgX0Ot53nrHm7g,2174
|
102
102
|
je_editor/utils/venv_check/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
103
103
|
je_editor/utils/venv_check/check_venv.py,sha256=oCrMdue4NYUUGrVifh_iHFwIgxVx9azYN4jz3Xiulgg,999
|
104
|
-
je_editor-0.0.
|
105
|
-
je_editor-0.0.
|
106
|
-
je_editor-0.0.
|
107
|
-
je_editor-0.0.
|
108
|
-
je_editor-0.0.
|
104
|
+
je_editor-0.0.195.dist-info/LICENSE,sha256=KMhUHh6pnIUvmXDW-49L_Sz63bqkOlPDqsecaqKiitU,1091
|
105
|
+
je_editor-0.0.195.dist-info/METADATA,sha256=aS8sqN1DPe0PjD4ombaJG1S8mrulm2hprEnCPCS_KnI,3338
|
106
|
+
je_editor-0.0.195.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
107
|
+
je_editor-0.0.195.dist-info/top_level.txt,sha256=_9YA7BgxpkmdLs-5V_UQILxClcMRgPyG1a3qaE-Bkcs,10
|
108
|
+
je_editor-0.0.195.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|