#578 Add Vala language

Completed
closed
SciTE (236)
3
2009-07-03
2009-04-26
Anonymous
No

Vala it's a modern language. It's easy to write a program such as C# and is faster such as C++
http://live.gnome.org/Vala/

For add Vala to Scite:
- Step 1:
open cpp.properties file and add :
____________________________
file.patterns.vala=*.vala
file.patterns.c.like=$(file.patterns.cpp);$(file.patterns.cs);$(file.patterns.idl);*.java;$(file.patterns.flash);$(file.patterns.ch);$(file.patterns.vala)
filter.cpp=C/C++ (c cc cpp cxx cs h hh hxx hpp dlg rc rc2 mak)|\ $(file.patterns.cpp);$(file.patterns.cs);$(file.patterns.rc);$(file.patterns.vala);*.mak;make*|
____________________________
And
____________________________
command.build.$(file.patterns.vala)=valac $(FileNameExt)
command.go.*.vala=./$(FileName)
____________________________
- Step 2:
Open SCiTEGlobal.properties and modify:
source.files=*.asm;*.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hxx;*.hpp;*\ to
source.files=*.asm;*.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hxx;*.hpp;*.vala\

And add this line:
&Vala|vala||

If someone can add this to next release ...
Thanks

Discussion

  • MERCIER Jonathan

    Sorry , the previous post is me :D
    need login ... :D

     
  • MERCIER Jonathan

    And for lexer add to cpp.properties file this line:
    lexer.$(file.patterns.vala)=cpp
    bye

     
  • Neil Hodgson

    Neil Hodgson - 2009-04-28
    • milestone: --> Completed
    • priority: 5 --> 3
     
  • Neil Hodgson

    Neil Hodgson - 2009-04-28

    Committed the changes to cpp.properties.

    Due to platform issues, source.files is limited in length so no change made to source.files. To limit the Language menu to a reasonable length, only highly popular languages are added to it.

     
  • Neil Hodgson

    Neil Hodgson - 2009-04-28
    • assigned_to: nobody --> nyamatongwe
     
  • Neil Hodgson

    Neil Hodgson - 2009-04-28
    • labels: --> SciTE
     
  • MERCIER Jonathan

    I put here the syntax
    ----------------------------------------------
    Keywords

    Flow Control

    * if, else
    * switch, case, default
    * break, continue, return, yield
    * for, foreach, in
    * do, while
    * try, catch, finally, throw

    Declarations

    * namespace, interface, class, struct, enum, delegate, signal, errordomain
    * construct, get, set, value, base
    * const, static, var, dynamic, weak, unowned
    * virtual, abstract, override
    * public, protected, private, extern
    * throws, requires, ensures, yields
    * out, ref

    Resource Control

    *

    lock, using

    Literals

    * true, false
    * null

    Operators

    *

    Assignment: =, |=, &=, ^=, +=, -=, *=, /=, %=, <<=, >>=, ++, --
    *

    Comparision: ==, !=, <=, >=, <, >, in, is
    *

    Arithmethic: +, -, *, /, %, <<, >>, ^, &, |, ~
    *

    Logic: !, ||, &&
    *

    Pointer: *, &, ->, delete
    *

    Lambda Functions: =>
    *

    Other: generic <, new, this, typeof, sizeof, as, owned
    ---------------------------------------------------

    How can i know if someone one work on this ?

     
  • Neil Hodgson

    Neil Hodgson - 2009-05-09

    It is unlikely anyone will work on this unless someone else interested in Vala is using Scintilla. You could monitor this feature request and the mailing list
    http://groups.google.com/group/scintilla-interest

     
  • Neil Hodgson

    Neil Hodgson - 2009-07-03
    • status: open --> closed
     

Log in to post a comment.