class Rouge::Lexers::YANG
Public Class Methods
body_stmts_keywords()
click to toggle source
# File lib/rouge/lexers/yang.rb, line 39 def self.body_stmts_keywords @body_stms_keywords ||= Set.new %w( action argument augment deviation extension feature grouping identity if-feature input notification output rpc typedef ) end
constants_keywords()
click to toggle source
RFC7950 other keywords
# File lib/rouge/lexers/yang.rb, line 68 def self.constants_keywords @constants_keywords ||= Set.new %w( add current delete deprecated false invert-match max min not-supported obsolete replace true unbounded user ) end
data_def_stmts_keywords()
click to toggle source
# File lib/rouge/lexers/yang.rb, line 46 def self.data_def_stmts_keywords @data_def_stms_keywords ||= Set.new %w( anydata anyxml case choice config container deviate leaf leaf-list list must presence refine uses when ) end
linkage_stmts_keywords()
click to toggle source
# File lib/rouge/lexers/yang.rb, line 33 def self.linkage_stmts_keywords @linkage_stmts_keywords ||= Set.new %w( import include revision-date ) end
list_stmts_keywords()
click to toggle source
# File lib/rouge/lexers/yang.rb, line 61 def self.list_stmts_keywords @list_stmts_keywords ||= Set.new %w( key mandatory unique ) end
meta_stmts_keywords()
click to toggle source
# File lib/rouge/lexers/yang.rb, line 27 def self.meta_stmts_keywords @meta_stmts_keywords ||= Set.new %w( contact description organization reference revision ) end
module_header_stmts_keywords()
click to toggle source
# File lib/rouge/lexers/yang.rb, line 21 def self.module_header_stmts_keywords @module_header_stmts_keywords ||= Set.new %w( belongs-to namespace prefix yang-version ) end
top_stmts_keywords()
click to toggle source
Keywords from RFC7950 ; oriented at BNF style
# File lib/rouge/lexers/yang.rb, line 15 def self.top_stmts_keywords @top_stms_keywords ||= Set.new %w( module submodule ) end
type_stmts_keywords()
click to toggle source
# File lib/rouge/lexers/yang.rb, line 53 def self.type_stmts_keywords @type_stmts_keywords ||= Set.new %w( base bit default enum error-app-tag error-message fraction-digits length max-elements min-elements modifier ordered-by path pattern position range require-instance status type units value yin-element ) end
types()
click to toggle source
RFC7950 Built-In Types
# File lib/rouge/lexers/yang.rb, line 76 def self.types @types ||= Set.new %w( binary bits boolean decimal64 empty enumeration identityref instance-identifier int16 int32 int64 int8 leafref string uint16 uint32 uint64 uint8 union ) end