monaco-yql-languages 1.22.0 → 2.0.1

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.
@@ -1,15 +1,11 @@
1
1
  import './clickhouse/clickhouse.contribution';
2
2
  import './s-expressions/s-expressions.contribution';
3
3
  import './s-expressions/YQLs.tmLanguage.json';
4
+ import './s-expressions/YQLs.monarch.json';
4
5
  import './themes/themes.contribution';
5
6
  import './yql/yql.contribution';
7
+ import './yql/YQL.monarch.json';
8
+ import './yql/YQLansi.monarch.json';
6
9
  import './yql/yql_ansi.contribution';
7
- import './yql/yql.keywords';
8
10
  import './yql/YQL.tmLanguage.json';
9
11
  import './yql/YQL.ansi.tmLanguage.json';
10
- import './yql_unstable/yql.contribution';
11
- import './yql_unstable/YQL.monarch.json';
12
- import './yql_unstable/YQLansi.monarch.json';
13
- import './yql_unstable/yql_ansi.contribution';
14
- import './s-expressions_unstable/s-expressions.contribution';
15
- import './s-expressions_unstable/YQLs.monarch.json';
@@ -1,15 +1,11 @@
1
1
  import './clickhouse/clickhouse.contribution';
2
2
  import './s-expressions/s-expressions.contribution';
3
3
  import './s-expressions/YQLs.tmLanguage.json';
4
+ import './s-expressions/YQLs.monarch.json';
4
5
  import './themes/themes.contribution';
5
6
  import './yql/yql.contribution';
7
+ import './yql/YQL.monarch.json';
8
+ import './yql/YQLansi.monarch.json';
6
9
  import './yql/yql_ansi.contribution';
7
- import './yql/yql.keywords';
8
10
  import './yql/YQL.tmLanguage.json';
9
11
  import './yql/YQL.ansi.tmLanguage.json';
10
- import './yql_unstable/yql.contribution';
11
- import './yql_unstable/YQL.monarch.json';
12
- import './yql_unstable/YQLansi.monarch.json';
13
- import './yql_unstable/yql_ansi.contribution';
14
- import './s-expressions_unstable/s-expressions.contribution';
15
- import './s-expressions_unstable/YQLs.monarch.json';
@@ -1,4 +1,3 @@
1
1
  import { languages } from '../fillers/monaco-editor-core';
2
- export declare const LANGUAGE_ID = "s-expressions";
3
2
  export declare const conf: languages.LanguageConfiguration;
4
3
  export declare const language: languages.IMonarchLanguage & Record<string, unknown>;
