-
Notifications
You must be signed in to change notification settings - Fork 8
/
Q.JSON-tmLanguage
96 lines (95 loc) · 3.23 KB
/
Q.JSON-tmLanguage
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{ "name": "q",
"scopeName": "source.q",
"fileTypes": ["q"],
"patterns": [
{
"name": "comment.block.source.q",
"begin": "\/\r",
"end" : "\\\\\r",
"comment": "string"
},
{
"name": "comment.block.source.q",
"match": "^\/.+",
"comment": "string"
},
{
"name": "comment.block.source.q",
"begin": "\\\\\r",
"end": "\\\\\r",
"comment": "string"
},
{
"name": "comment.line.source.q",
"match": "\/ .*",
"comment": "string"
},
{
"name": "string.quoted.string.source.q",
"match": "\".*?\"",
"comment": "string"
},
{
"name": "string.interpolated.symbol.source.q",
"match": "`[:/a-zA-Z0-9_.]+",
"comment": "string"
},
{
"name": "other.source.q",
"match": "(?=([^a-zA-Z0-9]|\\b))([a-zA-Z]+[a-zA-Z0-9_\\.]*):",
"captures" : {
"2" : {"name" : "variable.parameter.complex.source.q"}
},
"comment": "variable definition"
},
{
"name": "other.source.q",
"match": "(?=([^a-zA-Z0-9]|\\b))([a-zA-Z]+[a-zA-Z0-9_\\.]*)[,+-]:",
"captures" : {
"2" : {"name" : "variable.parameter.complex.source.q"}
},
"comment": "variable definition"
},
{
"name": "other.source.q",
"match": "(?=(\\W|\\b))(prd|while|wavg|delete|min|like|exp|abs|insert|wsum|last|log|div|cos|sin|sqrt|max|in|exec|within|xexp|avg|second|hour|minute|update|sum|by|from|select|neg|not|null|string|reciprocal|floor|ceiling|signum|mod|xbar|xlog|and|or|each|scan|over|prior|mmu|lsq|inv|md5|ltime|gtime|count|first|var|dev|med|cov|cor|all|any|rand|sums|prds|mins|maxs|fills|deltas|ratios|avgs|differ|prev|next|rank|reverse|iasc|idesc|asc|desc|msum|mcount|mavg|mdev|xrank|mmin|mmax|xprev|rotate|distinct|group|where|flip|type|key|til|get|value|attr|cut|set|upsert|raze|union|inter|except|cross|sv|vs|sublist|enlist|read0|read1|hopen|hclose|hdel|hsym|hcount|peach|system|ltrim|rtrim|trim|lower|upper|ssr|view|tables|views|cols|xcols|keys|xkey|xcol|xasc|xdesc|fkeys|meta|lj|aj|aj0|ij|pj|asof|uj|ww|wj|wj1|fby|xgroup|ungroup|ej|save|load|rsave|rload|show|csv|parse|eval)(?=(\\W|\\b))",
"captures" : {
"2" : {"name" : "keyword.other.complex.source.q"}
},
"comment": "q keyword"
},
{
"name": "other.source.q",
"match": "(?=(\\W|\\b))([0-9]{4}\\.[0-9]{2}\\.[0-9]{2}[TD]?[0-9]{2}:[0-9]{2}:[0-9]{2}(:[0-9]{2})?(\\.[0-9]{3,6})?)(?=(\\W|\\b))",
"captures" : {
"2" : {"name" : "constant.numeric.complex.source.q"}
},
"comment": "datetime"
},
{
"name": "other.source.q",
"match": "(?=(\\W|\\b))([0-9]{4}\\.[0-9]{2}\\.[0-9]{2}[TD]?)(?=(\\W|\\b))",
"captures" : {
"2" : {"name" : "constant.numeric.complex.source.q"}
},
"comment": "time"
},
{
"name": "other.source.q",
"match": "(?=(\\W|\\b))([0-9]{2}:[0-9]{2}:[0-9]{2}(:[0-9]{2})?(\\.[0-9]{3,6})?)(?=(\\W|\\b))",
"captures" : {
"2" : {"name" : "constant.numeric.complex.source.q"}
},
"comment": "date"
},
{
"name": "other.source.q",
"match": "(?=(\\W|\\b))([-]?[0-9]+[bhijef]{0,1}(\\.[0-9]+[m]?)?|0x[a-f0-9]+)(?=(\\W|\\b))",
"captures" : {
"2" : {"name" : "constant.numeric.complex.source.q"}
},
"comment": "boolean,short,integer,long"
}
],
"uuid": "ef19f88f-c8f2-4877-a39b-68259fdd0ded"
}