A simple scripting language in C++
Ferenc Szontágh
2025-04-19 26263ab9055d2ce4f6b1ec934949bcea240b1f29
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  "fileTypes": ["voidscript", "vs"],
    "scopeName": "source.voidscript",
    "patterns": [
      {
        "name": "comment.line.number-sign.voidscript",
        "match": "#.*"
      },
      {
        "name": "comment.line.double-slash.voidscript",
        "match": "//.*"
      },
      {
        "name": "keyword.control.voidscript",
        "match": "\\b(function|class|const|object|string|int|boolean|double|float|if|else|for|while|switch|case|break|continue|new|return|throw|typeof)\\b"
      },
      {
        "name": "variable.other.local.voidscript",
        "match": "\\$[a-zA-Z_][a-zA-Z0-9_]*"
      },
      {
        "name": "variable.language.this.voidscript",
        "match": "\\bthis\\b"
      },
      {
        "name": "string.quoted.double.voidscript",
        "match": "\"([^\"]|\\\\\")*\""
      },
      {
        "name": "constant.numeric.voidscript",
        "match": "\\b\\d+(?:\\.\\d+)?\\b"
      },
      {
        "name": "constant.language.boolean.voidscript",
        "match": "\\b(true|false)\\b"
      },
      {
        "name": "keyword.operator.voidscript",
        "match": "(->|\\+=|-=|\\*=|\\/=|%=|&&|\\|\\||==|!=|>=|<=|>|<|\\+|-|\\*|\\/|%|=|!)"
      }
    ],
    "repository": {}
  }