Skip to content

Commit 2dc8c88

Browse files
committed
v4.4 (4410)
New: AMXX-Uncompress; Rewritten in Python and improved. New: Default Profile, now includes a compiler to allow having a default profile. New: New color-scheme and popup css. Improved: Style selection. Improved: Profile selection. Improved: About command. Improved: Changelog.
1 parent 3327801 commit 2dc8c88

File tree

252 files changed

+101337
-698
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+101337
-698
lines changed

Diff for: AMXX-ASM.sublime-syntax

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
%YAML 1.2
2+
---
3+
name: AMXX-ASM
4+
file_extensions: [ amxxdump, amxxmemory ]
5+
scope: source.amxx
6+
contexts:
7+
8+
9+
main:
10+
- include: amxxmemory
11+
- include: amxxdump
12+
13+
14+
- include: pawn_string
15+
- include: pawn_coment
16+
- include: pawn_numbers
17+
- include: pawn_function
18+
19+
# Constants
20+
- match: \b(public|native|stock|local|global)\b
21+
scope: storage.modifier.function
22+
23+
- match: \b(new|val|ref)\b
24+
scope: keyword.control
25+
26+
# Tag
27+
- match: '\b[A-Za-z_]\w*\:'
28+
scope: storage.modifier.tag
29+
30+
amxxdump:
31+
- match: '0x.*?PROC.*?; .*'
32+
scope: keyword.control.memory
33+
34+
amxxmemory:
35+
- match: '^\b(data|code)\b:((0x[0-9A-Fa-f]{8})=?|(.*))'
36+
captures:
37+
1: keyword.control.memory
38+
3: constant.numeric.hex.memory
39+
4: invalid.illegal
40+
push:
41+
- match: '\[(([[0-9A-Fa-f]{8}\s]+)|(.*))\](.*)'
42+
captures:
43+
2: constant.numeric.hex.memory
44+
3: invalid.illegal
45+
4: invalid.illegal
46+
pop: true
47+
- include: pawn_string
48+
- match: '(f)?(.*)'
49+
captures:
50+
1: keyword.control.memory
51+
2: invalid.illegal
52+
pop: true
53+
54+
# String
55+
pawn_string:
56+
- match: '"'
57+
scope: punctuation.definition.string.begin.pawn
58+
push:
59+
- meta_scope: string.quoted.double.pawn
60+
- match: '(")|(?<=^|[^\\])\s*(\n)'
61+
captures:
62+
1: punctuation.definition.string.end.pawn
63+
2: invalid.illegal.unexpected-end-of-line.pawn
64+
pop: true
65+
- include: string_escaped_char
66+
- include: string_placeholder
67+
68+
string_escaped_char:
69+
- match: \^(\^|[abefnprtv\'"?]|[0-3]\d{,2}|[4-7]\d?|x[a-fA-F0-9]{,2}|u[a-fA-F0-9]{,4}|U[a-fA-F0-9]{,8})
70+
scope: constant.character.escape.pawn
71+
- match: '\\[drywR]'
72+
scope: constant.character.escape.pawn
73+
- match: \^.
74+
scope: invalid.illegal.unknown-escape.pawn
75+
76+
string_placeholder:
77+
- match: |-
78+
(?x)%
79+
((-?\d+)|\*(-?\d+\$)?)? # minimum field width
80+
(\.((-?\d+)|\*(-?\d+\$)?)?)? # precision
81+
[cbdiufXxasLNn%] # conversion type
82+
scope: constant.other.placeholder.pawn
83+
84+
# Comment
85+
pawn_coment:
86+
- match: ';'
87+
scope: punctuation.definition.comment
88+
push:
89+
- meta_scope: comment.line
90+
- match: $
91+
pop: true
92+
93+
# Function
94+
pawn_function:
95+
- match: \s*([A-Za-z_][\w_]*)[\s\<\>\+\-\=]*(\()
96+
captures:
97+
1: variable.function
98+
2: punctuation.section.group.begin function.parens
99+
push:
100+
#- meta_content_scope: meta.function.params
101+
- match: \)
102+
scope: punctuation.section.group.end function.parens
103+
pop: true
104+
- include: main
105+
106+
# Number
107+
pawn_numbers:
108+
- match: '(\d+)(\.{2})(\d+)'
109+
captures:
110+
1: constant.numeric.int
111+
2: keyword.operator.switch-range
112+
3: constant.numeric.int
113+
114+
- match: ([-]?0x[\da-fA-F]{1,8})
115+
scope: constant.numeric.hex
116+
117+
- match: \b(\d+\.\d+)\b
118+
scope: constant.numeric.float
119+
120+
- match: \b(\d+)\b
121+
scope: constant.numeric.int

Diff for: AMXX-Cmd.sublime-commands

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
{ "caption": "AMXX: Functions List", "command": "amxx_func_list" },
44
{ "caption": "AMXX: Includes Tree", "command": "amxx_tree" },
55
{ "caption": "AMXX: Search All", "command": "amxx_search_all" },
6-
{ "caption": "AMXX: New Header-Inc", "command": "amxx_new_include" },
6+
{ "caption": "AMXX: New Include", "command": "amxx_new_include" },
77
{ "caption": "AMXX: New Plug-In", "command": "amxx_new_plugin" },
8+
{ "caption": "AMXX: Uncompress", "command": "amxx_uncompress" },
89
]

Diff for: AMXX-Editor.sublime-settings

+30-23
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,60 @@
11
{
2-
// Example: AMXXEditor 4.2 by Destro
2+
// Example: AMXX-Editor v4.4 by Destro
33

4+
"active_profile": "default (AMXX 1.9)",
45
"build_profiles":
56
{
6-
/*"AMXX-1.8.2":
7+
/* Example:
8+
"AMXX-1.8.2":
79
{
810
"amxxpc_debug": 2,
9-
"amxxpc_path": "D:\\archivos\\amxx_mm_hlsdk\\compiler\\1.8.2\\amxxpc.exe",
10-
"include_dir": "D:\\archivos\\amxx_mm_hlsdk\\compiler\\1.8.2\\include",
11-
"output_dir": "D:\\archivos\\plugins"
11+
"amxxpc_path": "D:\\amxmodx\\compiler\\1.8.2\\amxxpc.exe",
12+
"include_dir": "D:\\amxmodx\\compiler\\1.8.2\\include",
13+
"output_dir": "D:\\amxmodx\\plugins"
1214
},
1315
"AMXX-1.9":
1416
{
1517
"amxxpc_debug": 2,
16-
"amxxpc_path": "D:\\archivos\\amxx_mm_hlsdk\\compiler\\1.9\\amxxpc.exe",
17-
"include_dir": "D:\\archivos\\amxx_mm_hlsdk\\compiler\\1.9\\include",
18-
"output_dir": "D:\\archivos\\plugins"
19-
}*/
18+
"amxxpc_path": "D:\\amxmodx\\compiler\\1.9\\amxxpc.exe",
19+
"include_dir": "D:\\amxmodx\\compiler\\1.9\\include",
20+
"output_dir": "D:\\amxmodx\\plugins"
21+
}
22+
23+
Valid variables in path:
24+
- ${package}
25+
- ${file_path}
26+
27+
*/
2028
},
2129

22-
23-
/* EDITOR */
30+
/* Editor features */
2431
"enable_tooltip": true, // ( true / false )
2532
"enable_buildversion": true, // ( true / false )
2633
"enable_check_invalid": true, // ( true / false )
2734
"enable_dynamic_highlight": true, // ( true / false )
2835

36+
/* Autocomplete */
2937
"ac_enable": true, // ( true / false )
30-
"ac_keywords": 2, // ( 0 disable, 1 normal, 2 insert parents )
38+
"ac_keywords": 2, // ( 0: Disable, 1: Normal, 2: Insert parents )
3139
"ac_snippets": true, // ( true / false )
3240
"ac_preprocessor": true, // ( true / false )
3341
"ac_emit_info": true, // ( true / false )
3442
"ac_local_var": true, // ( true / false )
3543
"ac_extra_sorted": true, // ( true / false )
3644

37-
"live_refresh_delay": 1.5, // ( 0.5 ~ 5.0 ) Delay before regenerating Auto-Completion
45+
"live_refresh_delay": 1.5, // ( 0.5 ~ 5.0 ) Delay before reparsing code.
3846

39-
"tooltip_style_mode": 0, // 0: Using CSS style file, 1: Using Editor color-scheme file.
40-
"tooltip_font_size": 1, // editor font_size + tooltip_font_size
47+
"tooltip_style_mode": 1, // 0: Using CSS style file, 1: Generate from color-scheme.
48+
"tooltip_font_size": 1, // Tooltip font size offset (font_size + tooltip_font_size)
4149

42-
"style_editor": "AMXXStudio", // ( stylename / "default" )
43-
"style_console": "AMXXStudio", // ( stylename / "default" )
44-
"style_popup": "AMXXStudio", // ( stylename )
45-
50+
"style_editor": "default", // ( stylename )
51+
"style_console": "default", // ( stylename )
52+
"style_popup": "default", // ( stylename )
4653

4754

4855

4956
/***********************************************
50-
* Debug message/log flags:
57+
* Debug flags:
5158
* "" - Set default: "a".
5259
* "a" - Errors messages.
5360
* "b" - Warnings messages.
@@ -57,8 +64,8 @@
5764
* "f" - Info Analyzer.
5865
* "s" - Sublime EventListener (dev).
5966
* "z" - Enable ViewDebugMode (colorize code sections).
60-
* "*" - All debugging flags at the same time.
67+
* "*" - All debugging flags.
6168
***********************************************/
62-
"debug_flags": "abcd",
63-
"debug_flags_log": "abcd",
69+
"debug_flags": "abe", // Console message
70+
"debug_flags_log": "abcde", // Log file
6471
}

0 commit comments

Comments
 (0)