class Rouge::Lexers::XPath
def self.axes
def self.axes @axes ||= Regexp.union %w( child descendant attribute self descendant-or-self following-sibling following namespace parent ancestor preceding-sibling preceding ancestor-or-self ) end
def self.commentStart
def self.commentStart @commentStart ||= %r/\(:/ end
def self.constructorTypes
def self.constructorTypes @constructorTypes ||= Regexp.union %w(function array map empty-sequence) end
def self.decimalLiteral
def self.decimalLiteral @decimalLiteral ||= %r/\.#{digits}|#{digits}\.[0-9]*/ end
def self.digits
Terminal literals:
def self.digits @digits ||= %r/[0-9]+/ end
def self.doubleLiteral
def self.doubleLiteral @doubleLiteral ||= %r/(\.#{digits})|#{digits}(\.[0-9]*)?[eE][+-]?#{digits}/ end
def self.eqName
def self.eqName @eqName ||= %r/(?:#{uriQName}|#{qName})/ end
def self.keywords
def self.keywords @keywords ||= Regexp.union %w(let for some every if then else return in satisfies) end
def self.kindTest
Terminal symbols:
def self.kindTest @kindTest ||= Regexp.union %w( element attribute schema-element schema-attribute comment text node document-node namespace-node ) end
def self.kindTestForPI
def self.kindTestForPI @kindTestForPI ||= Regexp.union %w(processing-instruction) end
def self.ncName
def self.ncName @ncName ||= %r/[a-z_][a-z_\-.0-9]*/i end
def self.openParen
def self.openParen @openParen ||= %r/\((?!:)/ end
def self.operators
def self.operators @operators ||= Regexp.union %w(, => = := : >= >> > <= << < - * != + // / || |) end
def self.qName
def self.qName @qName ||= %r/(?:#{ncName})(?::#{ncName})?/ end
def self.stringLiteral
def self.stringLiteral @stringLiteral ||= %r/("(("")|[^"])*")|('(('')|[^'])*')/ end
def self.uriQName
def self.uriQName @uriQName ||= %r/Q\{[^{}]*\}#{ncName}/ end
def self.word_operators
def self.word_operators @word_operators ||= Regexp.union %w( and or eq ge gt le lt ne is div mod idiv intersect except union to ) end