powerquery.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918
  1. "use strict";
  2. /*!-----------------------------------------------------------------------------
  3. * Copyright (c) Microsoft Corporation. All rights reserved.
  4. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  5. * Released under the MIT license
  6. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  7. *-----------------------------------------------------------------------------*/
  8. define("vs/basic-languages/powerquery/powerquery", ["require"],(require)=>{
  9. var moduleExports = (() => {
  10. var __defProp = Object.defineProperty;
  11. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  12. var __getOwnPropNames = Object.getOwnPropertyNames;
  13. var __hasOwnProp = Object.prototype.hasOwnProperty;
  14. var __export = (target, all) => {
  15. for (var name in all)
  16. __defProp(target, name, { get: all[name], enumerable: true });
  17. };
  18. var __copyProps = (to, from, except, desc) => {
  19. if (from && typeof from === "object" || typeof from === "function") {
  20. for (let key of __getOwnPropNames(from))
  21. if (!__hasOwnProp.call(to, key) && key !== except)
  22. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  23. }
  24. return to;
  25. };
  26. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  27. // src/basic-languages/powerquery/powerquery.ts
  28. var powerquery_exports = {};
  29. __export(powerquery_exports, {
  30. conf: () => conf,
  31. language: () => language
  32. });
  33. var conf = {
  34. comments: {
  35. lineComment: "//",
  36. blockComment: ["/*", "*/"]
  37. },
  38. brackets: [
  39. ["[", "]"],
  40. ["(", ")"],
  41. ["{", "}"]
  42. ],
  43. autoClosingPairs: [
  44. { open: '"', close: '"', notIn: ["string", "comment", "identifier"] },
  45. { open: "[", close: "]", notIn: ["string", "comment", "identifier"] },
  46. { open: "(", close: ")", notIn: ["string", "comment", "identifier"] },
  47. { open: "{", close: "}", notIn: ["string", "comment", "identifier"] }
  48. ]
  49. };
  50. var language = {
  51. defaultToken: "",
  52. tokenPostfix: ".pq",
  53. ignoreCase: false,
  54. brackets: [
  55. { open: "[", close: "]", token: "delimiter.square" },
  56. { open: "{", close: "}", token: "delimiter.brackets" },
  57. { open: "(", close: ")", token: "delimiter.parenthesis" }
  58. ],
  59. operatorKeywords: ["and", "not", "or"],
  60. keywords: [
  61. "as",
  62. "each",
  63. "else",
  64. "error",
  65. "false",
  66. "if",
  67. "in",
  68. "is",
  69. "let",
  70. "meta",
  71. "otherwise",
  72. "section",
  73. "shared",
  74. "then",
  75. "true",
  76. "try",
  77. "type"
  78. ],
  79. constructors: ["#binary", "#date", "#datetime", "#datetimezone", "#duration", "#table", "#time"],
  80. constants: ["#infinity", "#nan", "#sections", "#shared"],
  81. typeKeywords: [
  82. "action",
  83. "any",
  84. "anynonnull",
  85. "none",
  86. "null",
  87. "logical",
  88. "number",
  89. "time",
  90. "date",
  91. "datetime",
  92. "datetimezone",
  93. "duration",
  94. "text",
  95. "binary",
  96. "list",
  97. "record",
  98. "table",
  99. "function"
  100. ],
  101. builtinFunctions: [
  102. "Access.Database",
  103. "Action.Return",
  104. "Action.Sequence",
  105. "Action.Try",
  106. "ActiveDirectory.Domains",
  107. "AdoDotNet.DataSource",
  108. "AdoDotNet.Query",
  109. "AdobeAnalytics.Cubes",
  110. "AnalysisServices.Database",
  111. "AnalysisServices.Databases",
  112. "AzureStorage.BlobContents",
  113. "AzureStorage.Blobs",
  114. "AzureStorage.Tables",
  115. "Binary.Buffer",
  116. "Binary.Combine",
  117. "Binary.Compress",
  118. "Binary.Decompress",
  119. "Binary.End",
  120. "Binary.From",
  121. "Binary.FromList",
  122. "Binary.FromText",
  123. "Binary.InferContentType",
  124. "Binary.Length",
  125. "Binary.ToList",
  126. "Binary.ToText",
  127. "BinaryFormat.7BitEncodedSignedInteger",
  128. "BinaryFormat.7BitEncodedUnsignedInteger",
  129. "BinaryFormat.Binary",
  130. "BinaryFormat.Byte",
  131. "BinaryFormat.ByteOrder",
  132. "BinaryFormat.Choice",
  133. "BinaryFormat.Decimal",
  134. "BinaryFormat.Double",
  135. "BinaryFormat.Group",
  136. "BinaryFormat.Length",
  137. "BinaryFormat.List",
  138. "BinaryFormat.Null",
  139. "BinaryFormat.Record",
  140. "BinaryFormat.SignedInteger16",
  141. "BinaryFormat.SignedInteger32",
  142. "BinaryFormat.SignedInteger64",
  143. "BinaryFormat.Single",
  144. "BinaryFormat.Text",
  145. "BinaryFormat.Transform",
  146. "BinaryFormat.UnsignedInteger16",
  147. "BinaryFormat.UnsignedInteger32",
  148. "BinaryFormat.UnsignedInteger64",
  149. "Byte.From",
  150. "Character.FromNumber",
  151. "Character.ToNumber",
  152. "Combiner.CombineTextByDelimiter",
  153. "Combiner.CombineTextByEachDelimiter",
  154. "Combiner.CombineTextByLengths",
  155. "Combiner.CombineTextByPositions",
  156. "Combiner.CombineTextByRanges",
  157. "Comparer.Equals",
  158. "Comparer.FromCulture",
  159. "Comparer.Ordinal",
  160. "Comparer.OrdinalIgnoreCase",
  161. "Csv.Document",
  162. "Cube.AddAndExpandDimensionColumn",
  163. "Cube.AddMeasureColumn",
  164. "Cube.ApplyParameter",
  165. "Cube.AttributeMemberId",
  166. "Cube.AttributeMemberProperty",
  167. "Cube.CollapseAndRemoveColumns",
  168. "Cube.Dimensions",
  169. "Cube.DisplayFolders",
  170. "Cube.Measures",
  171. "Cube.Parameters",
  172. "Cube.Properties",
  173. "Cube.PropertyKey",
  174. "Cube.ReplaceDimensions",
  175. "Cube.Transform",
  176. "Currency.From",
  177. "DB2.Database",
  178. "Date.AddDays",
  179. "Date.AddMonths",
  180. "Date.AddQuarters",
  181. "Date.AddWeeks",
  182. "Date.AddYears",
  183. "Date.Day",
  184. "Date.DayOfWeek",
  185. "Date.DayOfWeekName",
  186. "Date.DayOfYear",
  187. "Date.DaysInMonth",
  188. "Date.EndOfDay",
  189. "Date.EndOfMonth",
  190. "Date.EndOfQuarter",
  191. "Date.EndOfWeek",
  192. "Date.EndOfYear",
  193. "Date.From",
  194. "Date.FromText",
  195. "Date.IsInCurrentDay",
  196. "Date.IsInCurrentMonth",
  197. "Date.IsInCurrentQuarter",
  198. "Date.IsInCurrentWeek",
  199. "Date.IsInCurrentYear",
  200. "Date.IsInNextDay",
  201. "Date.IsInNextMonth",
  202. "Date.IsInNextNDays",
  203. "Date.IsInNextNMonths",
  204. "Date.IsInNextNQuarters",
  205. "Date.IsInNextNWeeks",
  206. "Date.IsInNextNYears",
  207. "Date.IsInNextQuarter",
  208. "Date.IsInNextWeek",
  209. "Date.IsInNextYear",
  210. "Date.IsInPreviousDay",
  211. "Date.IsInPreviousMonth",
  212. "Date.IsInPreviousNDays",
  213. "Date.IsInPreviousNMonths",
  214. "Date.IsInPreviousNQuarters",
  215. "Date.IsInPreviousNWeeks",
  216. "Date.IsInPreviousNYears",
  217. "Date.IsInPreviousQuarter",
  218. "Date.IsInPreviousWeek",
  219. "Date.IsInPreviousYear",
  220. "Date.IsInYearToDate",
  221. "Date.IsLeapYear",
  222. "Date.Month",
  223. "Date.MonthName",
  224. "Date.QuarterOfYear",
  225. "Date.StartOfDay",
  226. "Date.StartOfMonth",
  227. "Date.StartOfQuarter",
  228. "Date.StartOfWeek",
  229. "Date.StartOfYear",
  230. "Date.ToRecord",
  231. "Date.ToText",
  232. "Date.WeekOfMonth",
  233. "Date.WeekOfYear",
  234. "Date.Year",
  235. "DateTime.AddZone",
  236. "DateTime.Date",
  237. "DateTime.FixedLocalNow",
  238. "DateTime.From",
  239. "DateTime.FromFileTime",
  240. "DateTime.FromText",
  241. "DateTime.IsInCurrentHour",
  242. "DateTime.IsInCurrentMinute",
  243. "DateTime.IsInCurrentSecond",
  244. "DateTime.IsInNextHour",
  245. "DateTime.IsInNextMinute",
  246. "DateTime.IsInNextNHours",
  247. "DateTime.IsInNextNMinutes",
  248. "DateTime.IsInNextNSeconds",
  249. "DateTime.IsInNextSecond",
  250. "DateTime.IsInPreviousHour",
  251. "DateTime.IsInPreviousMinute",
  252. "DateTime.IsInPreviousNHours",
  253. "DateTime.IsInPreviousNMinutes",
  254. "DateTime.IsInPreviousNSeconds",
  255. "DateTime.IsInPreviousSecond",
  256. "DateTime.LocalNow",
  257. "DateTime.Time",
  258. "DateTime.ToRecord",
  259. "DateTime.ToText",
  260. "DateTimeZone.FixedLocalNow",
  261. "DateTimeZone.FixedUtcNow",
  262. "DateTimeZone.From",
  263. "DateTimeZone.FromFileTime",
  264. "DateTimeZone.FromText",
  265. "DateTimeZone.LocalNow",
  266. "DateTimeZone.RemoveZone",
  267. "DateTimeZone.SwitchZone",
  268. "DateTimeZone.ToLocal",
  269. "DateTimeZone.ToRecord",
  270. "DateTimeZone.ToText",
  271. "DateTimeZone.ToUtc",
  272. "DateTimeZone.UtcNow",
  273. "DateTimeZone.ZoneHours",
  274. "DateTimeZone.ZoneMinutes",
  275. "Decimal.From",
  276. "Diagnostics.ActivityId",
  277. "Diagnostics.Trace",
  278. "DirectQueryCapabilities.From",
  279. "Double.From",
  280. "Duration.Days",
  281. "Duration.From",
  282. "Duration.FromText",
  283. "Duration.Hours",
  284. "Duration.Minutes",
  285. "Duration.Seconds",
  286. "Duration.ToRecord",
  287. "Duration.ToText",
  288. "Duration.TotalDays",
  289. "Duration.TotalHours",
  290. "Duration.TotalMinutes",
  291. "Duration.TotalSeconds",
  292. "Embedded.Value",
  293. "Error.Record",
  294. "Excel.CurrentWorkbook",
  295. "Excel.Workbook",
  296. "Exchange.Contents",
  297. "Expression.Constant",
  298. "Expression.Evaluate",
  299. "Expression.Identifier",
  300. "Facebook.Graph",
  301. "File.Contents",
  302. "Folder.Contents",
  303. "Folder.Files",
  304. "Function.From",
  305. "Function.Invoke",
  306. "Function.InvokeAfter",
  307. "Function.IsDataSource",
  308. "GoogleAnalytics.Accounts",
  309. "Guid.From",
  310. "HdInsight.Containers",
  311. "HdInsight.Contents",
  312. "HdInsight.Files",
  313. "Hdfs.Contents",
  314. "Hdfs.Files",
  315. "Informix.Database",
  316. "Int16.From",
  317. "Int32.From",
  318. "Int64.From",
  319. "Int8.From",
  320. "ItemExpression.From",
  321. "Json.Document",
  322. "Json.FromValue",
  323. "Lines.FromBinary",
  324. "Lines.FromText",
  325. "Lines.ToBinary",
  326. "Lines.ToText",
  327. "List.Accumulate",
  328. "List.AllTrue",
  329. "List.Alternate",
  330. "List.AnyTrue",
  331. "List.Average",
  332. "List.Buffer",
  333. "List.Combine",
  334. "List.Contains",
  335. "List.ContainsAll",
  336. "List.ContainsAny",
  337. "List.Count",
  338. "List.Covariance",
  339. "List.DateTimeZones",
  340. "List.DateTimes",
  341. "List.Dates",
  342. "List.Difference",
  343. "List.Distinct",
  344. "List.Durations",
  345. "List.FindText",
  346. "List.First",
  347. "List.FirstN",
  348. "List.Generate",
  349. "List.InsertRange",
  350. "List.Intersect",
  351. "List.IsDistinct",
  352. "List.IsEmpty",
  353. "List.Last",
  354. "List.LastN",
  355. "List.MatchesAll",
  356. "List.MatchesAny",
  357. "List.Max",
  358. "List.MaxN",
  359. "List.Median",
  360. "List.Min",
  361. "List.MinN",
  362. "List.Mode",
  363. "List.Modes",
  364. "List.NonNullCount",
  365. "List.Numbers",
  366. "List.PositionOf",
  367. "List.PositionOfAny",
  368. "List.Positions",
  369. "List.Product",
  370. "List.Random",
  371. "List.Range",
  372. "List.RemoveFirstN",
  373. "List.RemoveItems",
  374. "List.RemoveLastN",
  375. "List.RemoveMatchingItems",
  376. "List.RemoveNulls",
  377. "List.RemoveRange",
  378. "List.Repeat",
  379. "List.ReplaceMatchingItems",
  380. "List.ReplaceRange",
  381. "List.ReplaceValue",
  382. "List.Reverse",
  383. "List.Select",
  384. "List.Single",
  385. "List.SingleOrDefault",
  386. "List.Skip",
  387. "List.Sort",
  388. "List.StandardDeviation",
  389. "List.Sum",
  390. "List.Times",
  391. "List.Transform",
  392. "List.TransformMany",
  393. "List.Union",
  394. "List.Zip",
  395. "Logical.From",
  396. "Logical.FromText",
  397. "Logical.ToText",
  398. "MQ.Queue",
  399. "MySQL.Database",
  400. "Number.Abs",
  401. "Number.Acos",
  402. "Number.Asin",
  403. "Number.Atan",
  404. "Number.Atan2",
  405. "Number.BitwiseAnd",
  406. "Number.BitwiseNot",
  407. "Number.BitwiseOr",
  408. "Number.BitwiseShiftLeft",
  409. "Number.BitwiseShiftRight",
  410. "Number.BitwiseXor",
  411. "Number.Combinations",
  412. "Number.Cos",
  413. "Number.Cosh",
  414. "Number.Exp",
  415. "Number.Factorial",
  416. "Number.From",
  417. "Number.FromText",
  418. "Number.IntegerDivide",
  419. "Number.IsEven",
  420. "Number.IsNaN",
  421. "Number.IsOdd",
  422. "Number.Ln",
  423. "Number.Log",
  424. "Number.Log10",
  425. "Number.Mod",
  426. "Number.Permutations",
  427. "Number.Power",
  428. "Number.Random",
  429. "Number.RandomBetween",
  430. "Number.Round",
  431. "Number.RoundAwayFromZero",
  432. "Number.RoundDown",
  433. "Number.RoundTowardZero",
  434. "Number.RoundUp",
  435. "Number.Sign",
  436. "Number.Sin",
  437. "Number.Sinh",
  438. "Number.Sqrt",
  439. "Number.Tan",
  440. "Number.Tanh",
  441. "Number.ToText",
  442. "OData.Feed",
  443. "Odbc.DataSource",
  444. "Odbc.Query",
  445. "OleDb.DataSource",
  446. "OleDb.Query",
  447. "Oracle.Database",
  448. "Percentage.From",
  449. "PostgreSQL.Database",
  450. "RData.FromBinary",
  451. "Record.AddField",
  452. "Record.Combine",
  453. "Record.Field",
  454. "Record.FieldCount",
  455. "Record.FieldNames",
  456. "Record.FieldOrDefault",
  457. "Record.FieldValues",
  458. "Record.FromList",
  459. "Record.FromTable",
  460. "Record.HasFields",
  461. "Record.RemoveFields",
  462. "Record.RenameFields",
  463. "Record.ReorderFields",
  464. "Record.SelectFields",
  465. "Record.ToList",
  466. "Record.ToTable",
  467. "Record.TransformFields",
  468. "Replacer.ReplaceText",
  469. "Replacer.ReplaceValue",
  470. "RowExpression.Column",
  471. "RowExpression.From",
  472. "Salesforce.Data",
  473. "Salesforce.Reports",
  474. "SapBusinessWarehouse.Cubes",
  475. "SapHana.Database",
  476. "SharePoint.Contents",
  477. "SharePoint.Files",
  478. "SharePoint.Tables",
  479. "Single.From",
  480. "Soda.Feed",
  481. "Splitter.SplitByNothing",
  482. "Splitter.SplitTextByAnyDelimiter",
  483. "Splitter.SplitTextByDelimiter",
  484. "Splitter.SplitTextByEachDelimiter",
  485. "Splitter.SplitTextByLengths",
  486. "Splitter.SplitTextByPositions",
  487. "Splitter.SplitTextByRanges",
  488. "Splitter.SplitTextByRepeatedLengths",
  489. "Splitter.SplitTextByWhitespace",
  490. "Sql.Database",
  491. "Sql.Databases",
  492. "SqlExpression.SchemaFrom",
  493. "SqlExpression.ToExpression",
  494. "Sybase.Database",
  495. "Table.AddColumn",
  496. "Table.AddIndexColumn",
  497. "Table.AddJoinColumn",
  498. "Table.AddKey",
  499. "Table.AggregateTableColumn",
  500. "Table.AlternateRows",
  501. "Table.Buffer",
  502. "Table.Column",
  503. "Table.ColumnCount",
  504. "Table.ColumnNames",
  505. "Table.ColumnsOfType",
  506. "Table.Combine",
  507. "Table.CombineColumns",
  508. "Table.Contains",
  509. "Table.ContainsAll",
  510. "Table.ContainsAny",
  511. "Table.DemoteHeaders",
  512. "Table.Distinct",
  513. "Table.DuplicateColumn",
  514. "Table.ExpandListColumn",
  515. "Table.ExpandRecordColumn",
  516. "Table.ExpandTableColumn",
  517. "Table.FillDown",
  518. "Table.FillUp",
  519. "Table.FilterWithDataTable",
  520. "Table.FindText",
  521. "Table.First",
  522. "Table.FirstN",
  523. "Table.FirstValue",
  524. "Table.FromColumns",
  525. "Table.FromList",
  526. "Table.FromPartitions",
  527. "Table.FromRecords",
  528. "Table.FromRows",
  529. "Table.FromValue",
  530. "Table.Group",
  531. "Table.HasColumns",
  532. "Table.InsertRows",
  533. "Table.IsDistinct",
  534. "Table.IsEmpty",
  535. "Table.Join",
  536. "Table.Keys",
  537. "Table.Last",
  538. "Table.LastN",
  539. "Table.MatchesAllRows",
  540. "Table.MatchesAnyRows",
  541. "Table.Max",
  542. "Table.MaxN",
  543. "Table.Min",
  544. "Table.MinN",
  545. "Table.NestedJoin",
  546. "Table.Partition",
  547. "Table.PartitionValues",
  548. "Table.Pivot",
  549. "Table.PositionOf",
  550. "Table.PositionOfAny",
  551. "Table.PrefixColumns",
  552. "Table.Profile",
  553. "Table.PromoteHeaders",
  554. "Table.Range",
  555. "Table.RemoveColumns",
  556. "Table.RemoveFirstN",
  557. "Table.RemoveLastN",
  558. "Table.RemoveMatchingRows",
  559. "Table.RemoveRows",
  560. "Table.RemoveRowsWithErrors",
  561. "Table.RenameColumns",
  562. "Table.ReorderColumns",
  563. "Table.Repeat",
  564. "Table.ReplaceErrorValues",
  565. "Table.ReplaceKeys",
  566. "Table.ReplaceMatchingRows",
  567. "Table.ReplaceRelationshipIdentity",
  568. "Table.ReplaceRows",
  569. "Table.ReplaceValue",
  570. "Table.ReverseRows",
  571. "Table.RowCount",
  572. "Table.Schema",
  573. "Table.SelectColumns",
  574. "Table.SelectRows",
  575. "Table.SelectRowsWithErrors",
  576. "Table.SingleRow",
  577. "Table.Skip",
  578. "Table.Sort",
  579. "Table.SplitColumn",
  580. "Table.ToColumns",
  581. "Table.ToList",
  582. "Table.ToRecords",
  583. "Table.ToRows",
  584. "Table.TransformColumnNames",
  585. "Table.TransformColumnTypes",
  586. "Table.TransformColumns",
  587. "Table.TransformRows",
  588. "Table.Transpose",
  589. "Table.Unpivot",
  590. "Table.UnpivotOtherColumns",
  591. "Table.View",
  592. "Table.ViewFunction",
  593. "TableAction.DeleteRows",
  594. "TableAction.InsertRows",
  595. "TableAction.UpdateRows",
  596. "Tables.GetRelationships",
  597. "Teradata.Database",
  598. "Text.AfterDelimiter",
  599. "Text.At",
  600. "Text.BeforeDelimiter",
  601. "Text.BetweenDelimiters",
  602. "Text.Clean",
  603. "Text.Combine",
  604. "Text.Contains",
  605. "Text.End",
  606. "Text.EndsWith",
  607. "Text.Format",
  608. "Text.From",
  609. "Text.FromBinary",
  610. "Text.Insert",
  611. "Text.Length",
  612. "Text.Lower",
  613. "Text.Middle",
  614. "Text.NewGuid",
  615. "Text.PadEnd",
  616. "Text.PadStart",
  617. "Text.PositionOf",
  618. "Text.PositionOfAny",
  619. "Text.Proper",
  620. "Text.Range",
  621. "Text.Remove",
  622. "Text.RemoveRange",
  623. "Text.Repeat",
  624. "Text.Replace",
  625. "Text.ReplaceRange",
  626. "Text.Select",
  627. "Text.Split",
  628. "Text.SplitAny",
  629. "Text.Start",
  630. "Text.StartsWith",
  631. "Text.ToBinary",
  632. "Text.ToList",
  633. "Text.Trim",
  634. "Text.TrimEnd",
  635. "Text.TrimStart",
  636. "Text.Upper",
  637. "Time.EndOfHour",
  638. "Time.From",
  639. "Time.FromText",
  640. "Time.Hour",
  641. "Time.Minute",
  642. "Time.Second",
  643. "Time.StartOfHour",
  644. "Time.ToRecord",
  645. "Time.ToText",
  646. "Type.AddTableKey",
  647. "Type.ClosedRecord",
  648. "Type.Facets",
  649. "Type.ForFunction",
  650. "Type.ForRecord",
  651. "Type.FunctionParameters",
  652. "Type.FunctionRequiredParameters",
  653. "Type.FunctionReturn",
  654. "Type.Is",
  655. "Type.IsNullable",
  656. "Type.IsOpenRecord",
  657. "Type.ListItem",
  658. "Type.NonNullable",
  659. "Type.OpenRecord",
  660. "Type.RecordFields",
  661. "Type.ReplaceFacets",
  662. "Type.ReplaceTableKeys",
  663. "Type.TableColumn",
  664. "Type.TableKeys",
  665. "Type.TableRow",
  666. "Type.TableSchema",
  667. "Type.Union",
  668. "Uri.BuildQueryString",
  669. "Uri.Combine",
  670. "Uri.EscapeDataString",
  671. "Uri.Parts",
  672. "Value.Add",
  673. "Value.As",
  674. "Value.Compare",
  675. "Value.Divide",
  676. "Value.Equals",
  677. "Value.Firewall",
  678. "Value.FromText",
  679. "Value.Is",
  680. "Value.Metadata",
  681. "Value.Multiply",
  682. "Value.NativeQuery",
  683. "Value.NullableEquals",
  684. "Value.RemoveMetadata",
  685. "Value.ReplaceMetadata",
  686. "Value.ReplaceType",
  687. "Value.Subtract",
  688. "Value.Type",
  689. "ValueAction.NativeStatement",
  690. "ValueAction.Replace",
  691. "Variable.Value",
  692. "Web.Contents",
  693. "Web.Page",
  694. "WebAction.Request",
  695. "Xml.Document",
  696. "Xml.Tables"
  697. ],
  698. builtinConstants: [
  699. "BinaryEncoding.Base64",
  700. "BinaryEncoding.Hex",
  701. "BinaryOccurrence.Optional",
  702. "BinaryOccurrence.Repeating",
  703. "BinaryOccurrence.Required",
  704. "ByteOrder.BigEndian",
  705. "ByteOrder.LittleEndian",
  706. "Compression.Deflate",
  707. "Compression.GZip",
  708. "CsvStyle.QuoteAfterDelimiter",
  709. "CsvStyle.QuoteAlways",
  710. "Culture.Current",
  711. "Day.Friday",
  712. "Day.Monday",
  713. "Day.Saturday",
  714. "Day.Sunday",
  715. "Day.Thursday",
  716. "Day.Tuesday",
  717. "Day.Wednesday",
  718. "ExtraValues.Error",
  719. "ExtraValues.Ignore",
  720. "ExtraValues.List",
  721. "GroupKind.Global",
  722. "GroupKind.Local",
  723. "JoinAlgorithm.Dynamic",
  724. "JoinAlgorithm.LeftHash",
  725. "JoinAlgorithm.LeftIndex",
  726. "JoinAlgorithm.PairwiseHash",
  727. "JoinAlgorithm.RightHash",
  728. "JoinAlgorithm.RightIndex",
  729. "JoinAlgorithm.SortMerge",
  730. "JoinKind.FullOuter",
  731. "JoinKind.Inner",
  732. "JoinKind.LeftAnti",
  733. "JoinKind.LeftOuter",
  734. "JoinKind.RightAnti",
  735. "JoinKind.RightOuter",
  736. "JoinSide.Left",
  737. "JoinSide.Right",
  738. "MissingField.Error",
  739. "MissingField.Ignore",
  740. "MissingField.UseNull",
  741. "Number.E",
  742. "Number.Epsilon",
  743. "Number.NaN",
  744. "Number.NegativeInfinity",
  745. "Number.PI",
  746. "Number.PositiveInfinity",
  747. "Occurrence.All",
  748. "Occurrence.First",
  749. "Occurrence.Last",
  750. "Occurrence.Optional",
  751. "Occurrence.Repeating",
  752. "Occurrence.Required",
  753. "Order.Ascending",
  754. "Order.Descending",
  755. "Precision.Decimal",
  756. "Precision.Double",
  757. "QuoteStyle.Csv",
  758. "QuoteStyle.None",
  759. "RelativePosition.FromEnd",
  760. "RelativePosition.FromStart",
  761. "RoundingMode.AwayFromZero",
  762. "RoundingMode.Down",
  763. "RoundingMode.ToEven",
  764. "RoundingMode.TowardZero",
  765. "RoundingMode.Up",
  766. "SapHanaDistribution.All",
  767. "SapHanaDistribution.Connection",
  768. "SapHanaDistribution.Off",
  769. "SapHanaDistribution.Statement",
  770. "SapHanaRangeOperator.Equals",
  771. "SapHanaRangeOperator.GreaterThan",
  772. "SapHanaRangeOperator.GreaterThanOrEquals",
  773. "SapHanaRangeOperator.LessThan",
  774. "SapHanaRangeOperator.LessThanOrEquals",
  775. "SapHanaRangeOperator.NotEquals",
  776. "TextEncoding.Ascii",
  777. "TextEncoding.BigEndianUnicode",
  778. "TextEncoding.Unicode",
  779. "TextEncoding.Utf16",
  780. "TextEncoding.Utf8",
  781. "TextEncoding.Windows",
  782. "TraceLevel.Critical",
  783. "TraceLevel.Error",
  784. "TraceLevel.Information",
  785. "TraceLevel.Verbose",
  786. "TraceLevel.Warning",
  787. "WebMethod.Delete",
  788. "WebMethod.Get",
  789. "WebMethod.Head",
  790. "WebMethod.Patch",
  791. "WebMethod.Post",
  792. "WebMethod.Put"
  793. ],
  794. builtinTypes: [
  795. "Action.Type",
  796. "Any.Type",
  797. "Binary.Type",
  798. "BinaryEncoding.Type",
  799. "BinaryOccurrence.Type",
  800. "Byte.Type",
  801. "ByteOrder.Type",
  802. "Character.Type",
  803. "Compression.Type",
  804. "CsvStyle.Type",
  805. "Currency.Type",
  806. "Date.Type",
  807. "DateTime.Type",
  808. "DateTimeZone.Type",
  809. "Day.Type",
  810. "Decimal.Type",
  811. "Double.Type",
  812. "Duration.Type",
  813. "ExtraValues.Type",
  814. "Function.Type",
  815. "GroupKind.Type",
  816. "Guid.Type",
  817. "Int16.Type",
  818. "Int32.Type",
  819. "Int64.Type",
  820. "Int8.Type",
  821. "JoinAlgorithm.Type",
  822. "JoinKind.Type",
  823. "JoinSide.Type",
  824. "List.Type",
  825. "Logical.Type",
  826. "MissingField.Type",
  827. "None.Type",
  828. "Null.Type",
  829. "Number.Type",
  830. "Occurrence.Type",
  831. "Order.Type",
  832. "Password.Type",
  833. "Percentage.Type",
  834. "Precision.Type",
  835. "QuoteStyle.Type",
  836. "Record.Type",
  837. "RelativePosition.Type",
  838. "RoundingMode.Type",
  839. "SapHanaDistribution.Type",
  840. "SapHanaRangeOperator.Type",
  841. "Single.Type",
  842. "Table.Type",
  843. "Text.Type",
  844. "TextEncoding.Type",
  845. "Time.Type",
  846. "TraceLevel.Type",
  847. "Type.Type",
  848. "Uri.Type",
  849. "WebMethod.Type"
  850. ],
  851. tokenizer: {
  852. root: [
  853. [/#"[\w \.]+"/, "identifier.quote"],
  854. [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
  855. [/0[xX][0-9a-fA-F]+/, "number.hex"],
  856. [/\d+([eE][\-+]?\d+)?/, "number"],
  857. [
  858. /(#?[a-z]+)\b/,
  859. {
  860. cases: {
  861. "@typeKeywords": "type",
  862. "@keywords": "keyword",
  863. "@constants": "constant",
  864. "@constructors": "constructor",
  865. "@operatorKeywords": "operators",
  866. "@default": "identifier"
  867. }
  868. }
  869. ],
  870. [
  871. /\b([A-Z][a-zA-Z0-9]+\.Type)\b/,
  872. {
  873. cases: {
  874. "@builtinTypes": "type",
  875. "@default": "identifier"
  876. }
  877. }
  878. ],
  879. [
  880. /\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,
  881. {
  882. cases: {
  883. "@builtinFunctions": "keyword.function",
  884. "@builtinConstants": "constant",
  885. "@default": "identifier"
  886. }
  887. }
  888. ],
  889. [/\b([a-zA-Z_][\w\.]*)\b/, "identifier"],
  890. { include: "@whitespace" },
  891. { include: "@comments" },
  892. { include: "@strings" },
  893. [/[{}()\[\]]/, "@brackets"],
  894. [/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/, "operators"],
  895. [/[,;]/, "delimiter"]
  896. ],
  897. whitespace: [[/\s+/, "white"]],
  898. comments: [
  899. ["\\/\\*", "comment", "@comment"],
  900. ["\\/\\/+.*", "comment"]
  901. ],
  902. comment: [
  903. ["\\*\\/", "comment", "@pop"],
  904. [".", "comment"]
  905. ],
  906. strings: [['"', "string", "@string"]],
  907. string: [
  908. ['""', "string.escape"],
  909. ['"', "string", "@pop"],
  910. [".", "string"]
  911. ]
  912. }
  913. };
  914. return __toCommonJS(powerquery_exports);
  915. })();
  916. return moduleExports;
  917. });