UNPKG

easyest-xqp

Version:

75 lines (74 loc) 1.68 kB
/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ var e = { comments: { lineComment: "#" } }, t = { defaultToken: "keyword", ignoreCase: !0, tokenPostfix: ".azcli", str: /[^#\s]/, tokenizer: { root: [ { include: "@comment" }, [ /\s-+@str*\s*/, { cases: { "@eos": { token: "key.identifier", next: "@popall" }, "@default": { token: "key.identifier", next: "@type" } } } ], [ /^-+@str*\s*/, { cases: { "@eos": { token: "key.identifier", next: "@popall" }, "@default": { token: "key.identifier", next: "@type" } } } ] ], type: [ { include: "@comment" }, [ /-+@str*\s*/, { cases: { "@eos": { token: "key.identifier", next: "@popall" }, "@default": "key.identifier" } } ], [ /@str+\s*/, { cases: { "@eos": { token: "string", next: "@popall" }, "@default": "string" } } ] ], comment: [ [ /#.*$/, { cases: { "@eos": { token: "comment", next: "@popall" } } } ] ] } }; export { e as conf, t as language };