Dorpn Language Support is a comprehensive Visual Studio Code extension designed for the Dorpn programming language. It provides high-fidelity syntax highlighting, language-specific configurations, and an optimized editing experience for Dorpn developers.
Key Features
Advanced Syntax Highlighting: Rich semantic highlighting for keywords, control flow, type annotations, and built-in runtime functions.
Intuitive Language Configuration: Built-in support for auto-closing brackets, smart comment toggling (# and --), and consistent indentation rules.
Performance Optimized: Lightweight TextMate grammar ensures the editor remains responsive even with large source files.
Modern Aesthetics: Specifically tuned to integrate seamlessly with professional dark themes like GitHub Dark and Default Dark+.
Language Support Details
Feature
Support
File Extensions
.dpn
Keywords
tag, Const, func, loop, keep, if, elif, else, etc.
Primitive Types
Int, String, Float, Bool
Built-in Functions
print, ask, type, size, repeat, and more.
Professional Configuration
For the most accurate visual representation of the Dorpn grammar, it is recommended to use this extension with a modern dark themes. The extension leverages standard TextMate scopes to ensure compatibility across various professional color palettes.
Example Code
func calc_powers(b: Int, p:Int):
tag result = b ** p
print(result)
func _Start(): # Main Entry
tag i = 1
keep i <= 5: calc_powers(i,2)
i = i + 1