This adds Syntax Definitions for the VPL programming language used in LogicIOs RTCU software.
At the moment it has all the functions and reserved keywords from RTCU IDE. Something to look at in the future could be custom functions and function signatures if needed.
First navigate to the Package
directory.
- Windows: %APPDATA%\Sublime Text 2\Packages
- OS X: ~/Library/Application Support/Sublime Text 2/Packages
- Linux: ~/.Sublime Text 2/Packages
Then checkout the project from github
git clone git@github.com:Springworks/VPL-Sublime.git VPL
Restart sublime. Now you should have the option for syntax highlight under
view -> Syntax -> VPL (LogicIO RTCU)
Since .inc files are used in many languages, syntax definitions with a name before VPL will have priority. This can be fixed by installing the plugin ApplySyntax. Then change the file ApplySyntax.sublime-settings
. Add this beneath the other rules. Also, remove the .inc-files from the PHP/html rules. Because, who in their right mind names files .inc in php/html projects. Right? :D
{
"name": "VPL/vpl",
"rules": [
{"file_name": ".*\\.(inc|vpl)$"}
]
}
To recompile files in the project you need AAAPackageDev. After that you can change the build system in Sublime Text 2 to Convert To...
.
The file you want to change when updating the Syntax Definitions is
vpl.YAML-tmLanguage
not vpl.tmLanguage
. The YAML-file is the source and the tmLanguage-file is the compiled one.
- Add make file so we can recompile the .tmLanguage-files.
- Clean up the scopes after Text Mates Naming Conventions
- Regexper - Visual aid for Regex.
- AAAPackageDev - Development tool in Sublime.
- RTCU IDE - Language Reference
- Syntax Defs - Documentation for creating syntax defs
- Syntax Defs 2 - Documentation for creating syntax defs 2