Sha256: 5c9ec358744e416dd96d9e60b429f8d21e0ff1ce07a558f7f0ae3bddea30720b

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

/*
Language: Parser3
Requires: xml.js
Author: Oleg Volchkov <oleg@volchkov.net>
*/

hljs.LANGUAGES['parser3'] = function(hljs) {
  return {
    defaultMode: {
      subLanguage: 'xml',
      contains: [
        {
          className: 'comment',
          begin: '^#', end: '$'
        },
        {
          className: 'comment',
          begin: '\\^rem{', end: '}',
          relevance: 10,
          contains: [
            {
              begin: '{', end: '}',
              contains: ['self']
            }
          ]
        },
        {
          className: 'preprocessor',
          begin: '^@(?:BASE|USE|CLASS|OPTIONS)$',
          relevance: 10
        },
        {
          className: 'title',
          begin: '@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$'
        },
        {
          className: 'variable',
          begin: '\\$\\{?[\\w\\-\\.\\:]+\\}?'
        },
        {
          className: 'keyword',
          begin: '\\^[\\w\\-\\.\\:]+'
        },
        {
          className: 'number',
          begin: '\\^#[0-9a-fA-F]+'
        },
        hljs.C_NUMBER_MODE
      ]
    }
  };
}(hljs);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
highlight_js-rails-7.1.0 vendor/assets/javascripts/highlight_js/languages/parser3.js