]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/vala.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / vala.js
1 /*! `vala` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar = (function () {
3 'use strict';
4
5 /*
6 Language: Vala
7 Author: Antono Vasiljev <antono.vasiljev@gmail.com>
8 Description: Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C.
9 Website: https://wiki.gnome.org/Projects/Vala
10 Category: system
11 */
12
13 function vala(hljs) {
14 return {
15 name: 'Vala',
16 keywords: {
17 keyword:
18 // Value types
19 'char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 '
20 + 'uint16 uint32 uint64 float double bool struct enum string void '
21 // Reference types
22 + 'weak unowned owned '
23 // Modifiers
24 + 'async signal static abstract interface override virtual delegate '
25 // Control Structures
26 + 'if while do for foreach else switch case break default return try catch '
27 // Visibility
28 + 'public private protected internal '
29 // Other
30 + 'using new this get set const stdout stdin stderr var',
31 built_in:
32 'DBus GLib CCode Gee Object Gtk Posix',
33 literal:
34 'false true null'
35 },
36 contains: [
37 {
38 className: 'class',
39 beginKeywords: 'class interface namespace',
40 end: /\{/,
41 excludeEnd: true,
42 illegal: '[^,:\\n\\s\\.]',
43 contains: [ hljs.UNDERSCORE_TITLE_MODE ]
44 },
45 hljs.C_LINE_COMMENT_MODE,
46 hljs.C_BLOCK_COMMENT_MODE,
47 {
48 className: 'string',
49 begin: '"""',
50 end: '"""',
51 relevance: 5
52 },
53 hljs.APOS_STRING_MODE,
54 hljs.QUOTE_STRING_MODE,
55 hljs.C_NUMBER_MODE,
56 {
57 className: 'meta',
58 begin: '^#',
59 end: '$',
60 }
61 ]
62 };
63 }
64
65 return vala;
66
67 })();
68 ;
69 export default hljsGrammar;