class Rouge::Lexers::CSharp

Public Class Methods

cpp_keywords() click to toggle source
# File lib/rouge/lexers/csharp.rb, line 42
def self.cpp_keywords
  @cpp_keywords ||= %w(
    if endif else elif define undef line error warning region
    endregion pragma nullable
  )
end
keywords() click to toggle source

Reserved Identifiers Contextual Keywords LINQ Query Expressions

# File lib/rouge/lexers/csharp.rb, line 19
def self.keywords
  @keywords ||= %w(
    abstract add alias and as ascending async await base
    break by case catch checked const continue default delegate
    descending do else enum equals event explicit extern false
    finally fixed for foreach from get global goto group
    if implicit in init interface internal into is join
    let lock nameof new notnull null on operator orderby
    out override params partial private protected public readonly
    ref remove return sealed set sizeof stackalloc static
    switch this throw true try typeof unchecked unsafe
    unmanaged value virtual void volatile when where while
    with yield
  )
end
keywords_type() click to toggle source
# File lib/rouge/lexers/csharp.rb, line 35
def self.keywords_type
  @keywords_type ||= %w(
    bool byte char decimal double dynamic float int long nint nuint
    object sbyte short string uint ulong ushort var
  )
end