A simple extension for syntax highlighting of generic pseudocode.
Syntax highlighting exists for multiple variants of common pseudocode keywords, allowing you to use your own style and not confining you to a specific format.
The following items have syntax highlighting. Synonyms are separated by spaces.
output print e.g. output "Hello World"
input
if
else
try
catch except
import
while loop
for
foreach
return
set e.g. set x = 1
switch
case
break
continue
do
end
and &&
or ||
not !
in
function
procedure
e.g.
function say(x) do
print x
end
say("Hello World")
class
extends
e.g.
class A do
constructor() do
print "Hi"
end
end
e.g.
class B extends A do
constructor() do
print "Hi"
end
end
struct
e.g.
struct A do
end
${}
e.g.
set user = "John"
print "Hello, ${user}!"
If Else:
Loops:
Switch:
Try Catch:
Functions:
Classes:
Structs:
- do end autocloses in variables
- Added
static
,public
, andprivate
modifiers for structs, classes, and functions - Added the
continue
keyword
- Added template strings (e.g.
"Hi ${user.name}"
)
- Added structs
- Added
struct
andstructdo
snippets
- Fixed bug where do end would be autoclose in strings and comments
- Fixed bug which prevented comments in functions and procedures
- Minor changes to extension information
- Initial release with syntax highlighting and snippets for basic statements and definitions.