Index: Bundles/MEL.tmbundle/Preferences/Symbol List.tmPreferences =================================================================== --- Bundles/MEL.tmbundle/Preferences/Symbol List.tmPreferences (revision 0) +++ Bundles/MEL.tmbundle/Preferences/Symbol List.tmPreferences (revision 0) @@ -0,0 +1,22 @@ + + + + + name + Symbol List + scope + meta.function.mel + settings + + showInSymbolList + 1 + symbolTransformation + + s/(?:(?:global\s*)?proc)\s*(\w+\s*\[?\]?\s+|\s+)/ /g; + s/\s*\(.*\)?/ /g; + + + uuid + 7FC6AD09-BA7B-4A76-BDFC-9D52BE631802 + + Index: Bundles/MEL.tmbundle/Syntaxes/MEL.plist =================================================================== --- Bundles/MEL.tmbundle/Syntaxes/MEL.plist (revision 5159) +++ Bundles/MEL.tmbundle/Syntaxes/MEL.plist (working copy) @@ -36,12 +36,18 @@ match - \b(if|in|else|for|while|break|continue|case|default|do|switch|return|switch|case|global|proc|source|catch|alias)\b + \b(if|in|else|for|while|break|continue|case|default|do|switch|return|switch|case|source|catch|alias)\b name keyword.control.mel match + \b(global)\b + name + keyword.other.mel + + + match \b(null|undefined)\b name constant.language.mel @@ -73,7 +79,7 @@ match \$[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*?\b name - variable.other.php + variable.other.mel begin @@ -132,19 +138,24 @@ begin - \b(proc)\s+([a-zA-Z_]\w*)\s*\( + ((?:global\s*)?proc)\s*(\w+\s*\[?\]?\s+|\s+)([A-Za-z_][A-Za-z0-9_]*)\s*\( captures 1 name - storage.type.function.asp + keyword.other.mel 2 name - entity.name.function.asp + storage.type.mel + 3 + + name + entity.name.function.mel + end \) @@ -153,10 +164,8 @@ patterns - match - [^,)\n]+ - name - variable.parameter.function.asp + include + $self