monaco-yql-languages 1.15.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,7 @@ import './themes/themes.contribution';
4
4
  import './yql/yql.contribution';
5
5
  import './yql/yql_ansi.contribution';
6
6
  import './yql/yql.keywords';
7
+ import './yql/YQL.tmLanguage.json';
7
8
  import './yql_unstable/yql.contribution';
8
9
  import './yql_unstable/YQL.monarch.json';
9
10
  import './yql_unstable/YQLansi.monarch.json';
@@ -4,6 +4,7 @@ import './themes/themes.contribution';
4
4
  import './yql/yql.contribution';
5
5
  import './yql/yql_ansi.contribution';
6
6
  import './yql/yql.keywords';
7
+ import './yql/YQL.tmLanguage.json';
7
8
  import './yql_unstable/yql.contribution';
8
9
  import './yql_unstable/YQL.monarch.json';
9
10
  import './yql_unstable/YQLansi.monarch.json';
@@ -0,0 +1,154 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3
+ "fileTypes": ["yql"],
4
+ "name": "yql",
5
+ "patterns": [
6
+ {
7
+ "begin": "@@#py",
8
+ "end": "@@",
9
+ "patterns": [
10
+ {
11
+ "include": "source.python"
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ "begin": "@@//js",
17
+ "end": "@@",
18
+ "patterns": [
19
+ {
20
+ "include": "source.js"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "include": "#comment"
26
+ },
27
+ {
28
+ "include": "#function-identifier"
29
+ },
30
+ {
31
+ "include": "#type-identifier"
32
+ },
33
+ {
34
+ "include": "#keyword"
35
+ },
36
+ {
37
+ "include": "#quoted-identifier"
38
+ },
39
+ {
40
+ "include": "#bind-parameter-identifier"
41
+ },
42
+ {
43
+ "include": "#identifier"
44
+ },
45
+ {
46
+ "include": "#literal"
47
+ },
48
+ {
49
+ "include": "#string-literal"
50
+ }
51
+ ],
52
+ "repository": {
53
+ "bind-parameter-identifier": {
54
+ "patterns": [
55
+ {
56
+ "match": "(\\$([a-zA-Z_])([a-zA-Z_0-9])*)",
57
+ "name": "variable.parameter"
58
+ }
59
+ ]
60
+ },
61
+ "comment": {
62
+ "patterns": [
63
+ {
64
+ "match": "(((\\/\\*(.|\\n)*?\\*\\/)|(\\-\\-[^\\n\\r]*(\\r\\n?|\\n|$))))",
65
+ "name": "comment.block"
66
+ },
67
+ {
68
+ "begin": "\\/\\*",
69
+ "end": "\\*\\/",
70
+ "name": "comment.block"
71
+ }
72
+ ]
73
+ },
74
+ "function-identifier": {
75
+ "patterns": [
76
+ {
77
+ "match": "\\b(([a-zA-Z_])([a-zA-Z_0-9])*\\:\\:([a-zA-Z_])([a-zA-Z_0-9])*)\\b",
78
+ "name": "entity.name.function"
79
+ },
80
+ {
81
+ "match": "\\b(([a-zA-Z_])([a-zA-Z_0-9])*)(?=\\()\\b",
82
+ "name": "entity.name.function"
83
+ }
84
+ ]
85
+ },
86
+ "identifier": {
87
+ "patterns": [
88
+ {
89
+ "match": "\\b(([a-zA-Z_])([a-zA-Z_0-9])*)\\b",
90
+ "name": "variable.other"
91
+ }
92
+ ]
93
+ },
94
+ "keyword": {
95
+ "patterns": [
96
+ {
97
+ "match": "(?i)\\b(CURRENT_TIMESTAMP|MATCH_RECOGNIZE|UNCONDITIONAL|AUTOINCREMENT|MILLISECONDS|MICROSECONDS|EMPTY_ACTION|CURRENT_TIME|CURRENT_DATE|TRANSACTION|TABLESAMPLE|REPLICATION|NANOSECONDS|JSON_EXISTS|INCREMENTAL|CONDITIONAL|TABLESTORE|REPEATABLE|REFERENCES|PRIVILEGES|JSON_VALUE|JSON_QUERY|DEFERRABLE|CONSTRAINT|COLLECTION|CLASSIFIER|CHANGEFEED|ATTRIBUTES|ASYMMETRIC|WATERMARK|UNMATCHED|UNBOUNDED|TEMPORARY|SYMMETRIC|STREAMING|SAVEPOINT|RETURNING|PRECEDING|PARTITION|INTERSECT|INITIALLY|INCREMENT|IMMEDIATE|FOLLOWING|EXCLUSIVE|EXCLUSION|ENCRYPTED|DIRECTORY|BERNOULLI|TRANSFER|SUBQUERY|SEQUENCE|ROLLBACK|RESTRICT|RESOURCE|PASSWORD|PARALLEL|OPTIONAL|MEASURES|INHERITS|GROUPING|FUNCTION|EXTERNAL|EVALUATE|DISTINCT|DESCRIBE|DEFERRED|DATABASE|CONSUMER|CONFLICT|CALLABLE|WRAPPER|WITHOUT|VIRTUAL|VARIANT|UNKNOWN|TRIGGER|SYMBOLS|SECONDS|RESTORE|RESTART|RESPECT|REPLACE|RELEASE|REINDEX|PROCESS|PRIMARY|PRESORT|PERMUTE|PATTERN|PASSING|NOTNULL|NOLOGIN|NATURAL|MATCHES|INSTEAD|INITIAL|INDEXED|FOREIGN|FLATTEN|EXPLAIN|EXCLUDE|DISCARD|DISABLE|DEFAULT|DECLARE|DECIMAL|CURRENT|CONNECT|COMPACT|COLUMNS|COLLATE|CASCADE|BITCAST|BETWEEN|AUTOMAP|ANALYZE|WINDOW|VALUES|VACUUM|UPSERT|UPDATE|UNIQUE|TAGGED|TABLES|SYSTEM|SUBSET|STRUCT|STREAM|SOURCE|SELECT|SECRET|SCHEMA|SAMPLE|ROLLUP|REVOKE|REVERT|RETURN|RESULT|RENAME|REMOVE|REGEXP|REDUCE|PRAGMA|OTHERS|OPTION|OFFSET|OBJECT|MODIFY|MANAGE|LEGACY|ISNULL|INSERT|IMPORT|IGNORE|HAVING|GROUPS|GLOBAL|FILTER|FAMILY|EXPORT|EXISTS|EXCEPT|ESCAPE|DETACH|DELETE|DEFINE|CREATE|COMMIT|COLUMN|BEFORE|BACKUP|ATTACH|ASSUME|ACTION|WHERE|USING|UNION|TUPLE|TOPIC|TABLE|START|RLIKE|RIGHT|RESET|RANGE|RAISE|QUEUE|QUERY|OWNER|OUTER|ORDER|NULLS|MATCH|LOGIN|LOCAL|LIMIT|INNER|INDEX|ILIKE|GROUP|GRANT|FIRST|FALSE|ERROR|ERASE|EMPTY|CROSS|COVER|CHECK|BEGIN|BATCH|ASYNC|ARRAY|ALTER|AFTER|ABORT|WITH|WHEN|VIEW|USER|TYPE|TRUE|TIES|THEN|TEMP|SYNC|SKIP|SHOW|SETS|SEMI|SEEK|ROWS|POOL|PLAN|PAST|OVER|ONLY|OMIT|NULL|NEXT|LIST|LIKE|LEFT|LAST|JOIN|INTO|HASH|GLOB|FULL|FROM|FLOW|FAIL|ENUM|ELSE|EACH|DROP|DICT|DESC|DATA|CUBE|CAST|CASE|ANSI|XOR|USE|SET|ROW|PER|ONE|NOT|KEY|HOP|FOR|END|ASC|ANY|AND|ALL|ADD|TO|OR|ON|OF|NO|IS|IN|IF|DO|BY|AT|AS)\\b",
98
+ "name": "keyword.control"
99
+ }
100
+ ]
101
+ },
102
+ "literal": {
103
+ "patterns": [
104
+ {
105
+ "match": "\\b((([0-9]+)\\.[0-9]*([eE](\\+|\\-)?([0-9]+))?|([0-9]+)([eE](\\+|\\-)?([0-9]+)))([fF]|[pP]([fF](4|8)|[nN])?)?)\\b",
106
+ "name": "constant.numeric"
107
+ },
108
+ {
109
+ "match": "\\b(((0[xX]([0-9a-fA-F])+)|(0[oO][0-8]+)|(0[bB](0|1)+)|([0-9]+))(([pPuU])?([lLsStTiIbBnN])?))\\b",
110
+ "name": "constant.numeric"
111
+ },
112
+ {
113
+ "match": "\\b((0[xX]([0-9a-fA-F])+)|(0[oO][0-8]+)|(0[bB](0|1)+)|([0-9]+))\\b",
114
+ "name": "constant.numeric"
115
+ }
116
+ ]
117
+ },
118
+ "quoted-identifier": {
119
+ "patterns": [
120
+ {
121
+ "match": "(\\`(\\\\(.|\\n)|\\`\\`|[^`\\\\])*\\`)",
122
+ "name": "string.interpolated"
123
+ }
124
+ ]
125
+ },
126
+ "string-literal": {
127
+ "patterns": [
128
+ {
129
+ "match": "(((((\\'([^'\\\\]|(\\\\(.|\\n)))*\\'))|((\\\"([^\"\\\\]|(\\\\(.|\\n)))*\\\"))|((\\@\\@(.|\\n)*?\\@\\@)+\\@?))([sSuUyYjJ]|[pP]([tTbBvV])?)?))",
130
+ "name": "string.quoted.double"
131
+ },
132
+ {
133
+ "begin": "\\@\\@",
134
+ "end": "\\@\\@",
135
+ "name": "string.quoted.double"
136
+ }
137
+ ]
138
+ },
139
+ "type-identifier": {
140
+ "patterns": [
141
+ {
142
+ "match": "\\b(([a-zA-Z_])([a-zA-Z_0-9])*)(?=\\<)\\b",
143
+ "name": "entity.name.type"
144
+ },
145
+ {
146
+ "match": "(?i)\\b(pgpg_brin_minmax_multi_summary|pganycompatiblemultirange|pgpg_brin_bloom_summary|pganycompatiblenonarray|pganycompatiblerange|pganycompatiblearray|pgtable_am_handler|pglanguage_handler|pgindex_am_handler|pgpg_dependencies|_pgtstzmultirange|_pgint8multirange|_pgint4multirange|_pgdatemultirange|pgtstzmultirange|pgpg_ddl_command|pgint8multirange|pgint4multirange|pgdatemultirange|_pgtxid_snapshot|_pgregdictionary|_pgnummultirange|pgtxid_snapshot|pgregdictionary|pgnummultirange|pgevent_trigger|pganymultirange|pganycompatible|_pgtsmultirange|_pgregprocedure|_pgregnamespace|_pgregcollation|_pgpg_attribute|pgtsmultirange|pgregprocedure|pgregnamespace|pgregcollation|pgpg_node_tree|pgpg_ndistinct|pgpg_attribute|_pgtimestamptz|_pgregoperator|_pgpg_snapshot|pgtsm_handler|pgtimestamptz|pgregoperator|pgpg_snapshot|pgpg_mcv_list|pgfdw_handler|pganynonarray|_pgint2vector|TzTimestamp64|pgint2vector|pganyelement|_pgtstzrange|_pgtimestamp|_pgregconfig|_pgrefcursor|_pgoidvector|_pgint8range|_pgint4range|_pggtsvector|_pgdaterange|TzDatetime64|JsonDocument|pgtstzrange|pgtimestamp|pgregconfig|pgrefcursor|pgoidvector|pgint8range|pgint4range|pggtsvector|pgdaterange|_pgtsvector|_pgregclass|_pgpg_class|_pgnumrange|_pgmacaddr8|_pgjsonpath|_pginterval|TzTimestamp|Timestamp64|pgtsvector|pgregclass|pgpg_class|pgnumrange|pgmacaddr8|pgjsonpath|pginterval|pginternal|pganyrange|pganyarray|_pgvarchar|_pgtsrange|_pgtsquery|_pgregtype|_pgregrole|_pgregproc|_pgregoper|_pgpolygon|_pgpg_type|_pgpg_proc|_pgnumeric|_pgmacaddr|_pgcstring|_pgaclitem|TzDatetime|Interval64|Datetime64|pgvarchar|pgunknown|pgtsrange|pgtsquery|pgtrigger|pgregtype|pgregrole|pgregproc|pgregoper|pgpolygon|pgpg_type|pgpg_proc|pgnumeric|pgmacaddr|pgcstring|pganyenum|pgaclitem|_pgvarbit|_pgtimetz|_pgrecord|_pgpg_lsn|_pgfloat8|_pgfloat4|_pgcircle|_pgbpchar|Timestamp|EmptyList|EmptyDict|pgvarbit|pgtimetz|pgrecord|pgpg_lsn|pgfloat8|pgfloat4|pgcircle|pgbpchar|_pgpoint|_pgmoney|_pgjsonb|_pgbytea|TzDate32|Interval|DyNumber|Datetime|pgpoint|pgmoney|pgjsonb|pgbytea|_pgxid8|_pguuid|_pgtime|_pgtext|_pgpath|_pgname|_pglseg|_pgline|_pgjson|_pgint8|_pgint4|_pgint2|_pginet|_pgdate|_pgcidr|_pgchar|_pgbool|Generic|pgxid8|pgvoid|pguuid|pgtime|pgtext|pgpath|pgname|pglseg|pgline|pgjson|pgint8|pgint4|pgint2|pginet|pgdate|pgcidr|pgchar|pgbool|_pgxml|_pgxid|_pgtid|_pgoid|_pgcid|_pgbox|_pgbit|Uint64|Uint32|Uint16|TzDate|String|Double|Date32|pgxml|pgxid|pgtid|pgoid|pgcid|pgbox|pgbit|pgany|Uint8|Int64|Int32|Int16|Float|Yson|Void|Uuid|Utf8|Unit|Json|Int8|Date|Bool)\\b",
147
+ "name": "entity.name.type"
148
+ }
149
+ ]
150
+ }
151
+ },
152
+ "scope": "source.yql",
153
+ "scopeName": "source.yql"
154
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monaco-yql-languages",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "YQL languages for the Monaco Editor, based on monaco-languages.",
5
5
  "author": "YDB",
6
6
  "license": "MIT",