aboutsummaryrefslogtreecommitdiffstats
path: root/public/prism/prism-al.min.js
blob: e474efdad4b387f6b484cf06b59bbe5086b6d2cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Prism.languages.al = {
  comment: /\/\/.*|\/\*[\s\S]*?\*\//,
  string: {
    pattern: /'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,
    greedy: !0,
  },
  function: {
    pattern:
      /(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,
    lookbehind: !0,
  },
  keyword: [
    /\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,
    /\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i,
  ],
  number:
    /\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,
  boolean: /\b(?:false|true)\b/i,
  variable: /\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,
  'class-name':
    /\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,
  operator: /\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,
  punctuation: /[()\[\]{}:.;,]/,
};
span>"@styles/abstracts/placeholders"; .wp-block-quote { margin: var(--spacing-sm) 0; padding: var(--spacing-sm); position: relative; border: fun.convert-px(1) solid var(--color-primary-lighter); border-left: fun.convert-px(5) solid var(--color-primary-lighter); box-shadow: 0 0 fun.convert-px(1) 0 var(--color-shadow), fun.convert-px(2) fun.convert-px(2) fun.convert-px(2) 0 var(--color-shadow-light), fun.convert-px(3) fun.convert-px(3) fun.convert-px(6) 0 var(--color-shadow-light); font-style: italic; > *:last-child { margin: 0; } cite { font-size: var(--font-size-sm); font-style: normal; font-weight: 600; } } .wp-block-code, .wp-block-preformatted { margin: 0 auto var(--spacing-md); padding: var(--spacing-xs) var(--spacing-sm); background: var(--color-bg-secondary); border: fun.convert-px(1) solid var(--color-border-light); color: var(--color-fg); } .wp-block-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--spacing-md); margin: var(--spacing-md) 0; @include mix.media("screen") { @include mix.dimensions("sm") { grid-template-columns: repeat(2, minmax(0, 1fr)); } } &.are-vertically-aligned-center { align-items: center; } } .wp-block-column { > *:first-child { margin-top: 0; } > *:last-child { margin-bottom: 0; } } .wp-block-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--spacing-sm); .blocks-gallery-grid { @extend %reset-list; grid-column: 1 / -1; grid-row: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--spacing-sm); } .blocks-gallery-item { figure { margin: 0; } a { display: block; box-shadow: 0 0 fun.convert-px(1) 0 var(--color-shadow), fun.convert-px(2) fun.convert-px(2) fun.convert-px(2) 0 var(--color-shadow-light), fun.convert-px(3) fun.convert-px(3) fun.convert-px(6) 0 var(--color-shadow-light); &:hover, &:focus { transform: scale(1.05); box-shadow: 0 0 fun.convert-px(1) 0 var(--color-shadow), fun.convert-px(3) fun.convert-px(3) fun.convert-px(2) 0 var(--color-shadow-light), fun.convert-px(5) fun.convert-px(5) fun.convert-px(8) 0 var(--color-shadow-light); } &:focus { outline: solid var(--color-primary-light); } &:active { transform: scale(0.95); box-shadow: 0 0 fun.convert-px(1) 0 var(--color-shadow), fun.convert-px(2) fun.convert-px(2) fun.convert-px(2) 0 var(--color-shadow-light), 0 0 0 0 var(--color-shadow-light); outline: none; } } } &.aligncenter { .blocks-gallery-grid { align-items: center; } } @for $i from 0 to 6 { &.columns-#{$i} { @include mix.media("screen") { @include mix.dimensions("xs") { grid-template-columns: repeat(2, minmax(0, 1fr)); .blocks-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @include mix.dimensions("sm") { grid-template-columns: repeat(#{$i}, minmax(0, 1fr)); .blocks-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } } } } } .wp-block-image { img { display: block; margin: auto; box-shadow: 0 0 fun.convert-px(1) 0 var(--color-shadow), fun.convert-px(2) fun.convert-px(2) fun.convert-px(2) 0 var(--color-shadow-light), fun.convert-px(3) fun.convert-px(3) fun.convert-px(6) 0 var(--color-shadow-light); text-align: center; } } .wp-block-video { box-shadow: 0 0 fun.convert-px(1) 0 var(--color-shadow), fun.convert-px(2) fun.convert-px(2) fun.convert-px(2) 0 var(--color-shadow-light), fun.convert-px(3) fun.convert-px(3) fun.convert-px(6) 0 var(--color-shadow-light); }