class Rouge::Lexers::Stata

Constants

KEYWORDS

Partial list of common programming and estimation commands, as of Stata 16 Note: not all abbreviations are included

PRIMITIVE_FUNCTIONS

Complete list of functions by name, as of Stata 16

Public Class Methods

reserved_keywords() click to toggle source

Stata commands used with braces. Includes all valid abbreviations for 'forvalues'.

# File lib/rouge/lexers/stata.rb, line 88
def self.reserved_keywords
  @reserved_keywords ||= Set.new %w(if else foreach forv forva forval forvalu forvalue forvalues to while in of continue break nobreak)
end
type_keywords() click to toggle source

Note: types `str1-str2045` handled separately below

# File lib/rouge/lexers/stata.rb, line 83
def self.type_keywords
  @type_keywords ||= Set.new %w(byte int long float double str strL numeric string integer scalar matrix local global numlist varlist newlist)
end