# ESC Language Support
Official Visual Studio Code language support for **ESC**, the Eclipse scripting language by **Jergan Studio**.
## Features
- `.esc` file support
- ESC syntax highlighting
- ESC commands
- `draw` command highlighting
- Strings
- Numbers
- Variables
- Constants
- Functions
- Operators
- Comments
- Bracket matching
- Automatic closing brackets
- Code folding
## ESC Commands
The extension currently recognizes these ESC commands:
```text
set
echo
alert
broadcast
call
draw
print
input
wait
spawn
stop
ESC Control Keywords
if
else
elseif
end
repeat
while
break
continue
ESC Function Keywords
func
function
Variable Keywords
var
let
const
Boolean / Null Values
true
false
null
nil
Operators
=
+
-
*
/
%
==
===
!=
!==
<
>
<=
>=
++
--
+=
-=
*=
/=
&&
||
!
// This is a comment
echo "Hello"
/*
This is a block comment.
*/
echo "Hello"
Example ESC Program
set player = "Eclipse"
echo player
draw player
if player == "Eclipse"
alert "Welcome to Eclipse!"
end
repeat 5
draw player
echo "Drawing player"
end
func hello
echo "Hello from ESC!"
end
call hello
File Extension
ESC uses:
.esc
Project Structure
esc-vscode/
├── package.json
├── language-configuration.json
├── esc.tmLanguage.json
└── README.md
Testing
Open the extension folder in VS Code:
code .
Press:
F5
This opens an Extension Development Host.
Create:
test.esc
VS Code should automatically detect the file as ESC.
Packaging
Install the VS Code Extension Manager:
npm install -g @vscode/vsce
Then package the extension:
vsce package
This creates:
esc-language-support-0.2.0.vsix
Install it with:
code --install-extension esc-language-support-0.2.0.vsix
Repository
ESC is part of the Eclipse project:
https://github.com/jergan-studio/Eclipse
Future Features
Planned improvements include:
- ESC autocomplete
- ESC snippets
- ESC diagnostics
- ESC compiler integration
- Run ESC files from VS Code
- Go to definition
- Hover documentation
- ESC formatter
- ESC debugger
- Language Server Protocol support
License
MIT License
Copyright (c) Jergan Studio.