Poria Language Support
Syntax highlighting and language support for the Poria programming language.
Features
- Syntax highlighting for
.pr files
- File icon for
.pr files in the explorer
- Bracket matching and auto-closing
- Comment toggling (
Ctrl+/)
- Auto-indentation
Supported Syntax
- Keywords:
fn, let, var, if, else, while, for, return, async, await, struct, import, throw, try, catch
- Literals: integers, strings, booleans (
true/false)
- Operators:
+, -, *, /, %, ==, !=, <, >, <=, >=, &&, ||, !
- Comments:
// line comments
- Type annotations:
let x: Int = 5, fn foo() -> String {}
- Function definitions and calls
Example
fn fib(n) {
if n <= 1 {
return n
}
return fib(n - 1) + fib(n - 2)
}
let result = fib(10)
print(result) // 55
About Poria
Poria is a high-performance, memory-safe backend language built on Mojo and Rust. It eliminates garbage collection pauses and memory leaks by design.
Learn more at github.com/poria-lang/Poria.
| |