@@ -1,5 +1,4 @@
1
- import { keywordControl, keywordOperator, variables } from './s-expressions.keywords';
2
- export const LANGUAGE_ID = 's-expressions';
1
+ import YQLsMonarch from './YQLs.monarch.json';
3
2
  export const conf = {
4
3
  comments: {
5
4
  lineComment: '#',
@@ -29,52 +28,6 @@ export const language = {
29
28
  { open: '(', close: ')', token: 'delimiter.parenthesis' },
30
29
  { open: '{', close: '}', token: 'delimiter.curly' },
31
30
  ],
32
- keywordControl,
33
- keywordOperator,
34
- variables,
35
31
  escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
36
- tokenizer: {
37
- root: [
38
- { include: '@whitespace' },
39
- { include: '@comment' },
40
- [/(#)((?:\w|[\\+-=<>'"&#])+)/, ['delimiter', 'constant']],
41
- [
42
- /(?:\b(?:(defun|defmethod|defmacro))\b)(\s+)((?:\w|-|\?)*)/,
43
- ['type.function', 'text', 'entity.name'],
44
- ],
45
- [/(\*)(\S*)(\*)/, ['delimiter', 'variable', 'delimiter']],
46
- { include: '@strings' },
47
- [/'[^#\s)(]+/, 'variable.parameter'],
48
- [/[(){}[\]]/, '@brackets'],
49
- // identifiers and keywords
50
- [
51
- /(?:(?:<=?|>=?|==|!=|[-+*/%])|[a-zA-Z][a-zA-Z0-9!]*)/,
52
- {
53
- cases: {
54
- '@keywordControl': { token: 'keyword.operator' },
55
- '@keywordOperator': { token: 'keyword.control' },
56
- '@variables': { token: 'variable' },
57
- '@default': 'identifier',
58
- },
59
- },
60
- ],
61
- ],
62
- whitespace: [[/\s+/, 'white']],
63
- comment: [[/#.*/, 'comment']],
64
- strings: [
65
- [/'?"(?=.)/, { token: 'string', next: '@qqstring' }],
66
- [/'?[@]{2}/, { token: 'string', next: '@multiline' }],
67
- [/'?x"(?:[0-9A-Fa-f]{2})*"/, 'string'],
68
- ],
69
- qqstring: [
70
- [/\\(?:[0-3][0-7][0-7]|x[0-9A-Fa-f]{2}|["tnrbfav\\])/, 'string.escape'],
71
- [/[^"\\]+/, 'string'],
72
- [/"|$/, { token: 'string', next: '@pop' }],
73
- ],
74
- multiline: [
75
- [/[^@]+/, 'string'],
76
- [/[@]{2}/, { token: 'string', next: '@pop' }],
77
- [/./, { token: 'string' }],
78
- ],
79
- },
32
+ tokenizer: YQLsMonarch.tokenizer,
80
33
  };
package/build/yql/yql.js CHANGED
@@ -1,4 +1,5 @@
1
- import { builtinFunctions, keywords, typeKeywords } from './yql.keywords';
1
+ import YQLMonarch from './YQL.monarch.json';
2
+ import YQLAnsiMonarch from './YQLansi.monarch.json';
2
3
  export const conf = {
3
4
  comments: {
4
5
  lineComment: '--',
@@ -36,10 +37,7 @@ export function getLanguage({ ansi = false } = {}) {
36
37
  { open: '(', close: ')', token: 'delimiter.parenthesis' },
37
38
  { open: '{', close: '}', token: 'delimiter.curly' },
38
39
  ],
39
- keywords,
40
- typeKeywords,
41
40
  constants: ['true', 'false', 'enabled', 'disabled'],
42
- builtinFunctions,
43
41
  operators: [
44
42
  '+',
45
43
  '-',
@@ -65,118 +63,8 @@ export function getLanguage({ ansi = false } = {}) {
65
63
  symbols: /[=><!~?:&|+\-*/^%]+/,
66
64
  escapes: /\\(?:[abfnrtv\\"'`]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
67
65
  variables: /[a-zA-Z_]\w*/,
68
- tokenizer: {
69
- root: [
70
- { include: '@whitespace' },
71
- { include: '@comments' },
72
- { include: '@numbers' },
73
- { include: '@tablePath' },
74
- { include: '@strings' },
75
- { include: '@primaryKey' },
76
- // support function
77
- [/(@variables)::(@variables)/, 'support.function'],
78
- [/[;,.]/, 'delimiter'],
79
- [/[(){}[\]]/, '@brackets'],
80
- // identifiers and keywords
81
- [
82
- /@?[a-zA-Z_$]\w*/,
83
- {
84
- cases: {
85
- '@keywords': 'keyword',
86
- '@typeKeywords': 'keyword.type',
87
- '@constants': 'constant.yql',
88
- '@builtinFunctions': 'constant.other.color',
89
- '[$@][a-zA-Z_]\\w*': 'variable',
90
- '@default': 'identifier',
91
- },
92
- },
93
- ],
94
- [
95
- /@symbols/,
96
- {
97
- cases: {
98
- '@operators': 'operator.sql',
99
- '@default': '',
100
- },
101
- },
102
- ],
103
- ],
104
- whitespace: [[/\s+/, 'white']],
105
- comments: [
106
- [/--.*/, 'comment'],
107
- [/\/\*/, { token: 'comment.quote', next: ansi ? '@commentAnsi' : '@comment' }],
108
- ],
109
- comment: [
110
- [/[^*/]+/, 'comment'],
111
- [/\*\//, { token: 'comment.quote', next: '@pop' }],
112
- [/./, 'comment'],
113
- ],
114
- commentAnsi: [
115
- [/\/\*/, { token: 'comment.quote', next: '@comment' }],
116
- [/[^*/]+/, 'comment'],
117
- [/\*\//, { token: 'comment.quote', next: '@pop' }],
118
- [/./, 'comment'],
119
- ],
120
- numbers: [
121
- [/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?f?\b/, 'number.float'],
122
- [/[+-]?(?:\d+|0b[01]+|0o[0-8]+|0x[\da-f]+)(?:u?[lst]?)?\b/, 'number'],
123
- ],
124
- strings: [
125
- [/'/, { token: 'string', next: ansi ? '@stringAnsiSingle' : '@stringSingle' }],
126
- [/"/, { token: 'string', next: ansi ? '@stringAnsiDouble' : '@stringDouble' }],
127
- [/[@]{2}/, { token: 'string', next: '@multilineString' }],
128
- ],
129
- stringSingle: [
130
- [/[^\\']+/, 'string'],
131
- [/@escapes/, 'string.escape'],
132
- [/\\./, 'string.escape.invalid'],
133
- [/'[uyj]?/, { token: 'string', next: '@pop' }],
134
- ],
135
- stringAnsiSingle: [
136
- [/[^']+/, 'string'],
137
- [/''/, 'string'],
138
- [/'[uyj]?/, { token: 'string', next: '@pop' }],
139
- ],
140
- stringDouble: [
141
- [/[^\\"]+/, 'string'],
142
- [/@escapes/, 'string.escape'],
143
- [/\\./, 'string.escape.invalid'],
144
- [/"[uyj]?/, { token: 'string', next: '@pop' }],
145
- ],
146
- stringAnsiDouble: [
147
- [/[^"]+/, 'string'],
148
- [/""/, 'string'],
149
- [/"[uyj]?/, { token: 'string', next: '@pop' }],
150
- ],
151
- multilineString: [
152
- [
153
- /#py/,
154
- { token: 'string.python', nextEmbedded: 'python', next: '@embedded', goBack: 3 },
155
- ],
156
- [
157
- /\/\/js/,
158
- { token: 'string.js', nextEmbedded: 'javascript', next: '@embedded', goBack: 4 },
159
- ],
160
- [/[^@]+/, 'string'],
161
- [/[@]{4}/, 'string'],
162
- [/[@]{2}[uyj]?/, { token: 'string', next: '@pop' }],
163
- [/./, 'string'],
164
- ],
165
- embedded: [
166
- [
167
- /([^@]|^)([@]{4})*[@]{2}([@]([^@]|$)|[^@]|$)/,
168
- { token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
169
- ],
170
- ],
171
- tablePath: [[/((`)?[\w/]+\2\s*\.\s*)?`/, { token: 'string.tablepath', next: '@table' }]],
172
- table: [
173
- [/[^\\`]+/, 'string.tablepath'],
174
- [/``/, 'string.tablepath'],
175
- [/@escapes/, 'string.escape.tablepath'],
176
- [/\\./, 'string.escape.invalid.tablepath'],
177
- [/`/, { token: 'string.tablepath', next: '@pop' }],
178
- ],
179
- primaryKey: [[/primary key/i, 'keyword']],
180
- },
66
+ tokenizer: (ansi
67
+ ? YQLAnsiMonarch.tokenizer
68
+ : YQLMonarch.tokenizer),
181
69
  };
182
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monaco-yql-languages",
3
- "version": "1.22.0",
3
+ "version": "2.0.1",
4
4
  "description": "YQL languages for the Monaco Editor, based on monaco-languages.",
5
5
  "author": "YDB",
6
6
  "license": "MIT",
@@ -1,3 +0,0 @@
1
- export declare const keywordControl: string[];
2
- export declare const keywordOperator: string[];
3
- export declare const variables: string[];
@@ -1,3 +0,0 @@
1
- export const keywordControl = 'bind|block|declare|export|import|lambda|let|override_library|package|quote|return|set_package_version'.split('|');
2
- export const keywordOperator = 'Abs|Add|AddMember|AddMemberType|AddTimezone|AggrAdd|AggrConcat|AggrCountInit|AggrCountUpdate|AggrEquals|AggrGreater|AggrGreaterOrEqual|AggrLess|AggrLessOrEqual|AggrMax|AggrMin|AggrNotEquals|Aggregate|AggregationTraits|AlterTo|And|Append|Apply|AsDict|AsDictStrict|AsEnum|AsList|AsListStrict|AsSet|AsSetStrict|AsStruct|AsTagged|AsVariant|Ascending|AssumeSorted|AssumeStrict|AssumeUnique|AtomCode|AuthTokens|BitAnd|BitCast|BitNot|BitOr|BitXor|Bool|ByteAt|CalcOverWindow|Callable|CallableArgument|CallableArgumentType|CallableResultType|CallableType|CallableTypeComponents|CallableTypeHandle|Cast|CastStruct|Chain1Map|Chopper|Coalesce|Collect|CombineByKey|CombineCore|CommonJoinCore|Concat|Condense|Condense1|ConstraintsOf|Contains|Convert|CountBits|CurrentAuthenticatedUser|CurrentOperationId|CurrentOperationSharedId|CurrentTzDate|CurrentTzDatetime|CurrentTzTimestamp|CurrentUtcDate|CurrentUtcDatetime|CurrentUtcTimestamp|Data|DataSink|DataSource|DataType|DataTypeComponents|DataTypeHandle|Date|Datetime|Dec|Decimal|Default|DependsOn|Descending|Dict|DictFromKeys|DictItems|DictKeyType|DictKeys|DictPayloadType|DictPayloads|DictType|DictTypeComponents|DictTypeHandle|Discard|Div|DivePrefixMembers|Double|EmptyDictType|EmptyDictTypeHandle|EmptyIterator|EmptyListType|EmptyListTypeHandle|EndsWith|Ensure|EnsureConvertibleTo|EnsureType|Enum|Enumerate|Equals|EquiJoin|Error|ErrorType|EvaluateCode|EvaluateType|Exists|ExpandMap|Extend|Extract|ExtractMembers|FileContent|FilePath|Files|Filter|FilterNullElements|FilterNullMembers|Find|FlatListIf|FlatMap|FlatOptionalIf|FlattenByColumns|FlattenMembers|FlattenMembersType|Float|Fold|Fold1|Fold1Map|FoldMap|ForceRemoveMember|ForceRemoveMemberType|FormatCode|FormatCodeWithPositions|FormatType|ForwardList|FromBytes|FromString|FromYsonSimpleType|FuncCode|GenericType|Greater|GreaterOrEqual|GroupByKey|GroupingCore|Guess|HasItems|Head|HoppingCore|If|IfPresent|IfStrict|IfType|Inc|Insert|InstanceOf|Int16|Int32|Int64|Int8|Interval|IsKeySwitch|Iterator|Join|Json|Just|KeepTop|Key|LMap|Lag|LambdaArgumentsCount|LambdaCode|LambdaOptionalArgumentsCount|Last|Lead|Length|Less|LessOrEqual|Likely|Limit|List|ListCode|ListFromRange|ListIf|ListItemType|ListType|ListTypeHandle|Lookup|Map|MapJoinCore|MatchType|Max|Member|Merge|Min|Minus|Mod|Mul|MultiAggregate|MultiHoppingCore|MultiMap|NamedApply|NarrowFlatMap|NarrowMap|NarrowMultiMap|NewMTRand|NextMTRand|Not|NotEquals|Nothing|Now|Nth|Null|NullType|NullTypeHandle|Nvl|Optional|OptionalIf|OptionalItemType|OptionalReduce|OptionalType|OptionalTypeHandle|Or|OrderedExtend|OrderedExtract|OrderedFilter|OrderedFlatMap|OrderedMap|OrderedMultiMap|Parameter|ParseType|ParseTypeHandle|PartitionByKey|PartitionsByKeys|Pickle|Plus|Prepend|PreserveStream|QueueCreate|QueuePeek|QueuePop|QueuePush|QuoteCode|RFind|Random|RandomNumber|RandomUuid|RemoveMember|RemoveMemberType|RemoveTimezone|ReplaceMember|Replicate|ReprCode|ResourceType|ResourceTypeHandle|ResourceTypeTag|Reverse|RotLeft|RotRight|RowNumber|SafeCast|ScriptUdf|SelectMembers|SerializeCode|ShiftLeft|ShiftRight|Size|Skip|SkipNullElements|SkipNullMembers|SkipWhile|SkipWhileInclusive|Sort|SortTraits|SourceOf|SqlAccess|SqlColumn|StablePickle|StartsWith|StaticFold|StaticFold1|StaticMap|StaticZip|StreamItemType|StreamType|StreamTypeHandle|StrictCast|StrictFromString|String|Struct|StructMemberType|StructType|StructTypeComponents|StructTypeHandle|Sub|Substring|Switch|TableName|TablePath|TableRecord|TaggedType|TaggedTypeComponents|TaggedTypeHandle|Take|TakeWhile|TakeWhileInclusive|Timestamp|ToBytes|ToDict|ToIndexDict|ToIntegral|ToList|ToOptional|ToSequence|ToStream|ToString|Top|TopSort|TryMember|TryWeakMemberFromDict|Tuple|TupleElementType|TupleType|TupleTypeComponents|TupleTypeHandle|TypeHandle|TypeKind|TypeOf|TzDate|TzDatetime|TzTimestamp|Udf|Uint16|Uint32|Uint64|Uint8|UnionAll|UnionMerge|UnitType|Unordered|Unpickle|Untag|Unwrap|Utf8|Uuid|Variant|VariantItem|VariantType|VariantTypeHandle|VariantUnderlyingType|Visit|Void|VoidType|VoidTypeHandle|Way|WideChain1Map|WideChopper|WideCombiner|WideCondense1|WideFilter|WideMap|WideSkipWhile|WideSkipWhileInclusive|WideTakeWhile|WideTakeWhileInclusive|WinOnGroups|WinOnRange|WinOnRows|WindowTraits|WithOptionalArgs|WorldCode|Xor|Yson|Zip|ZipAll'.split('|');
3
- export const variables = 'Commit!|CommitAll!|ConfRead!|Configure!|Epoch|If!|Left!|MrConfigure!|MrCopy!|MrDrop!|MrEquiJoin!|MrFill!|MrIsKeySwitch|MrLMap!|MrLReduce!|MrLength|MrMap!|MrMapReduce!|MrMove!|MrOrderedReduce!|MrPublish!|MrReadTable!|MrReadTableScheme!|MrReduce!|MrSort!|MrTableContent|MrTableIndex|MrTablePath|MrTableRange!|MrTableRecord|MrTempTable|MrWrite!|Read!|ResFill!|ResIf!|ResPull!|ResWrite!|Right!|RtCreateTable!|RtDropTable!|RtInSection|RtMap!|RtMeta|RtOutSection|RtOutTable|RtOutput!|RtReadTable!|RtReadTableScheme!|RtReduce!|RtRowSpec|RtTable|RtWriteTable!|RtYdbOut!|StatFields|StatMeta|StatPublish!|StatTable|StatWriteTable!|Sync!|Write!|YqlRowSpec|YtConfigure!|YtCopy!|YtDropTable!|YtEquiJoin!|YtFill!|YtIsKeySwitch|YtKeyExact|YtKeyRange|YtLength|YtMap!|YtMapReduce!|YtMerge!|YtMeta|YtOutTable|YtOutput!|YtPath|YtPublish!|YtReadTable!|YtReadTableScheme!|YtReduce!|YtRow|YtRowRange|YtSection|YtSort!|YtStat|YtStatOut!|YtStatOutTable|YtTable|YtTableContent|YtTableIndex|YtTablePath|YtTableRecord|YtTouch!|YtWriteTable!'.split('|');
@@ -1 +0,0 @@
1
- export declare const LANGUAGE_ID = "s-expression_unstable";
@@ -1,7 +0,0 @@
1
- import { registerLanguage } from '../_.contribution';
2
- export const LANGUAGE_ID = 's-expression_unstable';
3
- registerLanguage({
4
- id: LANGUAGE_ID,
5
- extensions: [],
6
- loader: () => import('./s-expressions'),
7
- });
@@ -1,4 +0,0 @@
1
- import { languages } from '../fillers/monaco-editor-core';
2
- export declare const LANGUAGE_ID = "s-expressions";
3
- export declare const conf: languages.LanguageConfiguration;
4
- export declare const language: languages.IMonarchLanguage & Record<string, unknown>;
@@ -1,34 +0,0 @@
1
- import YQLsMonarch from './YQLs.monarch.json';
2
- export const LANGUAGE_ID = 's-expressions';
3
- export const conf = {
4
- comments: {
5
- lineComment: '#',
6
- },
7
- brackets: [
8
- ['{', '}'],
9
- ['[', ']'],
10
- ['(', ')'],
11
- ],
12
- autoClosingPairs: [
13
- { open: '{', close: '}' },
14
- { open: '[', close: ']' },
15
- { open: '(', close: ')' },
16
- ],
17
- surroundingPairs: [
18
- { open: '{', close: '}' },
19
- { open: '[', close: ']' },
20
- { open: '(', close: ')' },
21
- ],
22
- };
23
- export const language = {
24
- defaultToken: 'text',
25
- ignoreCase: true,
26
- tokenPostfix: '.yql',
27
- brackets: [
28
- { open: '[', close: ']', token: 'delimiter.square' },
29
- { open: '(', close: ')', token: 'delimiter.parenthesis' },
30
- { open: '{', close: '}', token: 'delimiter.curly' },
31
- ],
32
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
33
- tokenizer: YQLsMonarch.tokenizer,
34
- };
@@ -1,3 +0,0 @@
1
- export declare const keywords: string[];
2
- export declare const typeKeywords: string[];
3
- export declare const builtinFunctions: string[];
@@ -1,3 +0,0 @@
1
- export const keywords = '$row|$rows|action|add|all|alter|and|any|as|asc|assume|async|bigserial|serial|smallserial|serial8|serial4|serial2|begin|bernoulli|between|by|case|changefeed|column|columns|commit|compact|create|cross|cube|declare|define|delete|desc|dict|discard|distinct|do|drop|else|empty_action|end|erase|evaluate|exclusion|exists|export|family|flatten|for|from|full|global|group|grouping|having|if|ignore|ilike|import|in|index|inner|insert|into|is|join|key|left|like|limit|list|match|not|null|nulls|offset|on|only|optional|or|order|over|partition|pragma|presort|primary|process|reduce|regexp|repeatable|replace|respect|result|return|right|rlike|rollup|sample|schema|select|semi|set|sets|stream|subquery|sync|table|tablesample|then|truncate|union|intersect|except|update|upsert|use|using|values|view|when|where|window|with|without|xor|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow'.split('|');
2
- export const typeKeywords = 'bool|date|datetime|decimal|double|float|int16|int32|int64|int8|interval|json|jsondocument|string|timestamp|tzdate|tzdatetime|tztimestamp|uint16|uint32|uint64|uint8|utf8|uuid|yson|text|bytes'.split('|');
3
- export const builtinFunctions = 'abs|aggregate_by|aggregate_list|aggregate_list_distinct|agg_list|agg_list_distinct|as_table|avg|avg_if|adaptivedistancehistogram|adaptivewardhistogram|adaptiveweighthistogram|addmember|addtimezone|aggregateflatten|aggregatetransforminput|aggregatetransformoutput|aggregationfactory|asatom|asdict|asdictstrict|asenum|aslist|asliststrict|asset|assetstrict|asstruct|astagged|astuple|asvariant|atomcode|bitcast|bit_and|bit_or|bit_xor|bool_and|bool_or|bool_xor|bottom|bottom_by|blockwardhistogram|blockweighthistogram|cast|coalesce|concat|concat_strict|correlation|count|count_if|covariance|covariance_population|covariance_sample|callableargument|callableargumenttype|callableresulttype|callabletype|callabletypecomponents|callabletypehandle|choosemembers|combinemembers|countdistinctestimate|currentauthenticateduser|currentoperationid|currentoperationsharedid|currenttzdate|currenttzdatetime|currenttztimestamp|currentutcdate|currentutcdatetime|currentutctimestamp|dense_rank|datatype|datatypecomponents|datatypehandle|dictaggregate|dictcontains|dictcreate|dicthasitems|dictitems|dictkeytype|dictkeys|dictlength|dictlookup|dictpayloadtype|dictpayloads|dicttype|dicttypecomponents|dicttypehandle|each|each_strict|emptydicttype|emptydicttypehandle|emptylisttype|emptylisttypehandle|endswith|ensure|ensureconvertibleto|ensuretype|enum|evaluateatom|evaluatecode|evaluateexpr|evaluatetype|expandstruct|filter|filter_strict|find|first_value|folder|filecontent|filepath|flattenmembers|forceremovemember|forceremovemembers|forcerenamemembers|forcespreadmembers|formatcode|formattype|frombytes|frompg|funccode|greatest|grouping|gathermembers|generictype|histogram|hll|hoppingwindowpgcast|hyperloglog|if|if_strict|instanceof|json_exists|json_query|json_value|jointablerow|just|lag|last_value|lead|least|len|length|like|likely|like_strict|lambdaargumentscount|lambdacode|lambdaoptionalargumentscount|linearhistogram|listaggregate|listall|listany|listavg|listcode|listcollect|listconcat|listcreate|listdistinct|listenumerate|listextend|listextendstrict|listextract|listfilter|listflatmap|listflatten|listfold|listfold1|listfold1map|listfoldmap|listfromrange|listfromtuple|listhas|listhasitems|listhead|listindexof|listitemtype|listlast|listlength|listmap|listmax|listmin|listnotnull|listreplicate|listreverse|listskip|listskipwhile|listskipwhileinclusive|listsort|listsortasc|listsortdesc|listsum|listtake|listtakewhile|listtakewhileinclusive|listtop|listtopsort|listtopasc|listtopdesc|listtopsortasc|listtopsortdesc|listtotuple|listtype|listtypehandle|listunionall|listuniq|listzip|listzipall|loghistogram|logarithmichistogram|max|max_by|max_of|median|min|min_by|min_of|mode|multi_aggregate_by|nanvl|nvl|nothing|nulltype|nulltypehandle|optionalitemtype|optionaltype|optionaltypehandle|percentile|parsefile|parsetype|parsetypehandle|pgand|pgarray|pgcall|pgconst|pgnot|pgop|pgor|pickle|quotecode|range|range_strict|rank|regexp|regexp_strict|rfind|row_number|random|randomnumber|randomuuid|removemember|removemembers|removetimezone|renamemembers|replacemember|reprcode|resourcetype|resourcetypehandle|resourcetypetag|some|stddev|stddev_population|stddev_sample|substring|sum|sum_if|sessionstart|sessionwindow|setcreate|setdifference|setincludes|setintersection|setisdisjoint|setsymmetricdifference|setunion|spreadmembers|stablepickle|startswith|staticmap|staticzip|streamitemtype|streamtype|streamtypehandle|structmembertype|structmembers|structtypecomponents|structtypehandle|subqueryextend|subqueryextendfor|subquerymerge|subquerymergefor|subqueryunionall|subqueryunionallfor|subqueryunionmerge|subqueryunionmergefor|top|topfreq|top_by|tablename|tablepath|tablerecordindex|tablerow|tablerows|taggedtype|taggedtypecomponents|taggedtypehandle|tobytes|todict|tomultidict|topg|toset|tosorteddict|tosortedmultidict|trymember|tupleelementtype|tupletype|tupletypecomponents|tupletypehandle|typehandle|typekind|typeof|udaf|udf|unittype|unpickle|untag|unwrap|variance|variance_population|variance_sample|variant|varianttype|varianttypehandle|variantunderlyingtype|voidtype|voidtypehandle|way|worldcode|weakfield'.split('|');
@@ -1 +0,0 @@
1
- export declare const LANGUAGE_ID = "yql_unstable";
@@ -1,12 +0,0 @@
1
- import { registerLanguage } from '../_.contribution';
2
- export const LANGUAGE_ID = 'yql_unstable';
3
- registerLanguage({
4
- id: LANGUAGE_ID,
5
- extensions: [],
6
- loader: () => import('./yql').then((module) => {
7
- return {
8
- conf: module.conf,
9
- language: module.getLanguage(),
10
- };
11
- }),
12
- });
@@ -1,7 +0,0 @@
1
- import type { languages } from '../fillers/monaco-editor-core';
2
- export declare const conf: languages.LanguageConfiguration;
3
- interface LanguageOptions {
4
- ansi?: boolean;
5
- }
6
- export declare function getLanguage({ ansi }?: LanguageOptions): languages.IMonarchLanguage & Record<string, unknown>;
7
- export {};
@@ -1,70 +0,0 @@
1
- import YQLMonarch from './YQL.monarch.json';
2
- import YQLAnsiMonarch from './YQLansi.monarch.json';
3
- export const conf = {
4
- comments: {
5
- lineComment: '--',
6
- blockComment: ['/*', '*/'],
7
- },
8
- brackets: [
9
- ['{', '}'],
10
- ['[', ']'],
11
- ['(', ')'],
12
- ],
13
- autoClosingPairs: [
14
- { open: '{', close: '}' },
15
- { open: '[', close: ']' },
16
- { open: '(', close: ')' },
17
- { open: '"', close: '"', notIn: ['string'] },
18
- { open: "'", close: "'", notIn: ['string', 'comment'] },
19
- { open: '`', close: '`', notIn: ['string', 'comment'] },
20
- ],
21
- surroundingPairs: [
22
- { open: '{', close: '}' },
23
- { open: '[', close: ']' },
24
- { open: '(', close: ')' },
25
- { open: '"', close: '"' },
26
- { open: "'", close: "'" },
27
- { open: '`', close: '`' },
28
- ],
29
- wordPattern: /(-?\d*\.\d\w*)|([^`~!@#%^&*()\-=+[{\]}\\|;:'",./?\s]+)/g,
30
- };
31
- export function getLanguage({ ansi = false } = {}) {
32
- return {
33
- defaultToken: 'text',
34
- ignoreCase: true,
35
- brackets: [
36
- { open: '[', close: ']', token: 'delimiter.square' },
37
- { open: '(', close: ')', token: 'delimiter.parenthesis' },
38
- { open: '{', close: '}', token: 'delimiter.curly' },
39
- ],
40
- constants: ['true', 'false', 'enabled', 'disabled'],
41
- operators: [
42
- '+',
43
- '-',
44
- '/',
45
- '//',
46
- '%',
47
- '<@>',
48
- '@>',
49
- '<@',
50
- '&',
51
- '^',
52
- '~',
53
- '<',
54
- '>',
55
- '<=',
56
- '>=',
57
- '=>',
58
- '==',
59
- '!=',
60
- '<>',
61
- '=',
62
- ],
63
- symbols: /[=><!~?:&|+\-*/^%]+/,
64
- escapes: /\\(?:[abfnrtv\\"'`]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
65
- variables: /[a-zA-Z_]\w*/,
66
- tokenizer: (ansi
67
- ? YQLAnsiMonarch.tokenizer
68
- : YQLMonarch.tokenizer),
69
- };
70
- }
@@ -1 +0,0 @@
1
- export declare const LANGUAGE_ID = "yql_ansi_unstable";
@@ -1,12 +0,0 @@
1
- import { registerLanguage } from '../_.contribution';
2
- export const LANGUAGE_ID = 'yql_ansi_unstable';
3
- registerLanguage({
4
- id: LANGUAGE_ID,
5
- extensions: [],
6
- loader: () => import('./yql').then((module) => {
7
- return {
8
- conf: module.conf,
9
- language: module.getLanguage({ ansi: true }),
10
- };
11
- }),
12
- });
File without changes