class Rouge::Lexers::P4

Public Class Methods

builtins() click to toggle source
# File lib/rouge/lexers/p4.rb, line 35
def self.builtins
  @builtins ||= %w(
    bit bool error extract int isValid setValid setInvalid match_kind
    string varbit verify void
  )
end
decls() click to toggle source
# File lib/rouge/lexers/p4.rb, line 28
def self.decls
  @decls ||= %w(
    control header header_union parser state struct table
    value_set
  )
end
keywords() click to toggle source
# File lib/rouge/lexers/p4.rb, line 12
def self.keywords
  @keywords ||= %w(
    abstract action actions apply const default default_action else enum
    entries extern exit if in inout key list out package packet_in
    packet_out return size select switch this transition tuple type
    typedef
  )
end
operators() click to toggle source
# File lib/rouge/lexers/p4.rb, line 21
def self.operators
  @operators ||= %w(
    \|\+\| \|-\| \? \& \&\&\& < > << >> \* \| ~ \^ - \+ /
    \# \. = != <= >= \+\+
  )
end