Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.
/ VPL-Sublime Public archive

Sublime Text Package for the VPL-language

Notifications You must be signed in to change notification settings

Springworks/VPL-Sublime

Repository files navigation

LogicIO RTCU - VPL Language Support for Sublime Text

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.

Installation

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)

Problem with inc-files

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)$"}
    ]
}

Recompilation

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.

TODO

Links

About

Sublime Text Package for the VPL-language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published