File: slice.rb

package info (click to toggle)
ruby-rouge 4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,844 kB
  • sloc: ruby: 38,489; sed: 2,071; perl: 152; makefile: 8
file content (32 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*- #
# frozen_string_literal: true

module Rouge
  module Lexers
    load_lexer 'c.rb'

    class Slice < C
      tag 'slice'
      filenames '*.ice'
      mimetypes 'text/slice'

      title "Slice"
      desc "Specification Language for Ice (doc.zeroc.com)"

      def self.keywords
        @keywords ||= Set.new %w(
          extends implements enum interface struct class module dictionary
          const optional out throws exception local idempotent sequence

          Object LocalObject Value
        )
      end

      def self.keywords_type
        @keywords_type ||= Set.new %w(
          bool string byte long float double int void short
        )
      end
    end
  end
end