Skip to content

Commit

Permalink
v4.4 (4410)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Destro- committed Oct 12, 2024
1 parent 3327801 commit 2dc8c88
Show file tree
Hide file tree
Showing 252 changed files with 101,337 additions and 698 deletions.
121 changes: 121 additions & 0 deletions AMXX-ASM.sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
%YAML 1.2
---
name: AMXX-ASM
file_extensions: [ amxxdump, amxxmemory ]
scope: source.amxx
contexts:


main:
- include: amxxmemory
- include: amxxdump


- include: pawn_string
- include: pawn_coment
- include: pawn_numbers
- include: pawn_function

# Constants
- match: \b(public|native|stock|local|global)\b
scope: storage.modifier.function

- match: \b(new|val|ref)\b
scope: keyword.control

# Tag
- match: '\b[A-Za-z_]\w*\:'
scope: storage.modifier.tag

amxxdump:
- match: '0x.*?PROC.*?; .*'
scope: keyword.control.memory

amxxmemory:
- match: '^\b(data|code)\b:((0x[0-9A-Fa-f]{8})=?|(.*))'
captures:
1: keyword.control.memory
3: constant.numeric.hex.memory
4: invalid.illegal
push:
- match: '\[(([[0-9A-Fa-f]{8}\s]+)|(.*))\](.*)'
captures:
2: constant.numeric.hex.memory
3: invalid.illegal
4: invalid.illegal
pop: true
- include: pawn_string
- match: '(f)?(.*)'
captures:
1: keyword.control.memory
2: invalid.illegal
pop: true

# String
pawn_string:
- match: '"'
scope: punctuation.definition.string.begin.pawn
push:
- meta_scope: string.quoted.double.pawn
- match: '(")|(?<=^|[^\\])\s*(\n)'
captures:
1: punctuation.definition.string.end.pawn
2: invalid.illegal.unexpected-end-of-line.pawn
pop: true
- include: string_escaped_char
- include: string_placeholder

string_escaped_char:
- 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})
scope: constant.character.escape.pawn
- match: '\\[drywR]'
scope: constant.character.escape.pawn
- match: \^.
scope: invalid.illegal.unknown-escape.pawn

string_placeholder:
- match: |-
(?x)%
((-?\d+)|\*(-?\d+\$)?)? # minimum field width
(\.((-?\d+)|\*(-?\d+\$)?)?)? # precision
[cbdiufXxasLNn%] # conversion type
scope: constant.other.placeholder.pawn
# Comment
pawn_coment:
- match: ';'
scope: punctuation.definition.comment
push:
- meta_scope: comment.line
- match: $
pop: true

# Function
pawn_function:
- match: \s*([A-Za-z_][\w_]*)[\s\<\>\+\-\=]*(\()
captures:
1: variable.function
2: punctuation.section.group.begin function.parens
push:
#- meta_content_scope: meta.function.params
- match: \)
scope: punctuation.section.group.end function.parens
pop: true
- include: main

# Number
pawn_numbers:
- match: '(\d+)(\.{2})(\d+)'
captures:
1: constant.numeric.int
2: keyword.operator.switch-range
3: constant.numeric.int

- match: ([-]?0x[\da-fA-F]{1,8})
scope: constant.numeric.hex

- match: \b(\d+\.\d+)\b
scope: constant.numeric.float

- match: \b(\d+)\b
scope: constant.numeric.int
3 changes: 2 additions & 1 deletion AMXX-Cmd.sublime-commands
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{ "caption": "AMXX: Functions List", "command": "amxx_func_list" },
{ "caption": "AMXX: Includes Tree", "command": "amxx_tree" },
{ "caption": "AMXX: Search All", "command": "amxx_search_all" },
{ "caption": "AMXX: New Header-Inc", "command": "amxx_new_include" },
{ "caption": "AMXX: New Include", "command": "amxx_new_include" },
{ "caption": "AMXX: New Plug-In", "command": "amxx_new_plugin" },
{ "caption": "AMXX: Uncompress", "command": "amxx_uncompress" },
]
53 changes: 30 additions & 23 deletions AMXX-Editor.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,53 +1,60 @@
{
// Example: AMXXEditor 4.2 by Destro
// Example: AMXX-Editor v4.4 by Destro

"active_profile": "default (AMXX 1.9)",
"build_profiles":
{
/*"AMXX-1.8.2":
/* Example:
"AMXX-1.8.2":
{
"amxxpc_debug": 2,
"amxxpc_path": "D:\\archivos\\amxx_mm_hlsdk\\compiler\\1.8.2\\amxxpc.exe",
"include_dir": "D:\\archivos\\amxx_mm_hlsdk\\compiler\\1.8.2\\include",
"output_dir": "D:\\archivos\\plugins"
"amxxpc_path": "D:\\amxmodx\\compiler\\1.8.2\\amxxpc.exe",
"include_dir": "D:\\amxmodx\\compiler\\1.8.2\\include",
"output_dir": "D:\\amxmodx\\plugins"
},
"AMXX-1.9":
{
"amxxpc_debug": 2,
"amxxpc_path": "D:\\archivos\\amxx_mm_hlsdk\\compiler\\1.9\\amxxpc.exe",
"include_dir": "D:\\archivos\\amxx_mm_hlsdk\\compiler\\1.9\\include",
"output_dir": "D:\\archivos\\plugins"
}*/
"amxxpc_path": "D:\\amxmodx\\compiler\\1.9\\amxxpc.exe",
"include_dir": "D:\\amxmodx\\compiler\\1.9\\include",
"output_dir": "D:\\amxmodx\\plugins"
}
Valid variables in path:
- ${package}
- ${file_path}
*/
},


/* EDITOR */
/* Editor features */
"enable_tooltip": true, // ( true / false )
"enable_buildversion": true, // ( true / false )
"enable_check_invalid": true, // ( true / false )
"enable_dynamic_highlight": true, // ( true / false )

/* Autocomplete */
"ac_enable": true, // ( true / false )
"ac_keywords": 2, // ( 0 disable, 1 normal, 2 insert parents )
"ac_keywords": 2, // ( 0: Disable, 1: Normal, 2: Insert parents )
"ac_snippets": true, // ( true / false )
"ac_preprocessor": true, // ( true / false )
"ac_emit_info": true, // ( true / false )
"ac_local_var": true, // ( true / false )
"ac_extra_sorted": true, // ( true / false )

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

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

"style_editor": "AMXXStudio", // ( stylename / "default" )
"style_console": "AMXXStudio", // ( stylename / "default" )
"style_popup": "AMXXStudio", // ( stylename )

"style_editor": "default", // ( stylename )
"style_console": "default", // ( stylename )
"style_popup": "default", // ( stylename )



/***********************************************
* Debug message/log flags:
* Debug flags:
* "" - Set default: "a".
* "a" - Errors messages.
* "b" - Warnings messages.
Expand All @@ -57,8 +64,8 @@
* "f" - Info Analyzer.
* "s" - Sublime EventListener (dev).
* "z" - Enable ViewDebugMode (colorize code sections).
* "*" - All debugging flags at the same time.
* "*" - All debugging flags.
***********************************************/
"debug_flags": "abcd",
"debug_flags_log": "abcd",
"debug_flags": "abe", // Console message
"debug_flags_log": "abcde", // Log file
}
Loading

0 comments on commit 2dc8c88

Please sign in to comment.