summaryrefslogtreecommitdiffstats
path: root/src/components/Form/Toggle/Toggle.tsx
Commit message (Expand)AuthorAgeFilesLines
* refactor(settings): make toggle reusableArmand Philippot2022-01-171-0/+46
a id='n41' href='#n41'>41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
!(function (e) {
  var n = '\\\\\\((?:[^()]|\\([^()]*\\))*\\)',
    t = RegExp(
      '(^|[^\\\\])"(?:[^"\r\n\\\\]|\\\\[^\r\n(]|__)*"'.replace(
        /__/g,
        function () {
          return n;
        }
      )
    ),
    i = {
      interpolation: {
        pattern: RegExp('((?:^|[^\\\\])(?:\\\\{2})*)' + n),
        lookbehind: !0,
        inside: {
          content: {
            pattern: /^(\\\()[\s\S]+(?=\)$)/,
            lookbehind: !0,
            inside: null,
          },
          punctuation: /^\\\(|\)$/,
        },
      },
    },
    a = (e.languages.jq = {
      comment: /#.*/,
      property: {
        pattern: RegExp(t.source + '(?=\\s*:(?!:))'),
        lookbehind: !0,
        greedy: !0,
        inside: i,
      },
      string: { pattern: t, lookbehind: !0, greedy: !0, inside: i },
      function: { pattern: /(\bdef\s+)[a-z_]\w+/i, lookbehind: !0 },
      variable: /\B\$\w+/,
      'property-literal': {
        pattern: /\b[a-z_]\w*(?=\s*:(?!:))/i,
        alias: 'property',
      },
      keyword:
        /\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,
      boolean: /\b(?:false|true)\b/,
      number: /(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,
      operator: [
        { pattern: /\|=?/, alias: 'pipe' },
        /\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/,
      ],
      'c-style-function': {
        pattern: /\b[a-z_]\w*(?=\s*\()/i,
        alias: 'function',
      },
      punctuation: /::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,
      dot: { pattern: /\./, alias: 'important' },
    });
  i.interpolation.inside.content.inside = a;
})(Prism);