Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

colinkiama/sublime_vala

Repository files navigation

Vala Sublime Text Plugin

ARCHIVED: Please fork and carry on work elsewhere.

Goals

  • Improved syntax highlighting with the latest language changes, using sublime-syntax definitions
    • Genie syntax highlighting
  • Completions with the latest language changes using sublime-completions definitions
  • Updated code snippets using sublime-snippet defintions. e.g prop should output public string prop_name { get; set; } and propfull should also get and set their own scope to define behaviours
  • Include a Lazy build system that uses valac to build a program using all the .vala files the current directory and subdirectories, to a build/ folder
    • A "default lazy Compile to C" Build option
    • Have custom build settings that allow compiler args to be configured like packages to include, compile methods etc.
    • Option to Run compiled program

Syntax Highlighting Implementation Progress

This uses the Sublime Text C# syntax definitions as a base so there are fewer things to implement then usual

  • Documentation comments (Valadoc)
  • Using statement list syntax
  • Add tests for Generics
  • CCode Attributes

Credits

Sublime Text C# Syntax definitions: https://github.com/sublimehq/Packages/blob/master/C%23/C%23.sublime-syntax

Vala.sublime-syntax comments and documentation comments syntax: https://github.com/patrickrgaffney/Vala.sublime-syntax